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

  • Home
  • SEARCH
  • 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 6564899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:01:36+00:00 2026-05-25T14:01:36+00:00

i have a ul style menu looking like this: <ul> <li> <a href=/hem/><span>Hem</span></a> </li>

  • 0

i have a ul style menu looking like this:

<ul>
  <li>
    <a href="/hem/"><span>Hem</span></a>
  </li>
  etc.. etc..
</ul>

the li element has an image as background that changes on hover. i do not want to display the text inside the container and therefore it has visibility: hidden.

Fun thing now; you are still able to click the link in IE and FF but in safari only the mouseover works, but you can’t click the link. Changing the visibility of the span container does make it possible to click the link.

Question now is how to change the css code so that it behaves like IE and FF?
I don’t want to show the text, but i do want to be able to click the menu – duh!

  • 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-05-25T14:01:37+00:00Added an answer on May 25, 2026 at 2:01 pm

    Rather than setting the visibility of the anchor to hidden consider the following:

    ul li a
    {
       display:block;
       width:100%;
       height:100%;
       text-indent: -9999px; // Hide the text
    }
    

    Working Example

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

Sidebar

Related Questions

I have a jquery accordion style menu that I'd like to add some shortcut
I have the following markup that is used to produce a pop-up style mega-menu
why when i write document.getElementByClass('home1').setAttribute('style', 'background-image:url(img/red_menu.PNG);'); it doesn't work? i have the element with
I have a style for an items control that binds to an image in
I have integrated this menu in my website : http://www.htmldrive.net/items/demo/979/simple-google-style-Dropdown-menu-with-jQuery I want the menu
I have a TreeView setup so that each TreeViewItem has right-click context menu applied
I am looking for nested menu which can have different background images , below
I have some mega menu style menus on a site I maintain. These are
does Delphi 2010 have C# Style XML comments that show up when hovering over
http://clifgriffin.com/blockade2/ Ok, I have an unordered list that serves as a list of menu

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.