Wednesday, 15 September 2010

html - Is there a way to have URL-related CSS-Styles? -



html - Is there a way to have URL-related CSS-Styles? -

is there way have url-related css-styles?

for example. have link on webpage

<a href="#blue">blue</a>

after clicking url changes test.com#blue

is possible apply style depending on url?

background-color: blue;

only the :target pseudo-class match elements id matches fragment identifier in url.

html css url styles href

No comments:

Post a Comment