css - Firefox adds extra width with padding -
i have question regarding css in firefox.
if set width of floated div - lets 200px - setting padding-left 10px in firefox add 10px width. in ie not case.
what can prevent firefox adding width div?
it's not firefox that's problem, it's ie.
ie not perform standards, there few tricks pain in ass: http://en.wikipedia.org/wiki/internet_explorer_box_model_bug
the easiest way include valid strict doctype tag:
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
then rewrite css standards-compliant box model
Comments
Post a Comment