Unknown CSS Error



  • 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!



  • @erichthewebguy said:

    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.  



  • Oh, the humanity.

     



  • @erichthewebguy said:

    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...



  • @gremlin said:

    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? 



  • @boomzilla said:

    Yeah, but who wants to count that many lines in a file?

    Yeah, that sure makes sense if you're using Windows Notepad. 



  •  @derula said:

    @boomzilla said:

    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.



  • @wooter said:

     @derula said:

    @boomzilla said:

    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...



  • @Benn said:

    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? 



  • @boomzilla said:

    @Benn said:

    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 😃 



  • @wooter said:

     @derula said:

    @boomzilla said:

    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. 



  •  TRWTF is that he was (and maybe still is) using Dreamweaver. 



  • @tdittmar said:

    @boomzilla said:

    @Benn said:

    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 😃 

     

    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.



  • @dlikhten said:

    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.



  • @dlikhten said:

    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.  



  • This is as opposed to washing it with a rubber glove, I suppose.  We've got a real Don Juan in the house.  And [I]of course[/I] 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.




  • @boomzilla said:

    Notepad?!?  What a bunch of bloat.  Ed is the standard text
    editor
    .

    Isn't that ironic that, <font face="Courier New">ed</font> is an order of magnitude more full-featured and powerful than Notepad? Would not call it "bloated", though.



  • @erichthewebguy said:

    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".



  • @boomzilla said:

    Notepad?!?  What a bunch of bloat.  Ed is the standard text editor.
     

    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.



  • @MarcB said:

    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.



  • @Daniel Beardsmore said:

    @MarcB said:

    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? 


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.