Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2011, 09:31 PM   #1
Bronze Member
 
Join Date: Mar 2011
Posts: 40
Default In Google Chrome, two Div's are overlapping...plz help

Hi everyone,

I'm a rookie and I'm working on my first real site. I've got about two weeks of CSS in me, but I've been messing around with html, and adobe for years.

Anyways, I'm having a problem with how my home page looks in Google Chrome, and was hoping someone had a clue. The home page looks fine in IE and firefox, but in Chrome, I have a div overlapping another div somehow, ignoring all margins.

My CSS code can be seen at the botton right-hand corner of the home page via a link from W3Schools.

Any insight would be extremely helpful. Thanks!

http://www.rightfitcareers.org

Gary


Last edited by X_Gary_X; 03-08-2011 at 09:48 PM. Reason: insert image to help
X_Gary_X is offline   Reply With Quote


Old 03-08-2011, 09:48 PM   #2
Gold Member
 
Join Date: Feb 2011
Location: Australia
Posts: 369
Default

I don't have my editing computer in front of me but try putting a float:left; in to the content style and a clear:both; in the content2 style

also, your background image is a fairly large file. May want to consider optimizing it a bit.

Hope that helps
__________________
Jason H.
DHDdirect.com
Domains - Hosting - Design
DHDdirect is offline   Reply With Quote
Old 03-08-2011, 10:00 PM   #3
Bronze Member
 
Join Date: Mar 2011
Posts: 40
Default

yeah, that didn't work, but thank you. That just pushed all the content way below the briefcase, and messing with the margins didnt help adjust that.

i will optimize it, ty
X_Gary_X is offline   Reply With Quote
Old 03-08-2011, 10:13 PM   #4
Gold Member
 
Join Date: Feb 2011
Location: Australia
Posts: 369
Default

Alright.. sorry it's kind of hit and miss without my able to sample some things myself but instead of the float:left; elements how about trying display:inline-block; instead. Put it in both the img and content styles.

If that doesn't help I'll test some stuff out when I get home, unless someone else helps you out first :-)

Last edited by DHDdirect; 03-08-2011 at 10:16 PM.
DHDdirect is offline   Reply With Quote
Old 03-08-2011, 10:30 PM   #5
Bronze Member
 
Join Date: Mar 2011
Posts: 40
Default

That did the same thing..pushed all the content out of "briefcase" div class it looks like...weird.

(note: it doesn't do it on the career page, because there is a scroll bar. I can add a scroll bar, and it will somewhat fix the issue, but why? There has to be a reason why messing with the overflow style changes this. I don't want a scroll bar though on the main page.)

Last edited by X_Gary_X; 03-08-2011 at 10:35 PM.
X_Gary_X is offline   Reply With Quote


Old 03-09-2011, 12:28 AM   #6
Platinum Member
 
ronaldroe's Avatar
 
Join Date: Jan 2011
Location: Oklahoma City, OK
Posts: 676
Send a message via Skype™ to ronaldroe
Default

Move the div that contains the image into the "briefcase" div. I'm on Chrome and that fixed it.
ronaldroe is offline   Reply With Quote
Old 03-09-2011, 12:49 AM   #7
Bronze Member
 
Join Date: Mar 2011
Posts: 40
Default

it is in there already...how do you mean?
X_Gary_X is offline   Reply With Quote
Old 03-09-2011, 12:53 AM   #8
Platinum Member
 
ronaldroe's Avatar
 
Join Date: Jan 2011
Location: Oklahoma City, OK
Posts: 676
Send a message via Skype™ to ronaldroe
Default

My apologies. I just looked at the code again. I didn't mean "briefcase". I meant "content". Move the image into the "content" div.
ronaldroe is offline   Reply With Quote
Old 03-09-2011, 07:26 AM   #9
Gold Member
 
Join Date: Feb 2011
Location: Australia
Posts: 369
Default

Ok.. This is certainly a hard one. I wasn't able to get it working with what Ron suggested but I may be doing something different.

I've tried a bunch of things and figured I'd go about it by creating a structure myself and see how it reacts.

You can have a look at what I've done here or download the attachment.

The top section shows you the structure with colored backgrounds to allow you to view how the divs are acting with the specific css and below that is shows you with some information from your own site.

I believe it will either boil down to something in your structure or something in your css causing this issue. None the less, I believe you are a bit heavy on the css code and probably will find half of it isn't needed. (especially margins, you'll notice there isn't any in my css).

I hope that helps and keep us posted on what you find.
Attached Files
File Type: txt test_layout.txt (5.5 KB, 51 views)
__________________
Jason H.
DHDdirect.com
Domains - Hosting - Design
DHDdirect is offline   Reply With Quote
Old 03-09-2011, 09:06 AM   #10
Bronze Member
 
Join Date: Mar 2011
Posts: 40
Default

Dude, you're awesome. I really appreciate that. Like I said, I'm new and still learning. I have to go to work right now, so I can't mess with it, but I will when I get home and let you know. Thanks!
X_Gary_X is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT. The time now is 06:41 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.