the simple piece of html below works very well on a large window, but when one resizes it down until horizontal scrollbar appears, things become weird (FF2, IE7).
* On FF2: The red div box is aligned to the left - although I never told it to, and even align="right" and more dir="rtl"s on elements don't help at all.
*On IE7: Horizontal scrollbar gets WAY to big.
Removing the DOCTYPE definition "solves" it on IE7 but not on FF2, so I guess that it's not a bug but something that I'm doing wrong: if the two browsers give weird results, maybe it's according to the standards (more or less, cuz two browsers still behave differently).
Any idea?
Thanks in advance!
- Oren
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html dir="rtl"><head><title>Title</title></head><body><div>abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz</div><div style="width: 800px; height: 20px; background-color: red;"></div></body></html>
Bookmarks