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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:28:54+00:00 2026-05-15T02:28:54+00:00

This will probably be a softball for you CSS folks… I have a site

  • 0

This will probably be a softball for you CSS folks…

I have a site like this:

<div id="header">
<span class="myheader">This is the name of my awesome site!!!!</span>
</div> 
<div id="content">whole bunch of other stuff</div>
<div="sidemenu"><ul><li>something</li><li>something else</li></ul>
<div id="footer">Some footer stuff will go here....</div>

In my css I have some directives to format the hyperlinks:

a:link { text-decoration: none; color : #ff6600; border: 0px; -moz-outline-style: none;}
a:active { text-decoration: underline; color : #ff6600; border: 0px; -moz-outline-style: none;}
a:visited { text-decoration: none; color : #ff6600; border: 0px; -moz-outline-style: none;}
a:hover { text-decoration: underline; color : #000; border: 0px; -moz-outline-style: none;} 
a:focus { outline: none;-moz-outline-style: none;}

Now here is the problem. In my header I have some text that is a link, but I do not want to to format it like all the other links in the site. So basically I want my a:link, a:hover, etc to ignore anything in the “header” div. How can I do this? Assume I need to override this for that div/span?

  • 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-15T02:28:55+00:00Added an answer on May 15, 2026 at 2:28 am

    You can use syntax like this..

    a:link { text-decoration: none; color : #ff6600; border: 0px; -moz-outline-style: none;}
    a:active { text-decoration: underline; color : #ff6600; border: 0px; -moz-outline-style: none;}
    a:visited { text-decoration: none; color : #ff6600; border: 0px; -moz-outline-style: none;}
    a:hover { text-decoration: underline; color : #000; border: 0px; -moz-outline-style: none;} 
    a:focus { outline: none;-moz-outline-style: none;}
    

    Then using css inheritance principles you can create more specific rules for links inside the #header element and override any of the properties you like.

    #header a:link {  text-decoration: underline; color : #000;  }
    #header a:visited {  text-decoration: underline; color : #000;  }
    

    Read about CSS inheritance

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

Sidebar

Related Questions

This will probably seem like a really simple question, and I am quite confused
Suppose I have an array similar to this (actual values probably will not be
Okay, so this will probably be closed or whatever, I don't care. I have
This will hopefully be an easy one. I have an F# project (latest F#
Hopefully this will not spark a religious war... We have a web based app
Im sure this will be a simple one but have a project that started
I would like to do the following but I don't think this will work:
This will probably be obvious but I can't find the best way. I want
This will probably be a bot of a waffly question but ill try my
This will probably be an extremely simple question. I'm simply trying to remove duplicate

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.