Posts Tagged ‘xhtml’

Cellspacing and cellpadding alternative in css

Frankly speaking, I’ve been always using <table cellspacing="0" cellpadding="0" border="1"> It was not a question for me until some time whether these attributes of <table> tag have its css alternative. The solution has been found rather quickly and the use is very simple.

Leave a Comment

how to remove padding in IE

Inexperienced XHTML integrator might get stuck with an IE problem when there is space appeared without any reasons. For example, it can happen if you create a small div block with little height: <div style=”height: 2px;background-color: green;”> It will not be 2px in IE. It will be more. Try this solution: <div style=”height: 2px;font-size:2px;line-height:1px;background-color: green;”>

Leave a Comment