|
Unknown CSS Error
Last post 01-28-2008 5:30 AM by dhromed. 20 replies.
-
01-24-2008 9:36 PM
|
|
-
erichthewebguy


- Joined on 01-23-2008
- Posts 4
|
A friend of mine who is very much a n00b at web development was having some CSS issues. Try as he might, he couldn't get that one last error to go away:
Warning: Expected identifier for class selector but found ' '. Ruleset ignored due to bad selector.
Source File: http://www.site_name_removed.com/filename.css
Line: 33 So I took a quick look at the CSS file, and found this:
a { color: #FFFFFF; text-decoration: underline; }
a:hover {
color: #FFFFCC;
text-decoration: underline;
}
ill wash your body with my bare hands. :) h2 {
color: #FFFFCC;
text-decoration: bold;
font-family: serif;
size: 28;
}
When I asked him about it, he (after a long silence) said an IM with a "certain female friend" had intefered with some copy/paste he was doing on his CSS. He thanked me for my help and promptly signed out!
|
|
-
-
elgate


- Joined on 01-20-2008
- Posts 121
|
erichthewebguy:ill wash your body with my bare hands. :) The web browser was only erroring because it was waiting for him to turn up and follow through with his promise.
|
|
-
-
-
gremlin


- Joined on 01-05-2006
- Posts 56
|
erichthewebguy:A friend of mine who is very much a n00b at web development was having some CSS issues. Try as he might, he couldn't get that one last error to go away:
Warning: Expected identifier for class selector but found ' '. Ruleset ignored due to bad selector.
Source File: http://www.site_name_removed.com/filename.css
Line: 33 So I took a quick look at the CSS file, and found this:
a { color: #FFFFFF; text-decoration: underline; }
a:hover {
color: #FFFFCC;
text-decoration: underline;
}
ill wash your body with my bare hands. :) h2 {
color: #FFFFCC;
text-decoration: bold;
font-family: serif;
size: 28;
}
When I asked him about it, he (after a long silence) said an IM with a "certain female friend" had intefered with some copy/paste he was doing on his CSS. He thanked me for my help and promptly signed out! He obviously didn't try very hard to fix it before calling you - the error message gives him the line number to look at...
the forum software ate my colon
|
|
-
-
boomzilla


- Joined on 12-11-2007
- NOVA
- Posts 190
|
gremlin:He obviously didn't try very hard to fix it before calling you - the error message gives him the line number to look at... Yeah, but who wants to count that many lines in a file?
|
|
-
-
derula


- Joined on 06-15-2007
- Posts 282
|
boomzilla:Yeah, but who wants to count that many lines in a file?
Yeah, that sure makes sense if you're using Windows Notepad.
# The Brillant Paula Bean # Author:: derula # Copyright:: Copyright (c) 2005-2008 Paula Bean # License:: Originally distributed under a # proprietary license by Paula Bean. # Ruby port by derula published # under the same terms as Ruby's.
# This module provides a method to return the # brillance of Paula Bean. This can be achieved # by calling the module method get_paula. module Paula_Bean
# This constant stores the essence of Paula # Bean's brillance. This is a private # constant, so you MAY NOT use # Paula_Bean::PAULA to access it! Please use # the get_paula method instead. PAULA = "Brillant"
# Returns Paula Bean's brillance. def self.get_paula return PAULA end end
|
|
-
-
wooter


- Joined on 05-11-2006
- Posts 61
|
derula: boomzilla:Yeah, but who wants to count that many lines in a file?
Yeah, that sure makes sense if you're using Windows Notepad.
... and are too arsed to click "Status Bar" in the "View" menu.
|
|
-
-
Benn


- Joined on 01-08-2008
- Derbyshire, UK
- Posts 69
|
wooter: derula: boomzilla:Yeah, but who wants to count that many lines in a file?
Yeah, that sure makes sense if you're using Windows Notepad.
... and are too arsed to click "Status Bar" in the "View" menu.
Count lines? Click on some mysterious 'Status Bar' ? Nahhh - he just needed SwampSearch...
|
|
-
-
boomzilla


- Joined on 12-11-2007
- NOVA
- Posts 190
|
Benn:Count lines? Click on some mysterious 'Status Bar' ? Nahhh - he just needed SwampSearch... Oh, sure, come along and just hijack TRWTF, why don't you... Anyways, I think that you'd have to just play random lines, and hope that you notice the bug scrolling away. Or was that second prompt option kd?
|
|
-
-
tdittmar


- Joined on 11-14-2006
- Hassia, Germany
- Posts 156
|
boomzilla: Benn:Count lines? Click on some mysterious 'Status Bar' ? Nahhh - he just needed SwampSearch... Oh, sure, come along and just hijack TRWTF, why don't you... Anyways, I think that you'd have to just play random lines, and hope that you notice the bug scrolling away. Or was that second prompt option kd? I just love the fact that this idiot is becoming a running gag among the TRWTF community :-D
SpectateSwamp - Fighting Open Source with ClueLessNess
|
|
-
-
DaveK


- Joined on 02-22-2006
- Posts 471
|
wooter: derula: boomzilla:Yeah, but who wants to count that many lines in a file?
Yeah, that sure makes sense if you're using Windows Notepad.
... and are too arsed to click "Status Bar" in the "View" menu.
...
or haven't noticed the "Go To..." line (Ctrl+G) option that it's
supported since more or less the start of the current millennium.
|
|
-
-
-
dlikhten


