- This topic is empty.
-
AuthorPosts
-
June 16, 2015 at 2:21 pm #203867harsh1994Participant
CSS Design Issue:
I want to divide li tag into proper Columns. Design for the Web Page is given below
http://imagizer.imageshack.us/a/img673/8615/l3xBEC.jpg
This is the Demo Code I have tried to written
http://codepen.io/anon/pen/EjWqpM
As seen in the above figure I want to display 3 li tag per each column under each title. I also want on main container div to have only horizontally scrolling not vertically
If you cannot understand what I am trying to say please ask me at [email protected]
June 16, 2015 at 3:15 pm #203879Paulie_DMemberSomething like
column-count
?June 16, 2015 at 6:56 pm #203886harsh1994ParticipantI know it is possible using column-count but don’t know how to use it.
The Demo Code I tried to wrote is :
#main > li > ul{ column-count:auto; -moz-column-count:auto; -webkit-column-count:auto; } #main > li > ul li{ column-width:300px; -moz-column-width:300px; -webkit-column-width:300px; }
But not working properly so, can you show me how to make proper use of column-count
June 17, 2015 at 2:19 am #203892Paulie_DMemberWhy are you using
auto
…you wanted 3 columns…just use3
like I did?June 17, 2015 at 2:41 am #203893harsh1994ParticipantI don’t want exactly the 3 column. I want 3 li tag per each column ( As seen in figure “List 4 El” starts from new Column ). As the li tag increases column increases.
Please see this Img :
http://imagizer.imageshack.us/a/img673/8615/l3xBEC.jpgli tag displayed under each title are 3 per each column.
Also I want horizontal scrolling not vertical so I have given the main container div a fixed height with css white-space:nowrap property.
Hope you understand what I am trying to say…!!!
June 17, 2015 at 3:21 am #203897Paulie_DMemberOhhh…that’s gonna be funkyy…
Not sure you can do that without some magic numbers
June 17, 2015 at 3:41 am #203898Paulie_DMemberHmmm…
flexbox
might be an optionJune 17, 2015 at 4:11 am #203899harsh1994ParticipantYeah I think you are right Flexbox is the only solution. But please post if you find any better solution than Flexbox.
June 18, 2015 at 10:10 pm #203987aiden1988ParticipantHi Paulie, thanks for the explanation, I will try to follow the code and will check the output.
July 3, 2015 at 7:58 pm #204558harsh1994ParticipantI have developed something similiar to the design I have posted in the question so I would like to share with you all.
Please update it to make the design more proper
-
AuthorPosts
- The forum ‘Design’ is closed to new topics and replies.