How to add some margin to each link created in sidenavigation (WordPress)

You’ll see a navigation called “of interest” in the right. I want to add some margin to each link. Currently, I’m doing this horrible(!)thing in the style.css:

li#menu-item-20, li#menu-item-31, li#menu-item-73, li#menu-item-74, 
li#menu-item-75, li#menu-item-76, li#menu-item-77, li#menu-item-78, li#menu-item-79 
{margin-top: 15px;}

Horrible, but it works. How do it the right way? The links are created via a custom menu (“appearance/menu”) in the back-end.

Read More

Link: http://new.shiva-rahbaran.org/wordpress/
Template: Twenty-Twelve

Best,
Amir

Related posts

Leave a Reply

3 comments

  1. You could take the id of the column and apply the style to every item of the class menu-item like this:

    #secondary .menu-item {
        margin-top: 15px;
    }