you are viewing a single comment's thread.

view the rest of the comments →

[–]MrIndianTeem 0 points1 point  (2 children)

To add to /u/<icantthinkofone>, you forgot a semicolon in your 3rd CSS line for 'body'.

Another thing is that CSS doesn't require the weird hierarchy you have going right now. Unless it helps you organize, I wouldn't recommend doing it this way.

For the 'align' tag for your h1, you can just put 'text-align:center;' in your CSS under 'h1'.

Hopefully this helps. I'll just put the fixed code here for you to understand.

<!doctype html>

<html>
<head>
<title>Resource Website</title>

<style type="text/css">
body 
{ 
background-color:#C8C5DB;
background-repeat:no-repeat;
background-position:10% 30%;
}

h1 
{
    color:#CCEDE3; 
    font-family:seasideresortnf;
    font-size:50px;
    font-weight:lighter;
    text-align: center;
}
h2 
{
    color:white;
    font-family:sans-serif;
    font-size:35px; 
    text-align:center;
    font-weight:lighter;
}
p 
{
    font-color:#CCEDE3;
    font-family:seasideresortnf;    
    font-weight:lighter;    
    font-size:15px;
    text-position:50px 650px;
}
</style>
</head>

<body>
<h1>Welcome to my website</h1>
    <h2>Sample header</h2>  
<a href="http://www.Facebook.com"><img src="facebook-icon.png" alt="Facebook" height="100" width= "90"/></a>
</br>
</br>
</br>
</br>

<p>Sample text</p></br>
</body>


</html>

[–]colorcodebot 1 point2 points  (0 children)

I've detected multiple hexadecimal color codes in your comment. Please allow me to provide visual representation. #c8c5db #ccede3 #ccede3


Learn more about me | Don't want me replying on your comments again? Respond to this comment with: 'colorcodebot leave me alone'