The CSS Hack Thing
XHTML 1.0 doctype issue
CSS: padding-bottom 0px gives 5px offset
Problem:
The padding-bottom 0px value is ignored if the doctype is set for XHTML 1.0
leaving an approximate 5px offset. If the doctype is disabled the problem is corrected, however this is not a good fix.
I tend to use the border-collapse setting especially when bunching images in tables, however with Firefox I still got the issue and I don't want to disable the doctype.
Result:
Two possibilities will work -
display: block; set against the img
vertical-align: bottom; set against the img
I would prefer to use the former along with the border-collapse against the table
Example layouts are shown below
|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
Please press to DISABLE the XHTML 1.0 doctype
CSS
CSS
XHTML
XHTML

