Please help me center this block.

Discussion in 'CSS' started by botakilmu, Jan 29, 2014.

  1. #1
    Hi all web sifu's and master, I'm really new in css&html. Can you help me to center this block?I'm really don't know how to center this two block. The exact adress is here: http://gadgetcroc.com/homestay/. Any comment and help really appreciate,thank you.
    [​IMG]
     
    Solved! View solution.
    botakilmu, Jan 29, 2014 IP
  2. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #2
    You need to change this:
    
    <div class="room span4">
    
    Code (markup):
    to this
    
    <div class="room span6">
    
    Code (markup):
    You will need to do that for both of those elements.
     
    HuggyStudios, Jan 29, 2014 IP
  3. botakilmu

    botakilmu Member

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #3
    @HuggyStudios Wow, thank you very much sir,I'm really appreciate it. Now my image is centered, and how to center the form?
     
    botakilmu, Jan 29, 2014 IP
  4. #4
    It won't fit evenly so you need to set the last column to span4 instead of span2.

    
    <div class="span4">
                    <a href="#" class="btn btn-pimary btn-submit"><font><font>In advance</font></font></a>
                    </div>
    
    Code (markup):
     
    HuggyStudios, Jan 29, 2014 IP
  5. botakilmu

    botakilmu Member

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #5
    @HuggyStudios Thank you very much sir,,really2 thank you..
     
    botakilmu, Jan 29, 2014 IP