Need help with text color! Trying to set h1 element to #513271, but it's not working. Check out my code and failed solutions below.
CSS saved as stylesheet.css in same folder as tributePage.html.
jumbotron h1 {
color: #513271;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
<link href="\stylesheet.css" rel="stylesheet" />
<html>
<head>
<title>Lizzy McGuire, an Evolution</title>
</head>
<div class="container">
<div class="jumbotron">
<body>
<h1 style="jumbotron-h1" class="text-center">Hey now, hey now.</h1>
</body>
</div>
</div>
</html>
Tried several solutions. All attempts listed below.
- Change the CSS file path
- C:\Users\Ashle\Coding\Assignments\FCC -- Tribute Page\stylesheet.css
- C:\Users\Ashle\Coding\Assignments\FCC -- Tribute Page\
- \stylesheet.css (I've used \ through \\\)
- stylesheet.css\
- Change the external CSS link style (no spaces between side carets, just included them so this would print below)
- < link href="stylesheet.css" rel="stylesheet" type="text/css"/ >
- < link href="stylesheet.css" rel="stylesheet" >
- Change the h1 element name in CSS
- h1, #h1, .h1
- jumbotron h1, #jumbotron h1, .jumbotron h1
- jumbotron-h1, #jumbotron-h1, .jumbotron-h1
- purple text, #purple text, .purple text
- purple-text, #purple-text, .purple-text
- Change the font color with an inline element
- < h1 style="color:purple;" class="text-center" >Hey now, hey now.< /h1 > Now, oddly enough, THIS will turn the title purple.
Thank you for your assistance!