Kl. 21:10: Sniđug Firefox viđbót: "Tab Effect"
Ég rakst í gćr á nýja, dáldiđ sćta viđbót fyrir Firefox. Hún heitir Tab Effect, og ţađ eina sem hún gerir er ađ láta Firefox líta ađeins töffaralegar út.
...og minnir mann á veđurfréttirnar í sjónvarpinu í gamla daga.
Svör frá lesendum (6) |
Varanleg slóđ
At 00:37: <HR /> Image-Replacement Through CSS
My evil-genius friend and work-buddy, Borgar, just invented a way to replace HR elements with images using just CSS.
As far as I can tell, his is the first-ever method that accomplishes this across all browsers - without resorting to scripting or adding any extra markup. Pretty neat!
And I'm proud to be able to say that I got to help him rid the method of its initial kinks.
To summarize, here's the finalized version of the IE hack pieced together from the comments following Borgar's blog post:
<!--[if lte IE 7]><style type="text/css">
hr {
display : list-item;
list-style : url(hr.gif) inside;
filter : alpha(opacity=0);
width : 0;
}
</style><![endif]-->
Note, that you'll need to add a margin-bottom property to make IE's margin consistent with that of other browsers.
Note also, that by adding a combination of text-align and margin-left rules, you can achieve any horizontal alignment you like. (IE defaults to "centered".)
...
Discuss and praise over at Borgar's blog.
Permalink
Nýleg svör frá lesendum