Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8091241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:00:01+00:00 2026-06-05T20:00:01+00:00

I have a navigation list I placed inside of a , I am attempting

  • 0

I have a navigation list I placed inside of a , I am attempting to get an image that appears on both sides of a link when you hover. Basically a an arrow on each side of the link.

I have managed to get the effect I am looking for with:

<ul>
          <li style=""> <a href="#">Services</a> </li>
          <li> <a href="#">About</a> </li>
          <li> <a href="#">Media</a> </li>
          <li> <a href="#">FAQ</a> </li>
          <li> <a href="#">Portfolio</a> </li>
          <li> <a href="#">Contact</a> </li>
        </ul>


.nav ul{
    list-style:none;
    text-align:center;

}


.nav li:hover a:before, .nav li:hover a:after {
    content:url(../images/nav_bullet.png);
}

The end result will look like the following but with the list centered:

link
>> Hovered Link <<
link

However I am not sure if that is the best way of going about it, and the image is too close to the text. I tried placing a margin and padding but that didn’t work. To top of it off, the image is not vertically centered with the link text.

Anyone know of a proper way to do this as I am just going by trial and error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:00:03+00:00Added an answer on June 5, 2026 at 8:00 pm

    I was able to accomplish this with answers provided on a different site, it can be done with two similar methods: As described Here

    If you give the parent element position: relative, you can give those
    pseudo elements position: absolute and position them more exactly.

    And the second method is:

    .nav li:hover a:before, .nav li:hover a:after {
    content:url(../images/nav_bullet.png);
    margin:0 5px;/* horizontal margin*/
    position:relative;
    top:2px;/* or what ever you need */
    }
    

    However, as I am learning everything by trial and error and even though this works, can anyone confirm whether or not this is the proper method to go about this or should I have went a different route to conform with compliance, standards, and compatibility?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a navigation that is a list and has sublists and sublists. Basically,
I have a navigation bar/list that is using only HTML and CSS. The background
I have a navigation menu that is conflicting with a corner banner (image). However,
I have a navigation bar that is a list with multiple li naturally. On
I have a nested UL navigation list, with ul's contained inside some other li
I have a jquery slideshow that that uses a navigation list to switch out
I have a navigation bar which is an unordered list with tabs as list
I have created navigaton view using Sencha touch 2. Navigation view has list component
I have a list of items with a plus button in the navigation bar
I currently have profiles on my website with a unordered list for the navigation,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.