Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. CSS link problems

CSS link problems

Scheduled Pinned Locked Moved Web Development
helpcsswpftutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JackIsMe777
    wrote on last edited by
    #1

    I have three different styles of links that I would like to have on page... 1. General links on the page 2. Navigation menu links 3. Page footer The problem I'm having is that the different styles keep on affecting other ones randomly. For example, the general links on the page are supposed to be in (Verdana, Helvetica, Arial, sans-serif), however they are inheriting (monospace) from the footer?!? I have the navigation menu setup in a div like this: ****************************************************

    Menu Link 1 Menu Link 2

    **************************************************** ...and the footer setup liks this: ****************************************************

    click here **************************************************** Here is my CSS code: **************************************************** /*NAVIGATION MENU LINK PROPERTIES*/ #navmenu a, a:link, a:visited, a:active { padding-left: 25px; padding-top: 5px; padding-bottom: 5px; font-variant: small-caps; line-height: 30px; letter-spacing: +1px; font-family: cursive; font-size: 12px;} /*NAVIGATION HOVER PROPERTIES*/ #navmenu a:hover { color: #eded0a;} /*GENERAL LINK PROPERTIES*/ a, a:link, a:visited, a:active { padding: 0px; margin: 0px; color: #f8f8f8; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none; text-indent: 0px; text-align: left; font-variant: normal; text-transform: none;} a:hover { padding: 0px; margin: 0px; color: #f8f8f8; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: underline; text-indent: 0px; text-align: left; font-variant: normal; text-transform: none;} #footer a, a:link, a:visited, a:active { font-family: monospace; font-variant: normal; padding: 0px; font-size: 10px;} **************************************************** Thanks for any help you can give!

    G J 2 Replies Last reply
    0
    • J JackIsMe777

      I have three different styles of links that I would like to have on page... 1. General links on the page 2. Navigation menu links 3. Page footer The problem I'm having is that the different styles keep on affecting other ones randomly. For example, the general links on the page are supposed to be in (Verdana, Helvetica, Arial, sans-serif), however they are inheriting (monospace) from the footer?!? I have the navigation menu setup in a div like this: ****************************************************

      Menu Link 1 Menu Link 2

      **************************************************** ...and the footer setup liks this: ****************************************************

      click here **************************************************** Here is my CSS code: **************************************************** /*NAVIGATION MENU LINK PROPERTIES*/ #navmenu a, a:link, a:visited, a:active { padding-left: 25px; padding-top: 5px; padding-bottom: 5px; font-variant: small-caps; line-height: 30px; letter-spacing: +1px; font-family: cursive; font-size: 12px;} /*NAVIGATION HOVER PROPERTIES*/ #navmenu a:hover { color: #eded0a;} /*GENERAL LINK PROPERTIES*/ a, a:link, a:visited, a:active { padding: 0px; margin: 0px; color: #f8f8f8; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none; text-indent: 0px; text-align: left; font-variant: normal; text-transform: none;} a:hover { padding: 0px; margin: 0px; color: #f8f8f8; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: underline; text-indent: 0px; text-align: left; font-variant: normal; text-transform: none;} #footer a, a:link, a:visited, a:active { font-family: monospace; font-variant: normal; padding: 0px; font-size: 10px;} **************************************************** Thanks for any help you can give!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      That is because you have specified the id for the a and a:hover elements only, the a:link, a:visited and a:active also need the id: #navmenu a, #navmenu a:link, #navmenu a:visited, #navmenu a:active { #footer a, #footer a:link, #footer a:visited, #footer a:active { --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • J JackIsMe777

        I have three different styles of links that I would like to have on page... 1. General links on the page 2. Navigation menu links 3. Page footer The problem I'm having is that the different styles keep on affecting other ones randomly. For example, the general links on the page are supposed to be in (Verdana, Helvetica, Arial, sans-serif), however they are inheriting (monospace) from the footer?!? I have the navigation menu setup in a div like this: ****************************************************

        Menu Link 1 Menu Link 2

        **************************************************** ...and the footer setup liks this: ****************************************************

        click here **************************************************** Here is my CSS code: **************************************************** /*NAVIGATION MENU LINK PROPERTIES*/ #navmenu a, a:link, a:visited, a:active { padding-left: 25px; padding-top: 5px; padding-bottom: 5px; font-variant: small-caps; line-height: 30px; letter-spacing: +1px; font-family: cursive; font-size: 12px;} /*NAVIGATION HOVER PROPERTIES*/ #navmenu a:hover { color: #eded0a;} /*GENERAL LINK PROPERTIES*/ a, a:link, a:visited, a:active { padding: 0px; margin: 0px; color: #f8f8f8; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none; text-indent: 0px; text-align: left; font-variant: normal; text-transform: none;} a:hover { padding: 0px; margin: 0px; color: #f8f8f8; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: underline; text-indent: 0px; text-align: left; font-variant: normal; text-transform: none;} #footer a, a:link, a:visited, a:active { font-family: monospace; font-variant: normal; padding: 0px; font-size: 10px;} **************************************************** Thanks for any help you can give!

        J Offline
        J Offline
        JackIsMe777
        wrote on last edited by
        #3

        Thanks for the responce. That worked perfectly!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups