ClulessChris
IS-IT--Management
I'm very new to CSS but am trying hard.
The following short CSS works in IE7 but the 2 main DIV's (Content and navbar) don't align when displayed in Opera Or Firefox.
Can you tell me why?
Never knock on Death's door: ring the bell and run away! Death really hates that!
The following short CSS works in IE7 but the 2 main DIV's (Content and navbar) don't align when displayed in Opera Or Firefox.
Can you tell me why?
Code:
body{
font-family: Helvetica, Arial, Sans-Serif;
}
h1, h2, h3, h4, h5, h6{
color: teal;
margin: auto;
}
p.headline{
Color: "#FF0000";
font-weight: 700;
font-size: 1.4em;
}
#wrapper{
Position: absolute left: 2%; Top: 0;
width: 100%;
Padding: 10px;
}
#header{
Position: relative;
height: 110px;
width: 100%;
margin: 0 auto;
background-color: #FFFFFF;
}
#navBar{
float: left;
width: 20%;
Top: 30px;
padding: 25px 5px 25px 5px;
border: 1px solid black;
font-size: .95em;
background-color: #ffcc66
}
#content{
float: left;
Top; 30px;
width: 80%;
padding: 25px 0 0 25px;
border: none;
font-size: 1em;
}
#RightImg{
float: right;
boarder: none;
height: 240;
width: 175;
border: 0;
}
#layer1{
background-color : #FFCC66;
layer-background-color : #FFCC66;
border-width : 1px;
border-style : solid;
border-color : #006666;
padding: 5px;
width : 150px;
top : 210px;
left : 150px;
position : absolute;
z-index : 90;
visibility : hidden;
}
Never knock on Death's door: ring the bell and run away! Death really hates that!