Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
MR Q
1,297 PointsI can't color the points at the begining of the UL-in the nav-tag;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>OVP</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/main.css" /> </head>
<body>
<header>
<a href="index.html" id="logo">
<h1>XXXXXXXXX</h1>
<h2>YYYYYYYYY</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class="selected">Pagina principala</a></li>
<li><a href="antrenament.html">Antrenament</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<div id="wrapper">
<section>
<ul>
<li>
<a href="img/1.jpg" >
<img src="img/1.jpg" alt="">
</a>
</li>
<li>
<a href="img/2.jpg" >
<img src="img/2.jpg" alt="">
</a>
</li>
<li>
<a href="img/3.jpg" >
<img src="img/3.jpg" alt="">
</a>
</li>
<li>
<a href="img/4.jpg" >
<img src="img/4.jpg" alt="">
</a>
</li>
<li>
<a href="img/5.jpg" >
<img src="img/5.jpg" alt="">
</a>
</li>
</ul>
</section>
<footer>
<a href="https://twitter.com">
<img src="img/twit.png">
</a>
<a href="https://facebook.com">
<img src="img/facebook.png">
</a>
<p>© FFFFF Software 2015 </p>
</footer>
</div>
</body>
</html>
a { text-decoration:none; }
wrapper{
max-width:940px;
margin: 0 auto;
padding: 0 5%;
}
logo{
text-align:center;
margin:0;
}
a{ color:#e3c07e; }
header{ background-color:#e3c07e; border-color:#7b7050; }
h1,h2 { color:#60cdd0; }
nav{ background-color:#7b7050; }
nav a,nav a:visited{ color:#60cdd0; }
nav a.selected, nav a:hover{ color:#32673f; }
body{ background-color:#fff; color:#999; }
This is my css and my html code!! But i can't get rid of the black unordered buttons in the nav tag? Why is that happen eventhough i think i respected the indications in the video Thanks
1 Answer
Unsubscribed User
8,841 PointsHi,
can you try like the below one and check if it works now. The way the element is referenced in css is wrong.
nav ul li a,nav ul li a:visited
{
color:#60cdd0;
}
My suggestion would be to give a "different color" for the visited state to show that the links have been visited.
nav ul li a
{
color:#60cdd0;
}
nav ul li a:visited
{
color:black;
}
Thanks, Aishu
MR Q
1,297 PointsMR Q
1,297 Points1)The way are referenced is the way is explained in the video . 2)I tried your suggestions but it is not working.
Thank you