NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page CSS floating divs are forced down when window size reduced!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-15-2008, 11:37 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
Rudy's Avatar
Join Date: Jul 2005
Location: United States
Posts: 586
Rudy is just really niceRudy is just really niceRudy is just really niceRudy is just really nice
 


Save a Life

CSS floating divs are forced down when window size reduced!


Hey guys,
I'm having a really annoying problem with some of my css on huntsources.com. I have a floating div "left" and a floating div "middle" that are intended to be side-by-side columns. On my screen resolution of 1024x768 when the browser is maximized, it looks fine.

However, when the browser window's width is reduced, div "middle" is forced below the links. Why is this happening, and how can I fix it?

external css file is located at huntsources.com/main.css.

- David
Rudy is offline  
Old 08-16-2008, 12:47 AM   #2 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute
 



well if you make your screen/window width to less than 810px then the second one is bound to be shoved down... perhaps having a container around the whole thing will do the trick.
__________________
- shockie
shockie is offline  
Old 08-16-2008, 05:59 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
Rudy's Avatar
Join Date: Jul 2005
Location: United States
Posts: 586
Rudy is just really niceRudy is just really niceRudy is just really niceRudy is just really nice
 


Save a Life
I got it! Thanks so much for the suggestion. I did it by expanding everything to 870px (due to margins and borders), and then adding that container div like you suggested. I then had to remove the position:absolute that I had on the "header" and "main-page" divs. After all that, it works perfectly. Tested it in IE and Firefox, made sure the code was valid, and voila! That issue is solved.
Rudy is offline  
Old 08-16-2008, 06:04 AM   #4 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute
 



glad i could help! hopefully there weren't too many people affected by this since 870px is fairly skinny a width.
__________________
- shockie
shockie is offline  
Old 08-16-2008, 06:18 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
Rudy's Avatar
Join Date: Jul 2005
Location: United States
Posts: 586
Rudy is just really niceRudy is just really niceRudy is just really niceRudy is just really nice
 


Save a Life
The only reason I found the problem was my brother just bought a brand new Macbook and was here for a few days earlier this week, and he pulled up the website on Safari, and it did that. At first I thought it was a safari problem, then realized all my code was completely valid, so I decided to see what would happen in Firefox / IE if I resized my browser window... you know the rest of the story.
Rudy is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:31 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger