Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.