Solved

margins on top menu  links wordpress

Posted on 2014-04-25
2
271 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 34

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 108

Accepted Solution

by:
Ray Paseur earned 500 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now