So I am currently using inline-block
for my site. I understand it's still relatively new (scope of 5 years). I was wondering if it's become okay to use it these days or if someone can recommend me an elegant hack, that would be awesome. Thanks for your time.
views:
193answers:
2
+1
A:
You can actually make the inline-block
cross browser, you must have missed this great article.
Sarfraz
2010-02-23 08:02:17
This was exactly what I was looking for, thanks for the link
Axsuul
2010-02-23 08:13:58
@Axsuul: You are welcome :)
Sarfraz
2010-02-23 08:15:51
A:
inline-block
is supported in older browsers within certain constraints:
In IE 6 and 7 inline-block works only on elements that have a natural display: inline.
Firefox 2 and lower don't support this value. You can use -moz-inline-box, but be aware that it's not the same as inline-block, and it may not work as you expect in some situations.
So just use it on natural inline elements like images and spans and you should be fine.
cletus
2010-02-23 08:03:31