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 trialSeth Warner
1,878 PointsSomething seems to be causing my "text-decoration: none;" not able to remove the hyper link design..
ul {
font-size: 20px;
font-family: Arial;
font-color:#0d0d0d;
text-align: center;
text-shadow: 3px 2px 3px #333333;
border-radius: 8px;
background-color: #b3b3b3;
list-style-type: none; /*This removes the bullets */
margin: 0; /*This and */
padding: 0; /*this, adjusts the palcement of the navbar's contents */
}
ul li { /* to adjust the li, you would use "ul li" not "#navBar li".*/
border-left: 1px solid #550;
display:inline;
text-decoration: none;
}
ul li:hover {
font-size: 20px;
font-family: Arial;
font-color:#0d0d0d;
text-align: center;
text-shadow: 3px 2px 3px #333333;
border-radius: 8px;
opacity: 50;
background-color: #b3b3b3;
}
3 Answers
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsI think it's because the text-decoration should be added to the links instead of the list-items ;) Try this:
a {
text-decoration: none;
}
Seth Warner
1,878 PointsHenrik Christensen Huh, that worked. I was under the impression you were to treat it like other CSS settings, and you could define where you don't want text-decorations. I'm guessing the "a" stands for anchor tag?
Seth
Thank you!
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsYes, a stands for anchor tag - if you try make list-items that's not wrapped inside an anchor tag you should see the text doesn't have an underlined text - But the anchor tag does have the underlined text by default :-)
Seth Warner
1,878 PointsHenrik Christensen Sure do! Thank you, funny how something so small can be such a nuisance.
- Seth