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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    310
    Thanks
    86
    Thanked 3 Times in 3 Posts

    Display boxes inline

    Hi All,

    Sorry to be a pain, but have another question as well as i'm trying to learn css. On this link I have 3 div elements:

    http://www.sloughtownfc.net/new_design/example2.php

    And I want div elements x and y to sit in the container div alongside each other. How do I do this?

    Thanks

    Chris

  • #2
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post
    add float:left to each CSS rule, that should fix it.
    xHTML Coding | Cheap Web Hosting | SEO Blog
    Life rocks and we roll.

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    310
    Thanks
    86
    Thanked 3 Times in 3 Posts
    Thanks, but that does not seem to have fixed it (see url). Any other ideas?

    Chris

  • #4
    Senior Coder
    Join Date
    Apr 2007
    Location
    Quakertown PA USA
    Posts
    1,028
    Thanks
    1
    Thanked 125 Times in 123 Posts
    The 'container' div does not need to be floated.

    Either increase the width of 'container' or decrease the widths of 'x' or 'y' or set margins, paddings and borders for 'x' & 'y' to 0
    John

  • Users who have thanked PappaJohn for this post:

    stfc_boy (10-20-2007)


  •  

    Posting Permissions

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