+ Reply to Thread
Results 1 to 2 of 2

Thread: Debugging tip for CSS

  1. #1
    justken is offline x10Hosting Member justken is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    8

    Debugging tip for CSS

    Hi all,

    This is my first post; hope it's useful.

    I discovered the other day that one source of frustration with CSS files is that they aren't validated very well. I had a problem that slipped through Adobe CS4's validation, which resulted in changes to CSS targets having no effect. Very frustrating. It turned out that one of my targets had an opening brace ('{') but no closing brace. Everything in the .css file after the missing closing brace was ignored, which is why the changes I was trying to make had no effect, and why new CSS targets that I added were ignored (in Adobe, new targets are added at the end of the file.) Once I discovered this problem and added the closing brace, everything worked fine.

    Hope this little tidbit helps. The proactive solution is to add some sort of validation to your CSS files, whether it be loading them into a smart editor that can check for balanced delimiters, or just eyeballing the code.

    JustKen

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Debugging tip for CSS

    It is in fact a very useful tip! I'd like to add that you can also pass your files to http://jigsaw.w3.org/css-validator/ that will validate your CSS.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers