Doh use CSS not custom styles every time

Ok, here’s a d’oh moment.

For the citations I’ve been listing for the images and quotes in my blog, I’ve been using a custom style that I cut and paste into the post every time I use it.

<div style="font-size:10px;margin-top:-5px;text-align:right;margin-right:5px;line-height:11px;">Source/Credit:<div>

I’ve updated the styling at least twice and maybe three or four times since I started doing it.

Ur doing it wrong! :(

It wasn’t till about a week ago that I had a brilliant idea.

Any guesses?

Well, just create a custom style and put it in the stylesheet.

<div class="mura-citation">Source/Credit:<div>

and the CSS…

#mura-citation {
font-size:10px;
margin-top:-5px;
text-align:right;
margin-right:5px;
line-height:11px;
}

D’oh I’m such a dummy.

Though using the Template-Override plugin has made it easier.

1 reply
  1. Brandon Muramatsu
    Brandon Muramatsu says:

    Double duh.

    Use “class” instead of “id” so there isn’t a namespace conflict when I want to make two citations on the same page.

Comments are closed.