div#trans7 { background: #400000;
width: 10px;
height: 842px;
position: absolute;
top: 0px;
left: 51px;
}
....
div#trans7 { background: #400000;
width: 10px;
height: 842px;
position: absolute;
top: 0px;
left: 51px;
}
....
div#hder { background: white;
width: 660px;
height: 98px;
position: absolute;
top: 0px;
left: 202px;
font-family: Comic Sans MS;
font-size: .9em;
} Hello. I have a webpage im working on as a school project, and everything was going fine. Until I opened it up in IE.
Here are the issues im having.
The main "header" image, is not showing.
- The closing div tag for hder is missing the greater than character.
- You didn't leave enough room for the image to fit. You have two different width and height values. Also, IE puts margins, borders, and padding INSIDE the width and height settings. The standard (and other browsers) put them outside the width and height settings.
- IE does absolute positioning differently than other browsers do it. Avoid absolute positioning.The font is not Comic Sans MS, as I wanted, but it is times New Roman. :(
- If there are spaces in a font name, it must be surrounded by quotes. Otherwise, the browser tries to interpret each word as a separate font.
- If the target computer does not have the font you want, the default font will be used instead.The lines are stretching out of my content div.
- The closing div tag for hder is missing the greater than character. This probably destroyed the content div tag.
- The div tag is fluid in nature. It takes width and height as suggestions.the link section is often covered up by the not-showing image header.
- Absolute positioning causes lots of unwanted grief.
- The closing div tag for hder is missing the greater than character.
Other problems I see:
- 0px is not a valid style. Values of 0 must not have units of measure attached. The appearance of 0px, 0pt, 0%, or any other zero value with a unit of measure causes the style to be discarded by the browser. If a value of 0 is needed, just put a 0.
- You have the same selectors listed twice, setting some of the same parameters again. Only the second one counts. I showed such a pair in the code portion above.
- Browsers often do not render empty tag pairs (your div pairs). There must be something between them to guarantee rendering (this is a valid place for a br tag).
- You didn't specify a doctype in the html tag. This throws the browser into quirks mode. Its behavior is then unpredictable.
- Using pixel counts for sizes makes the page dependent on the screen resolution. Avoid pixel values, except for border sizes and image sizes.