Home Download Buy Blog Forum Support

inserting external stylesheet

inserting external stylesheet

Postby zchan on Thu Apr 11, 2013 5:28 am

So here's my code right now for my HTML doc:

Code: Select all
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <link rel="stylesheet" type="text/css" href="screen.css" />
</head>
<body>
   <div id="topbanner"></div>
</body>
</html>

and for my CSS doc:

Code: Select all
@charset "utf-8"
/* CSS Document */

#topbanner{
   height: 30px;
   width: 100%;
   background-color: #000000;
}

Somehow that's not linking the stylesheet to the html doc cause whenever I open up the html doc in a browser, it's just a blank white page. Help?
zchan
 
Posts: 1
Joined: Thu Apr 11, 2013 5:24 am

Re: inserting external stylesheet

Postby dedun on Thu Apr 11, 2013 7:26 am

This has nothing to do with ST - just missing
;
at the end of
@charset "utf-8"
dedun
 
Posts: 3
Joined: Thu Apr 11, 2013 7:23 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 8 guests