Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2015-01-20
5
Medium Priority
?
67 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 35

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 35

Accepted Solution

by:
Dan Craciun earned 2000 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 35

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

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…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

705 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