SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2002
    Location
    Scotland, UK
    Posts
    530
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Eeek! Quick bit of HTML help needed.

    http://www.uxxv.com/test/it-gametop.htm

    How do I stop the FORM inserting a line break and messing up my graphic.

    Thanks for any advice

  2. #2
    SitePoint Enthusiast darkfires's Avatar
    Join Date
    Apr 2002
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Eeek! Quick bit of HTML help needed.

    A trick I use is to place the beginning and ending form tags between td/tr/table cells. For example:

    <table>
    <tr><form>
    <td>blah</td>
    </tr></form>
    </table>

    Of course, this won't work in XHTML or anything strict.

    Anyone else have a more 'compliant' method of this?



    Originally posted by Rikki
    http://www.uxxv.com/test/it-gametop.htm

    How do I stop the FORM inserting a line break and messing up my graphic.

    Thanks for any advice

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use this

    <FORM STYLE="display:inline;"> ... </form>

    effectively converting FORM tag from being a BLOCK level tag to an INLINE tag.

  4. #4
    SitePoint Enthusiast darkfires's Avatar
    Join Date
    Apr 2002
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hah! I never thought of using that style in a form tag, lol. Learn something new everyday. Thanks!

    Originally posted by monolitik
    Use this

    <FORM STYLE="display:inline;"> ... </form>

    effectively converting FORM tag from being a BLOCK level tag to an INLINE tag.

  5. #5
    SitePoint Evangelist
    Join Date
    Jan 2002
    Location
    Scotland, UK
    Posts
    530
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much, that worked an absolute treat. Its amazing but Ive never come across that before.

    Thanks again.

  6. #6
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Havenīt seen that one before either... very handy!!

    CSS never stops to amaze me!!
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  7. #7
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is a sweet trick, but I don't think it'll validate cause the inline <form> will contain block level elements.

  8. #8
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isotope235
    That is a sweet trick, but I don't think it'll validate cause the inline <form> will contain block level elements.
    I don't think so, though I have not check it thru an official validation service.
    display property is related to the rendering of the tag only.

  9. #9
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    er, after a little reflection, I think your right mono.

    Apologies for my cranial-rectal inversion.


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
  •