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 7526957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:58:46+00:00 2026-05-30T03:58:46+00:00

For some reason, Chrome and IE are applying CSS I created for an unordered

  • 0

For some reason, Chrome and IE are applying CSS I created for an unordered list to other links on the page. Everything looks great in Firefox, so I’m not entirely sure just what’s happening. This is the CSS I used:

ul#gallery-tags li a, a:visited {
line-height: 40px;
width: 100%;
display: block;
padding-left: 5px;
color: #606060;
text-decoration: none;
border-bottom: solid 1px #e0e0e0;
}

ul#gallery-tags li a:hover {
background-color: #1d95d8;
color: #fff;
border-bottom: none;
}   

An example is here: http://jsfiddle.net/UAHw7/30/ In Firefox, everything looks just fine. But in Chrome and IE, the list css also affects other links, as evidenced by the fact that my ‘footer links’ also appear to have a 40px line-height when they shouldn’t.

I’m a novice at web development, so any advice would be helpful. Thanks.

  • 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-30T03:58:47+00:00Added an answer on May 30, 2026 at 3:58 am

    I can’t replicate on Chrome, but whatever you’re seeing may be due to the fact that the first selector you’re using is getting applied to all visited links and that you have a different set of visited links in your FF history…

    ul#gallery-tags li a, a:visited means just that: a‘s that are children of li‘s that are children of ul#gallery-tags, as well as all a:visited‘s

    Most likely what you want for the first selector is ul#gallery-tags li a, ul#gallery-tags li a:visited

    Sadly, CSS requires you to be pretty repetitive.

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

Sidebar

Related Questions

For some reason, on this page, in Chrome 17, CSS3 transitions aren't working the
For some reason my CSS Gradient isn't working in Firefox (v10.0.1). The main background
For some reason my webkit definition works on chrome but in firefox 3.5.11 I
For some reason, this very basic page shows up fine in Chrome, but not
Yeah this works in FF and Chrome, but for some reason wont work in
.load() was working fine, but for some reason it's not in Chrome now (presumably
For some reason one of my inputs acts weird. I apply general css for
For some reason clicking the document isn't working in Chrome (the closeQuickView is not
Firefox is for some reason not properly handling content sent through my .NET HTTP
For some reason, I can't get rgba working within my CSS using IE9. I've

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.