Solved

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

Posted on 2015-01-20
5
62 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 Searchbox Branding 11 81
is this a cms? 8 60
Location of Buttons 4 15
Mouse event to control image and transparency. 4 22
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
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.
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 position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

831 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