The first line of your file is missing, so I can't tell wether it's a doctype issue or not. If you don't have one, then use one of these:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html
Read this for mre info:
http://www.ericmeyeroncss.
Then, whenever you declare a width AND padding or borders, you need to add an additional rule for IE5. For example, after the initial questionbox rule, add this:
* html .questionbox
{
/* for IE 5 (277 + 2 + 4 + 2 + 1) */
width: 286px;
/* for all others */
w\idth:277px;
}
Thanks,
Sean
Main Topics
Browse All Topics





by: COBOLdinosaurPosted on 2004-12-05 at 13:24:01ID: 12749760
Unless the rendering is actually broken in IE, I would just accept that browsersbrowser using the gecko rendering engine and browsers using the IE rendering engine, do render the same way.
There is a difference in how the size of the rendering box is calculated, ad ifference in how margins and position are calculated.
If you do not have a doctype in the page then add one to get IE out of quirks mode and yu may get more accurate rendering.
Your alternatives, if there is some compelling reason thay they must be identical down to the last pixel, is to do seperate styles sheets of IE and non-IE browsers and and detect the browser in use with scripting; or generate the styling dynamically at load time.
Unless there is smoe real problem with the rendering, it is almost certain that you are the only one aware that there is difference. Users are not coming to th esite with multiple browsers and comparing the rendering.
Cd&