...

View Full Version : CSS Layering Help



CosmicGraffiti
12-22-2005, 04:48 AM
I coded a CSS layout, and I'm having some problems with it when viewed on Firefox. It looks prefectly fine on IE6, but on FF it's not aligned to the center. I provided an online place for you to see it.

Layout:
http://fusiondex.com/fdx4/index_.htm

CSS:
http://fusiondex.com/fdx4/images4/index.css

It should look like the attached image. It works fine with IE6.

Please help me fix it. Thanks!

_Aerospace_Eng_
12-22-2005, 04:54 AM
Absolute positioning, yuck. Move your div with id="left" before your div with id="right" then get rid of the absolute positioning in the CSS for left, to center a block level element like a div or a table use margin:auto; currently you have your margins set to 0 on your main div. This example should give you some ideas on how to do it properly. http://bonrouge.com/2c-hf-fixed.php
Usually when a layout is okay in IE but bad in Firefox then there is probably something wrong with your coding. e.g errors. You can use the validator (http://validator.w3.org) to check the errors you have.

Ranger56
12-22-2005, 05:01 AM
#wrap {
width: 760px;
background-image: url(wrap.jpg);
background-repeat: repeat-y;
margin:auto
}

CosmicGraffiti
12-22-2005, 05:04 AM
The layout is now aligned to the center at FF, but the navigation menu went to the left and the content part went deep down the navigation.

_Aerospace_Eng_
12-22-2005, 05:16 AM
Try floating the #right div to the left. You may need to decrease its width.

CosmicGraffiti
12-22-2005, 05:28 AM
Sorry for the late response. I messed up with the code and I couldn't put it back as it was on my 1st post. Anyway, here's what I came up with:

http://fusiondex.com/fdx4/index_.htm

I've updated it. There's some problem with the layout on FF. It's fine on IE6. But the width of the #right and #rightads is not the same when viewed with IE.
I also want the navigation boxes to overlap the content boxes (#rightads and #right). I'm confused with the coding.

CosmicGraffiti
12-22-2005, 09:32 AM
^I attached a screencap of the layout that looks crap when viewed at FF...

Please help me fix this layout.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum