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


CSS How to center bullet image horizontally

Posted on 2013-01-15
Medium Priority
Last Modified: 2013-01-30
Please visit Take a look at the menu, and the blue/red stars between the menu items.


How can I center the star images between each of the menu links using CSS?


How can I add CSS to add another start to the right of the last menu link (Contact)?

Thanks in advance!
Question by:isaacr25
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

Accepted Solution

wdfdo1986 earned 1400 total points
ID: 38781216
This is done using <ul> and <li>
What you could do to align stars center between links, is make the width vary, make a fixed margin. But for me the way it is better.
you can add another li tag to add a menu link inside <ul id="main-menu">

Hope it helps

Author Comment

ID: 38781237
Can you elaborate a bit on the last suggestion (adding another li tag)... More guidance would be appreciated.

Assisted Solution

Neil_Bradley earned 600 total points
ID: 38781271
Rather than add another li tag to the end (to get your last star) you could simply add the star to the ul tag that contains the menu. The star would be positioned to the far right.. So giving you your start at the end..

Aggree with previous post. You can control the position of the stars by adding a fixed margin to one side of your li.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Assisted Solution

wdfdo1986 earned 1400 total points
ID: 38781308
Search for <ul id="main-menu"> in the html and find the ul element.
you will find list of li tags there
add another

Author Comment

ID: 38781314
I tried adding a fixed margin to the li's. I had to apply a negative margin to get the horizontal spaces to even out. I'm fine with this.

However, I need to center the entire menu horizontally (it's floating to the left currently.

Also, what tags would I apply to get the last star on the right?

Assisted Solution

wdfdo1986 earned 1400 total points
ID: 38781321
To align the whole thing add align center to the class "main-menu"
Check these

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

704 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