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. ASP.NET
  4. Can you help me for CSS

Can you help me for CSS

Scheduled Pinned Locked Moved ASP.NET
csshelp
2 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.
  • M Offline
    M Offline
    mghiassi
    wrote on last edited by
    #1

    I use CSS and Visual Basic to implement a web site. I use this code: body#Linkbutton1 li.Linkbutton1 a:link{ color: #FFFFFF; background-color: #CC0000; } body#Linkbutton1 li.Linkbutton1 a:visited{ color: #FFFFFF; background-color: #660000; } body#Linkbutton1 li.Linkbutton1 a:hover{ background-color: #660000; color: #FFFFFF; } body#Linkbutton1 li.Linkbutton1 a:active{ background-color: #660000; color: #FFFFFF; } but the active selector dose not worked.

    B 1 Reply Last reply
    0
    • M mghiassi

      I use CSS and Visual Basic to implement a web site. I use this code: body#Linkbutton1 li.Linkbutton1 a:link{ color: #FFFFFF; background-color: #CC0000; } body#Linkbutton1 li.Linkbutton1 a:visited{ color: #FFFFFF; background-color: #660000; } body#Linkbutton1 li.Linkbutton1 a:hover{ background-color: #660000; color: #FFFFFF; } body#Linkbutton1 li.Linkbutton1 a:active{ background-color: #660000; color: #FFFFFF; } but the active selector dose not worked.

      B Offline
      B Offline
      badgrs
      wrote on last edited by
      #2

      I think you may be misunderstanding what the active selector does. It is the state a link is in as the mouse (or keyoboard...I think) button is pressed down. In your case you have the same colour as the :hover state so you won't see any difference. The default (IE) behaviour for :active is to colour the link red, try using a different colour and you'll see what I mean. A couple of tips I thought I'd mention about your styles: - I can't see white on red being that easy to see, do you know how colour blind people will see it? - You may want to consider having a different colour for the :visited state. I know its nice to keep your links always the same colour, but depending on the links purpose its always best to let a user know where they've been (by purpose I mean if your link is performing a function rather than navigating the user, which in this case it looks like it might be, then having the same colour is probably OK)

      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