Zaloguj | Zarejestruj | FAQ
Anonymous

css identification not working

+ Odpowiedz

Posty: 3 Strona 1 z 1


css identification not working

przez mr code » Śr kwi 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
Avatar użytkownika

mr code

  • Posty: 5
  • Dołączył(a): Pn lut 17, 2014 11:02 am

Re: css identification not working

przez XainPro » Pt maja 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 :)
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: css identification not working

przez mr code » Pt maja 02, 2014 9:49 am

tnx guys it worked ...
Avatar użytkownika

mr code

  • Posty: 5
  • Dołączył(a): Pn lut 17, 2014 11:02 am


+ Odpowiedz

Strona 1 z 1