Reply
Link doesn't work at all
Old 08-29-2006, 09: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
 
 
When You Register, These Ads Go Away!
Old 08-29-2006, 10:10 AM Re: Link doesn't work at all
LadynRed's Avatar
Super Moderator

Posts: 9,036
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 10: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, 10:55 AM Re: Link doesn't work at all
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,114
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
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 08-29-2006, 11:12 AM Re: Link doesn't work at all
LadynRed's Avatar
Super Moderator

Posts: 9,036
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 07: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>
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.09377 seconds with 13 queries