Anyone have any idea how to css column from left to right

Discussion in 'HTML & Website Design' started by ketting00, Oct 22, 2014.

  1. #1
    The most practical methods I can find on the web are these:
    http://stackoverflow.com/questions/12332528/how-to-display-list-items-as-columns
    http://davidwalsh.name/css-columns
    But I want it to be arranged like this one:
    
    1     2     3
    4     5     6
    7
    
    Code (markup):
    Note that I know how to make it look like that with:
    .this_class ul li {
    float: left;
    display: inline;
    margin-right: 15px;
    }
    Code (markup):
    But I want column to make it neatly fit into mobile device screen when I add a tab on the right with auto screen adjust without doing much on JavaScript.

    Thank you,
     
    ketting00, Oct 22, 2014 IP
  2. domainmarket.io

    domainmarket.io Well-Known Member

    Messages:
    74
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    100
    #2
    You could change dislay:inline to display:inline-block and that may do the trick.
     
    domainmarket.io, Oct 22, 2014 IP
  3. Ricardo Neves

    Ricardo Neves Greenhorn

    Messages:
    39
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    20
    #3
    Maybe bootstrap can help you?

    getbootstrap.com/examples/grid
     
    Ricardo Neves, Oct 27, 2014 IP
  4. darkvisje

    darkvisje Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #4
    This plus : float:right should do the trick
     
    darkvisje, Oct 27, 2014 IP