Is it possible to achieve string consistency in all browsers?
I attached the image. You will see a red rectangular box and a green rectangular rectangle (both with the same width and height), which I added with Photoshop to help show the space / gap difference between the dashed lines (under the red box) and the text "Followers: 3197179".
It seems that Firefox is the only one that displays elements in different ways. I notice this when I apply row height. Anyway, can I make it compatible with all browsers?
I am using Firefox 3.6.13, Safari 5.0.3, Opera 10.63 and Chrome 8.0.552.231.
CSS
.clearfix, .container {display:block;} ul { margin:0; padding:0; list-style:none; } li { position:relative; margin:0 0 0 0; padding:12px 0; border-bottom:1px dotted #E7E7E7; } li img { float:left; margin-top:0; } li p { margin:0 0 0 58px; padding:0; font-weight:normal; border:none; font-size:1em; line-height:1.3em; } li p.name { position:relative; padding-top:0; font-size:1.1em; font-weight:bold; }
HTML
<ul> <li class="clearfix"> <a href="#"><img width="50" src="http://localhost:3000/images/foobar.gif" alt="thumb"></a> <p class="name"> <a href="#">Jessica Simpson</a> </p> <p>Blurred out text here</p> <p>Followers: 3197179</p> </li> </ul>

Christian fazzini
source share