Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Problems with bars at top and bottom of page
Old 06-08-2005, 12:43 PM Problems with bars at top and bottom of page
Junior Talker

Posts: 1
Trades: 0
Hi

I am trying to create a web page with black bars at the top and bottom so it looks like the widescreen effect you have on a standard TV when viewing a widescreen film.

I want the sizes of the bars to stay in proportion with the size of the viewers window (even if they resize it).

I want to avoid using frames or a fixed size window. So far I've tried using a table, but the height attribute doesn't seem to like percentages. Basically I want the middle row to contain a flash movie and have a fixed height whilst the top and bottom bars will be automatically resized depending on the window height.

I can't find an easy way of doing this since the height attribute seems to only take into account the values specified in pixels and not percentages. Scripting seems to be the only option.

Does anyone have any ideas on how to achieve this?

Thanks in advance,

Cosette.
cosette is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-08-2005, 05:48 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
How about just dumping the flash animation in a <div>, setting the size of the div to the desired size of the animation, and then setting the top margin to be a percentage?

HTML Code:
<div style="width:300px; height:200px; margin-top:25%;">
<!-- FLASH MOVIE HERE -->
</div>
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to Problems with bars at top and bottom of page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32037 seconds with 12 queries