CSS Validation Error

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default CSS Validation Error

    I am relatively new to CSS. I recently worked through a tutorial on it that
    used 1em for the body font-size, and then based others off of it (h1--> 1.3em,
    p--->.8em, etc.).

    I tried this in my own page and it looks good, but won't validate. I get:
    Line: 6 Context : p
    Invalid number : font-size Too many values or values are not recognized : 0.8
    em

    Line: 34 Context : ul, ol
    Invalid number : font-size Too many values or values are not recognized : 0.8
    em

    Any suggestions?

    Thanks!
    Brady

    bradyg23 Guest

  2. Similar Questions and Discussions

    1. validation error
      Does anyone have any idea what this message means. I get the message when I try to send a message. Attribute validation error for tag CFMAIL. The...
    2. Attribute validation error for tag CFQUERYPARAM.
      I have a page that lets the user upload an image to change the logo of the website. It works fine on ColdFusion MX7 but on earlier versions I get...
    3. cfform validation and pop up error
      hi, i have two javascript functions. One is for email validation and the other to initiate a pop up window with a confirmation. <script...
    4. Form validation error!
      Hi , I have a form with a text field 'myTxt' and this is an Optional field. However I have NumberValidator defined for this text field so that...
    5. error validation question
      What is the cleanest and easiest way to produce on screen (no-popup) error validations for forms? Sincerely, %Julia%
  3. #2

    Default Re: CSS Validation Error

    Show us those lines please.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "bradyg23" <webforumsuser@macromedia.com> wrote in message
    news:efb3oa$6p2$1@forums.macromedia.com...
    >I am relatively new to CSS. I recently worked through a tutorial on it that
    > used 1em for the body font-size, and then based others off of it (h1-->
    > 1.3em,
    > p--->.8em, etc.).
    >
    > I tried this in my own page and it looks good, but won't validate. I get:
    > Line: 6 Context : p
    > Invalid number : font-size Too many values or values are not recognized :
    > 0.8
    > em
    >
    > Line: 34 Context : ul, ol
    > Invalid number : font-size Too many values or values are not recognized :
    > 0.8
    > em
    >
    > Any suggestions?
    >
    > Thanks!
    > Brady
    >

    Murray *ACE* Guest

  4. #3

    Default Re: CSS Validation Error

    Thanks for your help Murray. Here are the referenced lines...

    p { font-size: .8 em; }

    ul, ol { font-size: .8 em;
    }


    The complete CSS file is below:
    body {
    font-size:0.8em;
    }

    p {
    font-size: .8 em;
    padding-right:20px;
    padding-left:10px;
    padding-top:1px;
    padding-bottom:1px;
    text-align: justify;
    font-family:Arial, Helvetica, sans-serif;
    line-height:1.4em;
    }

    strong { font-family:Arial, Helvetica, sans-serif;
    }

    h1 {
    color: #BAA54D;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
    font-size: 1.3em;
    padding-bottom: 0;
    padding-left: 5px;
    text-align: right;
    padding-right: 20px;
    }

    ul, ol {
    font-family:Arial, Helvetica, sans-serif;
    padding-left: 20px;
    padding-right: 20px;
    font-size: .8 em;
    text-align:justify;
    }

    li {
    padding-bottom: 8px;
    }

    #navbars {
    margin-bottom: 20px;
    }

    #callout {
    background-color: #232E66;
    color: #FFFFFF;
    padding-top: 2px;
    padding-bottom: 2px;
    border: solid #BAA54D 2px;
    font-weight: bold;
    }

    #contactus p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .9em;
    color: #BAA54D;
    text-align: right;
    }

    #labels {
    text-align: center;
    font-weight:bold;
    font-family:Arial, Helvetica, sans-serif;
    }


    #disclaimer{
    font-size: .9em;
    background-color: #BAA54D;
    width: 758px;
    text-align: justify;
    margin-top: 0px;
    padding: 20px;
    }

    #disclaimer img {
    padding-right: 20px;
    }

    #disclaimer p {
    padding: 0;
    }




    Text

    bradyg23 Guest

  5. #4

    Default Re: CSS Validation Error

    There is NO space between the value and the metric, e.g.,

    font-size:0.8em;

    not -

    font-size:0.8 em;

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "bradyg23" <webforumsuser@macromedia.com> wrote in message
    news:efbvjf$dcg$1@forums.macromedia.com...
    > Thanks for your help Murray. Here are the referenced lines...
    >
    > p { font-size: .8 em; }
    >
    > ul, ol { font-size: .8 em;
    > }
    >
    >
    > The complete CSS file is below:
    > body {
    > font-size:0.8em;
    > }
    >
    > p {
    > font-size: .8 em;
    > padding-right:20px;
    > padding-left:10px;
    > padding-top:1px;
    > padding-bottom:1px;
    > text-align: justify;
    > font-family:Arial, Helvetica, sans-serif;
    > line-height:1.4em;
    > }
    >
    > strong { font-family:Arial, Helvetica, sans-serif;
    > }
    >
    > h1 {
    > color: #BAA54D;
    > font-family: Arial, Helvetica, sans-serif;
    > letter-spacing: 2px;
    > font-size: 1.3em;
    > padding-bottom: 0;
    > padding-left: 5px;
    > text-align: right;
    > padding-right: 20px;
    > }
    >
    > ul, ol {
    > font-family:Arial, Helvetica, sans-serif;
    > padding-left: 20px;
    > padding-right: 20px;
    > font-size: .8 em;
    > text-align:justify;
    > }
    >
    > li {
    > padding-bottom: 8px;
    > }
    >
    > #navbars {
    > margin-bottom: 20px;
    > }
    >
    > #callout {
    > background-color: #232E66;
    > color: #FFFFFF;
    > padding-top: 2px;
    > padding-bottom: 2px;
    > border: solid #BAA54D 2px;
    > font-weight: bold;
    > }
    >
    > #contactus p {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: .9em;
    > color: #BAA54D;
    > text-align: right;
    > }
    >
    > #labels {
    > text-align: center;
    > font-weight:bold;
    > font-family:Arial, Helvetica, sans-serif;
    > }
    >
    >
    > #disclaimer{
    > font-size: .9em;
    > background-color: #BAA54D;
    > width: 758px;
    > text-align: justify;
    > margin-top: 0px;
    > padding: 20px;
    > }
    >
    > #disclaimer img {
    > padding-right: 20px;
    > }
    >
    > #disclaimer p {
    > padding: 0;
    > }
    >
    >
    >
    >
    > Text
    >

    Murray *ACE* Guest

  6. #5

    Default Re: CSS Validation Error

    LOL... Reminds me of when I first learned html... The easiest little problem could cause you to bang your head for hours...

    That got it! Thanks for your help Murray.

    Brady
    bradyg24 Guest

  7. #6

    Default Re: CSS Validation Error

    You're welcome!

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "bradyg24" <webforumsuser@macromedia.com> wrote in message
    news:efdhks$crs$1@forums.macromedia.com...
    > LOL... Reminds me of when I first learned html... The easiest little
    > problem could cause you to bang your head for hours...
    >
    > That got it! Thanks for your help Murray.
    >
    > Brady

    Murray *ACE* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139