+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: Expanding a div height

  1. #11
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by jmurrayhead View Post
    Regardless, I don't like the way you're building your form. So, I'm going to show you this link which demonstrates how I do it...and it works really well: CSS-Based Forms: Modern Solutions | CSS | Smashing Magazine
    Don't mince your words then J!!

    It's so much easier if you just use tables...

  2. #12
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    I disagree I like the approach in the link I provided and I've seen a similar approach in some books, as well. It's a nice way to elegantly create user forms
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #13
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    tables good ... css bad ...

    it would be so much nicer if all browsers played the same ...
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  4. #14
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by jmurrayhead View Post
    I disagree I like the approach in the link I provided and I've seen a similar approach in some books, as well. It's a nice way to elegantly create user forms
    Which example do you use on that page J?

    Whilst I would agree, it seems that as soon as you need to do something slightly different, CSS just doesn't want to play ball...

  5. #15
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Here's a quick example of how I do my forms:
    Code:
    <ul class="input-fields">
        <li>
            <asp:Label ID="Label1" runat="server"
               AssociatedControlID="TextBox1"
               Text="Label 1" />
            <asp:TextBox ID="TextBox1" runat="server" />
        </li>
        <li>
            <asp:Label ID="Label2" runat="server"
               AssociatedControlID="TextBox2"
               Text="Label2" />
            <asp:TextBox ID="TextBox2" runat="server" />
        </li>
        <li>
            <asp:Label ID="Label3" runat="server"
               AssociatedControlID="TextBox3"
               Text="Label3" />
            <asp:TextBox ID="TextBox3" runat="server" />
        </li>
    </ul>
    
    and the CSS:
    Code:
    ul.input-fields
    {
        list-style-position: outside;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    ul.input-fields li
    {
        margin: 0;
    }
    ul.input-fields label, ul.input-fields span
    {
        display: inline-block;
        font-weight: bold;
        width: 10em;
    }
    ul.input-fields input, ul.input-fields select, ul.input-fields textarea
    }
        margin: 2px 0;
    }
    
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  6. #16
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    How would you get it to look like this J?
    Code:
     
                   First Name: textbox
                    Last Name: textbox
                        Title: dropdownlist
                Date of Birth: textbox / textbox / textbox
    

  7. #17
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Something like this:
    Code:
    ul.input-fields
    {
        list-style-position: outside;
        list-style-type: none;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    ul.input-fields li
    {
        margin: 0;
    }
    ul.input-fields label, ul.input-fields span
    {
        display: inline-block;
        font-weight: bold;
        width: 15em;
    }
    ul.input-fields input, ul.input-fields select, ul.input-fields textarea
    }
        margin: 2px 0;
    }
    
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  8. #18
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Would you not need some sort of align left / right in there?

    The label is aligned right and the form elements aligned left.

  9. #19
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    From what you showed me you were looking for, what I have should work. I tested it before posting it.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  10. #20
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Oh. OK. I haven't tested it yet as it'll mean re-writing all my pages...

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Tags for this Thread

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

SEO by vBSEO