1 Replies - 664 Views - Last Post: 22 February 2010 - 10:58 AM

#1 tscott  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 370
  • Joined: 30-January 09

Whats the command for a css command to take effect on all elements?

Posted 22 February 2010 - 12:34 AM

I'm trying to use the a outline: none; property none for all my links on my page I've put this in the body but it doesn't make all links have no outline I was told their is a command which can do this for all elements on the page? If so what is it thanks guys
Is This A Good Question/Topic? 0
  • +

Replies To: Whats the command for a css command to take effect on all elements?

#2 Excavator  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 60
  • Joined: 10-December 06

Re: Whats the command for a css command to take effect on all elements?

Posted 22 February 2010 - 10:58 AM

Hello tscott,
It sounds like your talking about the CSS Reset. This method is rapidly falling along the wayside right there with tables and spacer.gif's though.

Instead of globally killing all defaults, you should be able to put outline:none on a parent and it will cascade through all the links you want to affect. You just have to figure out what parent to put it on.
a {outline:none;} should kill it sitewide as affectively as the CSS Reset.

Outline is there for a reason too. Maybe you should have a look at why before you kill it.
For accessability you should add back in a style for your links focus and active states. It's simple to just make them the same as the hover state. Itís about the same thing, as far as actual function.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1