SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard mPeror's Avatar
    Join Date
    Mar 2005
    Location
    Saudi Arabia
    Posts
    1,725
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validation problems

    I'm trying to validate this file : http://www.mashhoor.ws/app/startup/index.php

    I'm having an annoying problem while trying to Validate my site. The first error is causing the other errors , and i have no idea what it is. I couldn't find any tags that aren't closed.

    I also get another error when i try to use the attribute "width" with the <td> tag in the table , and it doesn't get affected when i replace it with a CSS class. How am i supposed to strech the <td> then?


    any help is much appreciated

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    You need to surround the select options in <p></p> tags then get rid of the < br /> below it:

    Code:
    <p>
      <select style="margin-left : 10px"  name="browser">
      <option value="iexplore.exe">Internet Explorer</option>
      <option value="firefox.exe">FireFox</option>
      </select>
      </p>

  3. #3
    SitePoint Wizard mPeror's Avatar
    Join Date
    Mar 2005
    Location
    Saudi Arabia
    Posts
    1,725
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks ! it's valid now. But why do i have to surround it in <p> tags? and why putting a break line after the select statement shows an error??


    Also if anyone has any idea on how to change the <td> width in a valid way ; please let me know.

  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The FORM element can only have block-level children. P is block-level, SELECT and BR are inline-level.

    You can change the with of table cells with CSS.
    Code:
    td.somecell { width:10em; }
    Simon Pieters


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
  •