|
-
Jun 25th, 2012, 07:01 PM
#2
Re: style sheet syntax
Hi. It would be nice if you could put your CSS code inside [highlight] tags, so it's easier to read on the forums 
[highlight=CSS].test {
display:none;
}[/highlight]
which displays as:
To answer your question:
I don't think you need/want the title attribute on the <style> tag. The title tag here is used to define alternative style sheet sets, which I don't think you're using.
Adding HTML comments inside the <style> tag is no longer considered necessary (imho), since you're not likely to come across a browser that doesn't support CSS. If you are going to add them in, then you would want to get the syntax correct. That's why it's complaining about those lines.
In future, you can use a tool like CSS Lint to validate your CSS (not that the actual CSS here has any problems)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|