Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Hey guys, I am getting a float parse error when validating my CSS document and am pretty perplexed as to why I am getting the error.

    Here is the validation (or lack thereof) page:
    http://jigsaw.w3.org/css-validator/v...ondmovies.com/

    and here is my CSS:
    http://www.bondmovies.com/page.css

    Any help would be greatly appreciated!

    Thanks!
    BondMovies.com - "Nobody Does It Better."

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    it might be the float class you have

    Code:
    .float {
    float : left;
    }
    Since float is a reserved word, it's probably what's causing the problem. Try renaming it ans see.
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    As a side note, you should never name your classes after how they look -- that goes back to tying your structure with your design. Try naming your classes after what they *are*. i.e., a news image needs to be floated right, for example. It's a news image, so you'd use maybe `newsImage', but you wouldn't name the class `floatRight', because that is _how it looks_.

  5. #4
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    No dice on either of those...

    Anyone else have an idea?

    Thanks.
    BondMovies.com - "Nobody Does It Better."

  6. #5
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    There's somethin' else goin'on. Uploading the CSS file alone gives different results. I'm guessing there's another CSS file involved that's changing things somewhere.

  7. #6
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    Well... your problem is with your page.css (page.css is valid) so .. it's probably because of the syndication and amazon css stuff.

    Wouldn't worry about it too much since they're isn't much you can do there.
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  8. #7
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Karinne got me to looking at the actual code on the page instead of in the CSS file...It seems i hadn't attributed a position (right, left, etc.) for an inline 'float' div on the index page:

    <div class="main" style="width:400px;float">

    That was the error. Thanks for your help everyone!
    BondMovies.com - "Nobody Does It Better."

  9. #8
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Aha. Yep, that'll do it :-) I keep forgetting the validator also validates inline styles.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:15 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com