HTML5 Tutorial HELP!

+1 Devin S · January 27, 2015
I put the EXACT same code for side_news in my "Follow tutorial website". Which is:
#side_news{
background: #66CCCC;
float:left;
width: 220px;
margin: 20px 0px;
padding: 30px;
}
But the BACKGROUND doesn't work. EVERYTHING ELSE works. Why is this? Can someone help?

Post a Reply

Replies

Oldest  Newest  Rating
+1 M Uxi · January 27, 2015
Remember to add Stylesheet Link in your html page in your head section.

Like This.


<head>
    <link href="StyleSheet.css" rel="stylesheet" />
    <title></title>
</head>

And Css Like


#side_news{
background: #66CCCC;
float:left;
width: 220px;
margin: 20px 0px;
padding: 30px;
}

and make a div in your html page like this


 <div id="side_news">
        This is My Colour Side In This Div
    </div>
0 Devin S · January 27, 2015
I've found my problem. I did:
<aside id="aside_news">

instead of
<aside id="side_news">

Thanks for the help anyway! :)
  • 1

HTML / CSS / Web Design

107,018 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators