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 6 of 6

Thread: CSS problem

  1. #1
    Senior Member GeZe's Avatar
    Join Date
    Dec 2003
    Posts
    330
    Member #
    4381
    The site I'm building valadates XHTML 1.1 and CSS except for a weird problem. And I want my site to validate.

    Here is the offending CSS:
    Code:
    #side_nav ul {
        margin: 0px;
        -moz-padding-start: 0px;
    }
    Here is the error I get from the valadation page:

    Line: 128 Context : #side_nav ul
    Parse Error - -moz-padding-start: 0px;

    Line: 129 Context : #side_nav ul
    Parse error - Unrecognized : }


    Thanks in advance.
    -GeZe

  2.  

  3. #2
    Senior Member Stylise's Avatar
    Join Date
    Jul 2005
    Location
    Mount Martha, Australia
    Posts
    229
    Member #
    10679
    -moz isn't part of CSS, but it will be introduced in CSS 3. So for now, if you want to kept it valid, keep it out.

  4. #3
    Senior Member GeZe's Avatar
    Join Date
    Dec 2003
    Posts
    330
    Member #
    4381
    @#*$%(#!!!!!

    The problem is that without the -moz thing it completely screws up my layout in firefox.

    Oh well, the layout is more important then valadation.
    -GeZe

  5. #4
    Senior Member
    Join Date
    Jul 2005
    Location
    S.Wales, UK
    Posts
    250
    Member #
    10742
    In what way? There's usually a valid work around.
    Paul Creedy
    Visit my community site at: www.rhonddacynontaff.com
    My hosting: www.rcthosting.com
    My Content Management product: www.dynamiccontenteditor.com

  6. #5
    Senior Member Stylise's Avatar
    Join Date
    Jul 2005
    Location
    Mount Martha, Australia
    Posts
    229
    Member #
    10679
    Yeah, what does -moz-padding-start do? ie. why do you need it?

  7. #6
    Senior Member GeZe's Avatar
    Join Date
    Dec 2003
    Posts
    330
    Member #
    4381
    Well in the defualt HTML rendereing of Firefox, -moz-padding-start is set to forty pixals. It thus adds forty pixals of padding to the left side of a list. I didn't want the forty pixals so I put it to zero.

    ===============

    I was about to submit this post when I thought, -moz-padding-start , thus why don't I put padding to zero.

    In short it worked and I have no problems anymore. Thanks guys.
    -GeZe


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 02:43 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com