SitePoint Sponsor

User Tag List

Results 1 to 18 of 18
  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    localhost/media="all" - is that official css?

    hello all. this in firefox is coming up as
    "[11:22:08.246] Expected ',' or '{' but found '/'. Ruleset ignored due to bad selector. @ http://cdiwwwtest.cdicorp.com/wp-content/themes/cdi/style.css?ver=3.6:419"
    I did some google searching and it seems legit but have been unable to find addy css documentation. I am thinking it is because I used bootstrap. Has anyone else run into this?
    Was this a problem for you?
    thx
    D

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    In the css file you linked to you have this rule:

    Code:
     localhost/media="all" .btn:hover, .btn:focus {
    color: #000;
    text-decoration: none;
    background-position: 0 -10px;
    What is that supposed to be? It's not CSS.

  3. #3
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That is why/what i am asking :-)
    It doesn't seem to be affecting anything. A google search brought up three results. (four now including this thread. That was fast)
    https://www.google.com/#q=localhost%...ll%22&safe=off
    thought it might be related to boostrap. But didn't find it in the code. So was trying to find out more about it.
    D

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,112
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    How did it get into your style sheet in the first place?
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  5. #5
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I was not the only person working on this project. & it has been so long since it started I honestly don't remember.
    I learned a lot. Also in respect as to what NOT to do in future coding.
    The bit above doesn't' seem to have any negative effect. but wanted to investigate it a bit more.

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,112
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    The bit above doesn't' seem to have any negative effect.
    Don't ignore what the validator is telling you.

    Ruleset ignored due to bad selector.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  7. #7
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    sighhh

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,112
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    sighhh
    Are you signing at my comment or at the validator? You may find that you hover and focus styles don't work because of that error in the style sheet.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  9. #9
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    No, sorry Ralph, it was very general sighhh directed at all the errors ever.
    so will of course have to check it out. still wonder what that localhost/media thing is tough.

  10. #10
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi.

    localhost/media="all" .btn:hover,
    You are asking the browser to find an element called :" localhost/media="all" .btn" and there is none (even if the code was valid).

    It's an error that someone copied and pasted by mistake from somewhere (possibly from firebug or similar) or it is a file that got corrupted along the way.

    Either way its code that should be removed as it has no place there and will corrupt the rule that follows and possibly the rest of the stylesheet if you are unlucky.

    It looks as though its part of a media query or a style tag that got copied incorrectly from somewhere else. Just remove it and address any consequences in the normal way.

  11. #11
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I get that. sorry if i didn't make myself clear.
    I was more wondring about
    Code:
     localhost/media="all"
    am familiar w/localhost from using xampp, I was looking at this code and to my knowledge you can't use css to access the "localhost" or itmes outside of the html/php page is styling.
    That is where my confusion comes in.
    but yes will have to check out the buttons & hover styles.
    thx

  12. #12
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    I get that. sorry if i didn't make myself clear.
    I was more wondring about
    Code:
     localhost/media="all"
    am familiar w/localhost from using xampp, I was looking at this code and to my knowledge you can't use css to access the "localhost" or itmes outside of the html/php page is styling.
    That is where my confusion comes in.
    but yes will have to check out the buttons & hover styles.
    thx
    It just looks to me like a piece of corrupted code where you have joined a local url with a media query or maybe a corrupted import statement that has just been replicated and copied. Or someone just copied and pasted badly. Or badly constructed php that is outputting a broken segment. Either way it's not css and shouldn't be there.

    If you keep a revision history you could step back and see from which point the code has been added and see where it all started to go wrong.

  13. #13
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,271
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    Just yesterday I somehow managed, with a total of 2 keystrokes, to paste about a fourth of my LESS file again somewhere in the middle of the file. I didn't notice it until the LESS compiler whined very unhelpfully about a bracket mismatch (without the benefit of a line number, something I could have easily figured out from plain CSS since all rules before the error would have shown up fine). The line in question looks like two mis-pastes though.

    Finding an error in other places via google simply means it's a popular error (for example if it *had* somehow gotten into one version of Bootstrap, even if later removed), but not that it's an ok error.

    In fact I google errors regularly because the spider is dumb and will index anything. It often helps me find what other people are doing about it.

  14. #14
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by Stomme poes View Post
    Just yesterday I somehow managed, with a total of 2 keystrokes, to paste about a fourth of my LESS file again somewhere in the middle of the file.
    I do that sometimes because I can't touch type and I look at the keyboard and not realise that there is junk coming out on screen and I have opened four new windows and deleted 6 files all in one sentence

  15. #15
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thank you all.
    It has most def been a learning experience, both about what to do and very much about what NOT to do. & while I didn't think w/relatively few people coding a version control would be needed, in hindsight it would not have hurt either.

    That and let's give up bootstrap and work on percentages to build own responsive site. Bootstrap has lot of neat feature but overriding a lot more elements was really annoying and the class names in bootstrap 3 are even longer and more inane.
    I might go trough just a few example & tuts to pick it up a bit.

  16. #16
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,271
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by paul
    I look at the keyboard and not realise that there is junk coming out on screen and I have opened four new windows and deleted 6 files all in one sentence
    vim is wonderful. the power to destroy whole worlds with a single *gack*

  17. #17
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Pop-up messages from the system tray, which you have to click away, are wonderful too. Typing a lot in the used program of that moment (like a forum-message in the browser) without looking on the screen is giving ... nothing.

    @Stomme Poes:
    VIM (1a) or VIM (1b) or VIM (2) of VIM (3)?

  18. #18
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,271
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    1b and 3 of course : )


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •