| You are on page 1 of 2, other pages: [1] 2 |
|
anonymous from United States
|
|
|
|
Where's the .CSS style sheet file located?
|
|
anonymous from United Kingdom
|
|
|
|
|
2007-01-28, 09:27:06 (updated: 2007-01-28, 09:27:22) |
 Peter (Admin) from United States
|
|
|
|
To anonymous in United Kingdom:
I looked at your CSS file. If it is an external .css file, you should not include the <style> and </style> lines.
|
|
anonymous from United States
|
|
|
|
Hey that worked. Thanks.
|
|
anonymous
|
 |
|
|
When you are put an semicolon after the } in the styles(like this
.stylename{
width:10%
};
) at that time also this error will come. Just remove the semicolon then it will works
use this(
.stylename{
width:10%
}
)
|
2007-09-20, 15:43:52 (updated: 2007-09-20, 15:44:42) |
anonymous from Porto Alegre, Brazil
|
|
|
|
You may also have something like this in your CSS:
.whatever, {
...
}
The extra comma shouldn't be there, so just remove it:
.whatever {
...
}
|
|
anonymous from United States
|
|
|
|
I actually got this error because I named one of my classes starting with a number:
<style type='text/css' >
.100Percent
{
width: 100%;
}
</style>
When I changed it to the following the error went away:
<style type='text/css' >
.OneHundredPercent
{
width: 100%;
}
</style>
|
|
anonymous from United States
|
|
|
|
no html tags in an external, right, and check to make sure all the files are in the same directory.... sounds easy nuff, but a common error. least for me...
|
|
anonymous from United Kingdom
|
|
|
When I changed it to the following the error went away:
<style type='text/css' >
.OneHundredPercent |
that helped me out thanks I was flummoxed for a while ;o)
|
|
tel@telgo.com from Reston, United States
|
 |
|
|
I found the error in
BODY, P, {font-family: verdana, arial, sans-serif;
font-size: 12pt; color: #000000; text-align: left;
}
It was the extra comma after P, due to the fact that I deleted another specifier without removing the comma too.
|
2009-08-16, 07:06:39 (updated: 2009-08-16, 07:10:39) |
|
|
|
(I actually got this error because I named one of my classes starting with a number)
This is helpful for me too ))! Thanks
|
|
anonymous from Canada
|
|
|
|
Removing all HTML tags in my CSS file worked for me! Thanks so much!
|
2009-11-12, 16:41:23 (updated: 2009-11-12, 16:44:20) |
anonymous from Oronoco, United States
|
 |
|
|
Whoop!.. :-)
Thanks!.. this one has plagued me for years, never bothered to check it out because there never seemed to be anything wrong.
Finally today I googed the string 'Selector expected. Ruleset ignored due to bad selector.' and bingo!, came across this thread!
Hail to the internet!
|
2009-11-14, 03:01:47 (updated: 2009-11-14, 03:04:55) |
anonymous from Australia
|
|
|
|
the html code posted is 'altered' by this site... the tags checks out fine...
omg this is getting on my nerves....
<html>
<head>
</head>
<link rel='stylesheet' type='text/css' href='css/logo.css'>
<body bgcolor='#00ff00'>
<div id='logo2'>
<div id='logoupper'>
<div id='logoinside1'>琪利</div>
<div id='logoinside2'>珠江</div>
<div id='logoinside3'>燒臘</div>
</div>
<div id='logolower'>
<div id='logoinside4'><hr class='red1'></div>
<div id='logoinside5'>KAY LEE ROAST MEAT JOINT</div>
<div id='logoinside6'><hr class='red1'></div>
<div id='logoinside7'>125 Upper Paya Lebar Rd S(534838) Tel: 67438778</div>& lt;/div>
</div>
</body>
</html>
W
Warning: Unexpected end of file while searching for ',' or '{'. Ruleset ignored due to bad selector.
Source Filfile: ///C:/Documents%20and%20Settings/Administrator/Desktop/kp/kaylee4/css/logo.css
Line: 1
#logo2 {
color: #f00;
font-weight: bold;
text-align: center;
overflow: hidden;
}
i dunno what wrong with it...
|
|
anonymous from Australia
|
|
|
|
hell i finally figure out the bloody problem
everythign is fine actually
but if you HTML is saved in unicode ... FF goes nuts...
|
| You are on page 1 of 2, other pages: [1] 2 |