Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Closed Thread
CSS Beginner - Can't link to external stylesheet
Old 09-25-2009, 09:45 PM CSS Beginner - Can't link to external stylesheet
Novice Talker

Posts: 14
Name: Nik
Trades: 0
Hi,

[Fixed - no need to reply. There was a problem with my editor's preview function which made me believe there was a problem].

I've gone through the css tutorial at w3schools.com - but I can't seem to make my html file link to my css file.
In my root folder I have the index.html file, and a "styles" folder which contains my "aagstyle.css" file.

Index.html code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
[title, meta tags, etc.]
    <link rel="stylesheet" type="text/css" href="styles/aagstyle.css" />
</head>
<body>
<h1>Hello World</h1>
. . . .
</body>
</html>
In my css file: (just some things I pulled out of the tutorial to experiment with)
Code:
body
{
    background-color:red;
    font-family:arial,georgia,sans-serif;
    font-size:100%
}
h1 {color:blue}
hr {color:red}
p
{
    font-size:0.75em;
    margin-left:20px;
    color:red
}
p.intro
{
    height:100px;
    margin:50px 20px
}
p.left {text-align:left}
p.center {text-align:center}
p.right {text-align:right}
[Fixed - no need to reply]

Thanks.

Last edited by NikMac; 09-25-2009 at 09:54 PM..
NikMac is offline
View Public Profile
 
 
Register now for full access!
Closed Thread     « Reply to CSS Beginner - Can't link to external stylesheet
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07651 seconds with 12 queries