Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I like the style of tags at math.stackexchange.com. In fact, I'd like to create something similar and I was wondering how are they styled.

First of all, I've launched Firebug and was trying to analyze the DOM.

Let's see i.e. [graph-theory] tag:

math tags

and in Firebug it looks like there are no brackets:

math firebug

So, where's the catch?

share|improve this question
add comment

1 Answer

You can use :before and :after classes in CSS: http://www.quirksmode.org/css/beforeafter.html.

share|improve this answer
    
Great! I didn't know abt this. –  rafek Feb 22 '11 at 6:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.