dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Width not working as expected

  1. #1
    Join Date
    May 2006
    Posts
    75

    Width not working as expected

    I am trying to not use a table to provide the desired spacing. What I want is the input fields on my form (http://www.usatek.net/~snoopy/test.shtml) to be aligned so that their left edges are at the same distance from the left. I thought I could do this by specifying the WIDTH on the descriptive text, but this doesn't seem to be working.

    Also, I ran both the CSS and HTML through validator, CSS checked perfectly, but the HTML came back as tentative. I don't understand what it is that the validator wants me to do to clean up the HTML:

    The document located at <http://www.usatek.net/~snoopy/test.shtml> was checked and found to be tentatively valid HTML 4.01 Transitional. This means that with the use of some fallback or override mechanism, we successfully performed a formal validation using an SGML or XML Parser. In other words, the document would validate as HTML 4.01 Transitional if you changed the markup to match the changes we have performed automatically, but it will not be valid until you make these changes.

    Thanks,

    Mike

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    Take a look at this article: http://alistapart.com/articles/practicalcss/

    About 2/3 way down, CSS styling of forms is discussed. I use this same method in working with mine.

    KDLA

  3. #3
    Join Date
    May 2006
    Posts
    75
    Thanks, that was exactly what I needed.

    Now, any idea what the HTML problem is?

  4. #4
    Join Date
    Aug 2006
    Posts
    8

    Validate the HTML

    Try using

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    in your <head>

  5. #5
    Join Date
    May 2006
    Posts
    75
    Thanks, didn't realize that had become a required tag.

  6. #6
    Join Date
    Aug 2006
    Location
    Lahore, Pakistan
    Posts
    23
    Be Careful next time

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles