Help Needed: Can you Swing it?


#1


8. Can you swing it


I get message "Oops, try again. Did you remember to set the paragraphs inside <li> tags to the text-decoration: underline;?" but the lines in the sample to the right are underlined. I need help so that i can proceed with the lesson.


/*Add your CSS below!*/

p {
    font-family: Garamond;
}

body > p {
        font-weight: bold;
}

div > p {
        color: #7AC5CD;
}

li > p {
        color: #000000;
        text-decoration: underline;
}


#2

Can you post your index file your stylesheet looks good to me. I am having an issue with text-decoration: none; right now on a similar lesson.


#3

My index file is the default unchanged (here is a copy paste)

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Ultimate Text Challenge</title>
	</head>
	<body>
		<p>Introduction: Cascading with CSS</p>
		<div>
			<p>Synopsis: When you set a property of a selector like 'p' to a certain value, that value applies to <em>all</em> p tags.
			If, however, you change that same property to a different value for a more specific instance of p,
			that change will <em>override</em> the 'general rule'.
			</p>
			<ul>
				<li><p>If you say p { font-family: Garamond}, all 'p's will have the font Garamond.</p></li>
				<li><p>BUT if you say li p {font-family: Verdana}, 'p's outside of 'li's will be
					   in Garamond, and 'p's INSIDE 'li's will be in Verdana.
				</p></li>
				<li><p>The more specific your selectors are, the higher importance CSS gives to the styling you apply!</p></li>
			</ul>
		</div>
		<p>Summary: Greater specificity makes CSS prioritize that particular styling.</p>
	</body>
</html>

#4

So just the same issue I am having with thetext-decoration: command not working. I looked how to report a bug and it's through the forum for this class I hope someone can help us with it soon. I have even reset my code twice and redone the whole activity with no luck.


#5

GOOD NEWS! reading through old forums I found one stating they had trouble on some lessons using Chrome. I logged in with a different browser and it worked just as I had it. If you are using chrome try logging in on Edge or Firefox (the one I used), and see what happens.


#6

Tried another browser as you suggested and it works! thanks for the heads up. I also just encountered issues with text-decoraton: up ahead on 15. Links

Thank You!


#7

You are welcome glad it worked. Happy coding!


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.