Where can I find code for vid tutorials?

+2 jessie John · October 13, 2014
I am following through the videos. When i enter this code in the CSS file nothing is happening
#article {
background:#66CCCC;
border:1px solid red;
padding:20px;
margin-bottom:15px;
}


here is the article section on the main html document
<section id ="main_section"
   
    <article id="article">
    <header>
    <hgroup>
    <h1>Title of article </h1>
    <h2> Subtitle for Article! part of a big group</h2>
    <h3> more then one header put in a hgroup </h3>
    </hgroup>
    </header>

    <p>this is the best article ever </p>
    <footer>
    <p> Written by jovan Ollivierre </p>
   
    </footer>
</article>
   
   </section>

Could anyone correct me please?

Post a Reply

Replies

Oldest  Newest  Rating
+1 Pieter Moens · October 13, 2014
Your html file should look like this :

<html language="en">
<head>
    <link rel="stylesheet" href="filename.css" type="text/css"/>
</head>
<body>
//all your html code.
</body>
</html>

Notice in the <head> how I link the stylesheet to your html file.

Kind regards,
Pieter Moens
  • 1

HTML / CSS / Web Design

107,032 followers
About

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

Links
Moderators