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
    Regular Coder
    Join Date
    Jul 2011
    Posts
    183
    Thanks
    68
    Thanked 2 Times in 2 Posts

    Best way to split <ul> in 6 columns with CSS

    I have an <ul> list with 248 elements, and I would like to split it into six colums (42 elements, 42, 41, 41, 41, 41). I already divided it into divs (#one, #two, #three, #four, #five, #six) in HTML.

    What is the best way to divide it into 6 columns?

    Thank you.

    # # # Edit

    I used width: 16.666%; float: left; and it is working.

    Thank you.
    Last edited by joliett89; 11-23-2012 at 12:31 PM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,797
    Thanks
    6
    Thanked 1,023 Times in 996 Posts
    If you have solved your issue and are even editing your first post to let us know then you can also set it to “resolved” in the advanced edit mode by choosing “resolved” from the select box left of the thread title.


  •  

    Posting Permissions

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