Results 1 to 4 of 4

Thread: Placing divs inside a form

  1. #1
    Join Date
    Aug 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Placing divs inside a form

    I need to put some social networking buttons inside of a from. Since these buttons are not form elements how should I go about positioning them? I would really like to use a solution that doesn't involve absolute positioning if possible.


    HTML:
    Code:
    <div id="leave_comment">
    <h2>Leave a Comment:</h2>
    <form action="#">
    <fieldset>
    <legend></legend>
    <input type="text" value="Your Name" id="name" class="input"/>
    <label for="name">Name Required</label><br/>
    <input type="text" value="Your Email" id="email" class="input"/>
    <label for="email">E-mail Required</label><br/><input type="text" value="Your Email" id="website" class="input"/>
    <label for="website">Website</label>
    <textarea rows="15" cols="71">Your Message Goes Here.</textarea>
    <input type="submit" value="Submit Comment" class="button" />
    </fieldset>
    </form>
    </div>

  2. #2
    Join Date
    Jun 2008
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Hi,

    Have you thought about using a table to position the features?

    Regards,
    Jrheeder

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Tables = no.

    Code:
    <div id="leave_comment">
    <h2>Leave a Comment:</h2>
    <form action="#">
    <fieldset>
    <legend></legend>
    <div style="float:left;">
    <input type="text" value="Your Name" id="name" class="input"/>
    <label for="name">Name Required</label><br/>
    <input type="text" value="Your Email" id="email" class="input"/>
    <label for="email">E-mail Required</label><br/><input type="text" value="Your Email" id="website" class="input"/>
    <label for="website">Website</label>
    </div>
    <div style="float:left; margin-left:10px; height:70px;">
    SOCIAL BUTTONS CODE
    </div>
    <textarea rows="15" cols="71">Your Message Goes Here.</textarea><br />
    <input type="submit" value="Submit Comment" class="button" />
    </fieldset>
    </form>
    </div>
    Corrections to my coding/thoughts welcome.

  4. #4
    Join Date
    Jun 2008
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by bluewalrus View Post
    Tables = no.
    I know I rather use div selection as you have, just wondered or he considered using a table setup

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
  •