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



Reply
Link doesn't work at all
Old 08-29-2006, 10:51 AM Link doesn't work at all
Average Talker

Posts: 16
Trades: 0
please help me look at my code,

Code:
<html>
<head>
   <title>E-commerce Syllabus</title>
   <style type="text/css">
   h1 {color:blue; text-align: left; font-family: times; class="under"}
   li em {color: red; text_decoration: underline}
   span {font-size: 0.7em}
   body {background-color: yellow}
   
 p:first-line 
{
color: #ff0000;
font-variant: small-caps
}
   
   p:first-letter 
   {
   color: #ff0000;
   font-size:x-large
   }
<link rel="stylesheet" type="text/css" href="first.css">  <!--doesn't work,help me >
</style>
</head>
<body>
 
...
</body>
</html>

the following is my first.css's code
Code:
p.ridge {border-style: ridge}
p.inset {border-style: inset}
@import url(second.css)
ul.disc {list-style-type: circle}
etc.
zhshqzyc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-29-2006, 11:10 AM Re: Link doesn't work at all
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Is your CSS file in the root directory with the pages you're linking it to ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 11:23 AM Re: Link doesn't work at all
Average Talker

Posts: 16
Trades: 0
Both of them are in the same folder.
zhshqzyc is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 11:55 AM Re: Link doesn't work at all
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,111
Name: Matt. (>',')>
Location: London, England.
Trades: 0
<link rel="stylesheet" type="text/css" href="first.css"> Isn't supposed to be in between <style> tags is it?

Try putting it after the </style> tag and before the </head> tag
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 08-29-2006, 12:12 PM Re: Link doesn't work at all
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I missed that StOx.. good catch ! Guess I need another cup of coffee this morning

Definitely take that <link> OUT of the <style> block.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 08:55 PM Re: Link doesn't work at all
menerweb's Avatar
Extreme Talker

Posts: 150
Trades: 0
Code:
<html> <head> <title>E-commerce Syllabus</title> <style type="text/css"> h1 {color:blue; text-align: left; font-family: times; class="under"} li em {color: red; text_decoration: underline} span {font-size: 0.7em} body {background-color: yellow}
p:first-line { color: #ff0000; font-variant: small-caps }
p:first-letter { color: #ff0000; font-size:x-large }
</style>
<link rel="stylesheet" type="text/css" href="first.css" /> (This can be either ">" or " />" according to your coding, HTML or XHTML, it is necessary to use " />" for closing tags like this)
</head> <body>
... </body> </html>
__________________
Portfolio:
Please login or register to view this content. Registration is FREE
| About Forex:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
menerweb is offline
Reply With Quote
View Public Profile Visit menerweb's homepage!
 
Reply     « Reply to Link doesn't work at all
 

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.22338 seconds with 12 queries