- Joined on 09-27-2007
- New York Citeyah
- Posts 670
|
tdittmar: boomzilla: Benn:Count lines? Click on some mysterious 'Status Bar' ? Nahhh - he just needed SwampSearch... Oh, sure, come along and just hijack TRWTF, why don't you... Anyways, I think that you'd have to just play random lines, and hope that you notice the bug scrolling away. Or was that second prompt option kd? I just love the fact that this idiot is becoming a running gag among the TRWTF community :-D Line numbers? Thats just a bunch of horse-sh** used to confuse the REAL coders! You can't code in notepad? What kind of a programmer needs anything more than notepad! Integrated Development Environment? I am not developing any integrated environment, so get off my back! Line numbers... pfft.
Code is like a box of chocolates. You never know who stuck a turd in there and why. The Stupidest Man On EarthSSDS Bug: Program should not start up
|
|
-
-
boomzilla


- Joined on 12-11-2007
- NOVA
- Posts 190
|
dlikhten:Line numbers? Thats just a bunch of horse-sh** used to confuse the REAL coders! You can't code in notepad? What kind of a programmer needs anything more than notepad! Integrated Development Environment? I am not developing any integrated environment, so get off my back! Line numbers... pfft.
Notepad?!? What a bunch of bloat. Ed is the standard text editor.
|
|
-
-
erichthewebguy


- Joined on 01-23-2008
- Posts 4
|
dlikhten:Line numbers? Thats just a bunch of horse-sh** used to confuse the REAL coders! You're absolutely correct. The real coders don't use n00b things like line numbers. We all know that just wastes disk space, plus, isn't one line easier to read and maintain than 6,000? Hint: yes it is. I get so tired of wanna-be programmers and compilers telling me about line numbers. I love it when an error message says "Syntax error. Line:1 Character: 4,134,987" That makes me feel better about myself as a programmer. Not only that, but you save a ot of wear and tear on the 'enter' key.
|
|
-
-
Aaron


- Joined on 07-10-2007
- Posts 237
|
This is as opposed to washing it with a rubber glove, I suppose. We've got a real Don Juan in the house. And of course he doesn't know where to find the apostrophe, or the shift key. At least tell me that this didn't happen while he was at work.
|
|
-
-
Spectre


- Joined on 05-09-2007
- Posts 455
|
boomzilla:
Isn't that ironic that, ed is an order of magnitude more full-featured and powerful than Notepad? Would not call it "bloated", though.
╩юфют√ь ёЄЁрэшЎрь яюЁр эр яхэёш■.
Visit #TDWTF @ SlashNET - the semi-official WTF IRC channel.
|
|
-
-
The General


- Joined on 11-01-2007
- Manchester, UK
- Posts 38
|
erichthewebguy:
I get so tired of wanna-be programmers and compilers telling me about line numbers. I love it when an error message says "Syntax error. Line:1 Character: 4,134,987" That makes me feel better about myself as a programmer. Not only that, but you save a ot of wear and tear on the 'enter' key.
I've actually had that a couple of times at work - a run-time error on an embedded PL/SQL block in Oracle Pro*C. (Feel free to shout "TRWTF" now...) The Pro*C precompiler converts the whole block into a single string, losing newlines. Occasionally (I think it was while we were migrating to a later Oracle release) a run-time error would be described as something like "ORA-06502 occured at line 1, column 6720".
"Who is General Failure and why is he reading my disk?"
|
|
-
-
MarcB


- Joined on 10-24-2006
- Posts 511
|
boomzilla: You modern babies and your fancy schmany tools. Real men use copy con > whatever.txt or better yet, use debug to stuff the text directly into memory and/or onto disk. h2 {
color: #FFFFCC;
text-decoration: bold;
font-family: serif;
size: 28;
}
Umm... "text-decoration: bold"? Didn't realize that was a valid decoration value. Or maybe it's more residue from the sex-chat about how "bold" the other one's being.
-- Never play leapfrog with a unicorn
|
|
-
-
Daniel Beardsmore


- Joined on 02-16-2007
- Hertfordshire, England
- Posts 376
|
MarcB:
h2 { color: #FFFFCC; text-decoration: bold; font-family: serif; size: 28; }
Umm... "text-decoration: bold"? Didn't realize that was a valid decoration value. Or maybe it's more residue from the sex-chat about how "bold" the other one's being.
I don't think that "size: 28" is valid either; I'll leave you to guess how that came into the steamy conversation. And what units are in force.
|
|
-
-
dhromed


- Joined on 04-13-2005
- Dutchland
- Posts 2,614
|
Daniel Beardsmore: MarcB:
h2 { color: #FFFFCC; text-decoration: bold; font-family: serif; size: 28; }
Umm... "text-decoration: bold"? Didn't realize that was a valid decoration value. Or maybe it's more residue from the sex-chat about how "bold" the other one's being.
I don't think that "size: 28" is valid either; I'll leave you to guess how that came into the steamy conversation. And what units are in force.
The funny thing is that the color property is the odd-man-out between the other font-properties. Why was it named color, instead of font-color?
— Flurp.
|
|
Page 1 of 1 (21 items)
|
|
|