|
c1sissy -> box model IE hacks (4/9/2004 15:27:56)
|
Ok, what I am playing with now is driving me nutso! I can get it to look great in Opera, and horrible in IE, if I get it to look ok in IE in opera it is off. I'm searching for some box model hack information/tutorials/guidance. I have the header, looks great both browsers, then the horiz nav looks great in both browsers. Next div, has a left and right column. They are not lining up correctly! And my footer appears to have a mind of its own on this page. BUT on the other page, same code and styles it is behaving.?! Everythign was working great, both browsers until I found a few typos in the css. Fixed that and everythign went its own way. It is not listening to me at all! ARGH! I don't have a link as I am playing with this on my machine. Here is my css. This is an embedded style. body { font-size: small; font-family: arial, Verdana, Sans-Serif; } #header { width: 98%; height: 60px; background-color: #ffffff; margin-left: 5px; border: 1px solid #000000; } .directory { font-size: x-large; font-weight: bolder; font-family: Verdana, Sans-Serif; } .small { font-size: x-small; font-family: Verdana, Sans-Serif; color: #000000; } .target { font-size: small; font-weight: bolder; font-family: Verdana, Sans-Serif; color: #000080; } #nav ul { background-color: #FFFF99;/*color is bright yellow*/ width: 98%; height: 25px; padding-top: 2px; padding-left: 4px; margin-left: 5px; font-size: 10pt; font-weight: bold; font-family: arial, Verdana, Serif; border-bottom: 4px solid #D3D3D3; /*color is light grey*/ } #nav ul li { display: inline;/*navigation*/ } #nav ul li a { list-style-type: none; padding-right: 25px; padding-left: 20px; } div .leftcontent { border-top: 1px solid #000000;/*left column of page*/ border-bottom: 1px solid #000000; border-left: 1px solid #000000; width: 55%; position: absolute; padding: 0px; margin-top: -20px; margin-left: -30px; margin-right: 10px; font-family: arial, Verdanan, Serif; font-size: small; } div p .bold { font-weight: bold; } div p .color{ font-weight: bold; color: #990033;} div .leftcontent a { font-weight: bold;} div .rightcontent { border-right: 4px solid #D3D3D3;/*right column of page*/ border-bottom: 4px solid #D3D3D3; border-left: 4px solid #D3D3D3; background-color: #FFFF99; width: 40%; float: right; position: relative; margin-top: -20px; margin-left: 35px; margin-right: 3px; padding: 0px; font-family: arial, Verdanan, Serif; font-size: small; } div .rightcontent a { font-weight: bold; } div div .leftcontent { border: 1px solid #000000; width:10%; float: left; position: relative; width: 49%; margin-top: 0px; margin-left: -0px; margin-bottom: 0px; margin-right: 0px; padding: -0px; font-family: arial, Verdanan, Serif; font-size: small; } div div li .rightcontent{ border: 1px solid #000000; width:49%; float: right; position: relative; margin-top: 0px; margin-left: -0px; margin-bottom: 0px; margin-right: -0px; padding: -0px; font-family: Arial, Verdanan, Serif; font-size: small; } div div ul li .leftcontent{ margin-left: -10px; padding: -3px; } div div .footer { clear: both; width: 98%; height: 16px; padding-top: 25px; position: relative; text-align: center; font-size: small; font-family:Arial, Verdana, Sans-Serif; border: 1px solid #000000; } I found a few things on box model hacks but don't really understand them yet.[&o] <edit>found THIS and am wondering how something like this would work</edit>
|
|
|
|