CSS Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

#navlist li a.active, #navlist li a:active
   padding-bottom: 5px;
    color: #fff;

is from www.sitepoint.com css sheet.  I know "li a.active" defines the
class "active" for anchor elements in the line item of navlist.  But
what does "li a:active" do?


Re: CSS Question

Quoted text here. Click to load it

:active is a pseudo-class.  That means the rule applies to any links which
are currently being clicked or processed.  In Mozilla, it applies only when
the mouse button is being held down.  In IE, I think things are different,


In a room with thirty-seven people, never have everybody shake each other's

Re: CSS Question

On Tue, 10 Aug 2004 21:50:59 +0000, Sam Hughes wrote:

Quoted text here. Click to load it

From my book CSS 2 & 2.1 by Eric Meyer it is defined as
Quote ":active Refers to any element that has been activated by user
input. eg. a hyperlink on which a user is clicking during the time the
mouse button is held down.


Re: CSS Question

Quoted text here. Click to load it

: marks a pseudo-element or a  pseudo-class. See

Site Timeline