In my test, I notice that there might be a small space between the name of the button that I styled and the "]" after. If you find that to be the case,
don't worry! You can easily remove the space by adding another line to your
span.ButtonName:after style.
This worked for me:
Code: Select all
span.ButtonName:after {
content: "]";
margin-left:-.25em;
}
The negative left margin value moves the bracket "]" a tiny bit to the left. You may need to play with the exact negative value, depending on the font you're using.
In the example above I used the "em" measurement, which is the width of a capital "M". In this case, I set the measurement to one quarter (.25) of the width of a capital "M". I used it because it is a relative size, depending on the font size. But I also tried it using pixels and I found that -3px (pixels) also worked nicely for the font and size I was using. So, if you're more comfortable using pixels as a measurement, you can use this instead:
Code: Select all
span.ButtonName:after {
content: "]";
margin-left:-3px;
}
In either case, you can play with the negative values to get it just right.
Cheers,
-jeff