?
Solved

margins on top menu  links wordpress

Posted on 2014-04-25
2
Medium Priority
?
302 Views
Last Modified: 2014-05-03
Hi,

To change links on wordpress  2014. I use this code  but margins and paddings does not effect the top menu horizontal menu and does effect the secondary menu.

I want to alter the margins,padding on top primary menu.
I want to be able to change the links with a css tag and not many tags as this is complicated.

.site-navigation a {
   
     margin:0;
     padding:0;
0
Comment
Question by:jagguy
2 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 40024207
Since the top menu has a class of .primary-navigation, this is what styles it's links:

.primary-navigation a {
            display: inline-block;
            padding: 0 12px;
            white-space: nowrap;
      }

HTH,
Dan
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 total points
ID: 40024578
Since you've had a few of these sorts of questions, it seems that some learning resources for WordPress and CSS would be useful:

http://www.amazon.com/Wordpress-Beginners-Step---Step-Creating/dp/1490532471/
http://www.amazon.com/Book-CSS3-Developers-Future-Design/dp/1593272863/
http://www.amazon.com/Learning-Web-Design-Beginners-JavaScript/dp/1449319270/

I own the first two and can recommend them personally.  I do not own Jennifer's book, but I have some of her other works, going back several years, and they are so well written that I would expect nothing less from this one.

A few minutes with a book can usually save you a few days of trial and error! ~Ray
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
While Plesk offers many potential benefits to website administrators, including compatibility with Windows Server and other leading technologies, the company has also been working to differentiate it from other control panels for content management…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question