[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-15-2008, 10:37 PM   #1 (permalink)
NamePros Regular
 
Rudy's Avatar
 
Join Date: Jul 2005
Location: United States
Posts: 588
613.72 NP$ (Donate)

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-15-2008, 11:47 PM   #2 (permalink)
Senior Member
 
shockie's Avatar
 
Join Date: Dec 2006
Posts: 4,478
1,025.10 NP$ (Donate)

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 is offline  
Old 08-16-2008, 04:59 AM   #3 (permalink)
NamePros Regular
 
Rudy's Avatar
 
Join Date: Jul 2005
Location: United States
Posts: 588
613.72 NP$ (Donate)

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, 05:04 AM   #4 (permalink)
Senior Member
 
shockie's Avatar
 
Join Date: Dec 2006
Posts: 4,478
1,025.10 NP$ (Donate)

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 is offline  
Old 08-16-2008, 05:18 AM   #5 (permalink)
NamePros Regular
 
Rudy's Avatar
 
Join Date: Jul 2005
Location: United States
Posts: 588
613.72 NP$ (Donate)

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

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 On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:13 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85