Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Problems with proportionate black bars top and bottom

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

cosette

New Member
Impact
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.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back