Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    93
    Thanks
    3
    Thanked 0 Times in 0 Posts

    css - 3 div on the same line

    Hi,

    i'm having some troubles positioning 3 div of 33% on the asme line (1 on the left, 1 on the right and 1 in the middle of the first two)

    the closest i get is with this code :

    Code:
    <div style="float:left; width:33%;">
    Left
    </div>
    
    <div style="float:left; width:33%;">
    Middle
    </div>
    <div style="float:right; width:33%;">
    Right
    </div>
    Any help?

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Have a look at this example.

    Another one.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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