Solved

How do I move the left menu items to the right?

Posted on 2015-01-20
5
60 Views
Last Modified: 2015-01-20
Before you offer a solution please do not send me a link without an explanation. Do not post that my theme code needs to rewritten, etc. Do not tell me I need to learn CSS.

You're just wasting my time AND yours.

Please just offer me a real solution to the problem.

I have a Wordpress Twenty Twelve theme site here: http://rentawebguy.net/jenn/

The left menu at top (with a black border) needs the menu items aligned to the right. They should have no padding on the right side so that hit the right side of the box.

Thank you for looking.
0
Comment
Question by:Donnie Walker
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40560616
Add this to your CSS:

#top-menu li:last-child {
margin-right: 0;
}

HTH,
Dan
0
 

Author Comment

by:Donnie Walker
ID: 40560634
Dan,
 I added that to the stylesheet but nothing changed. Any idea?
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40560648
Yeah, I forgot. You need to actually align it to the right :)

ul#top-menu {
text-align: right;
}
#top-menu li:last-child {
margin-right: 0;
}
0
 

Author Closing Comment

by:Donnie Walker
ID: 40560654
Perfect Dan...excellent! Thanks!
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40560662
You're welcome.
Glad I could help!

PS: if you're targeting old browsers, without support for last-child, you'll need to use the id of the last li:
li#menu-item-23 {
margin-right:0;
}
Which can be a pain to maintain if you decide to add another item to that menu.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

760 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

17 Experts available now in Live!

Get 1:1 Help Now