Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-16-2011, 04:53 AM   PM User | #1
nme88
New to the CF scene

 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nme88 is an unknown quantity at this point
Question Dyamically Position Navigation

I have set up my website so that my background image dynamically resizes when the window is resized (no stretching, just cutting part off if the ratio is too small). How can I reposition my navigation containers dynamically as well to work with this. Percentage doesn't work, because if the viewer resizes the window in only one dimension, it throws the positioning way off.

The website is not live, so I can't show you, but this is how I'm doing the background resize:

CSS:
Code:
#backgroundimage{
	min-height:100%;
	max-width:1280px;
	max-height:980px;
	width:auto;
	height:100%;
}
HTML:
Code:
<img src="images/background.jpg" id="backgroundimage"/>
nme88 is offline   Reply With Quote
Reply

Bookmarks

Tags
dynamic, html, resize

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:44 AM.


Advertisement
Log in to turn off these ads.