Login | Register | FAQ
Anonymous

css identification not working

+ Post a reply

3 posts Page 1 of 1


css identification not working

by mr code » Wed Apr 30, 2014 12:11 pm

my html code :-
<html>
<head>
<title>identification and grouping of elements</title>
<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>
<body>
<h1>grouping elements within a class</h1>
<h2>using css</h2>
<h3>with css</h3>

<p>action games</p>
<ul>
<li><a herf="ba.htm" class="action games">battlefield</a></li>
<li><a herf="co.htm" class="action games">cod</a></li>
<li><a herf="tc.htm" class="action games">tom clancy</a></li>
</ul>

<p>old games</p>
<ul>
<li><a herf="ro.htm" class="oldgames">roadrash</a></li>
<li><a herf="n2.htm" class="oldgames">nfs 2</a></li>
<li><a herf="wo.htm" class="oldgames">wolfstien</a></li>
</ul>
</body>
</html>

my css code:-
a {
color: blue;
}

a.actiongames {
color: #FFBB00;
}

a.oldgames {
color: #800000;
}

its not working pls help
User avatar

mr code

  • Posts: 5
  • Joined: Mon Feb 17, 2014 11:02 am

Re: css identification not working

by XainPro » Fri May 02, 2014 7:20 am

there is also a type inyour code

<a herf="tc.htm" class="action games">tom clancy</a>

do not add space in between action games
and try to remove a.actiongames from your css and only use .actiongames it would be easy to read your css code :)
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: css identification not working

by mr code » Fri May 02, 2014 9:49 am

tnx guys it worked ...
User avatar

mr code

  • Posts: 5
  • Joined: Mon Feb 17, 2014 11:02 am


+ Post a reply

Page 1 of 1