CSS your HTML partner ! !

CSS your HTML partner! !

Click here to visit Our forum here!

Thursday, April 7, 2011

CSS Attribute Selector



CSS Attribute Selector
The following style all element with tittle attribute:

[ title ]
{
color : yellow ;
}

The example below style all element with tittle="hallo" :

[ title = hallo ]
{
border : green ;
}

Example below shows element with tittle that contain a specified value :

[title~=bye bye]
{
color :red ;
}

Refenrence:CSS Attribute Selectors,[Online],Retrieve 8 April 2011.

No comments:

Post a Comment