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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    142
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Inline-block and centering?

    How can I get these centered (mainly the 2nd row of images)?

    http://palmcasualpvc.com/

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,274
    Thanks
    28
    Thanked 271 Times in 265 Posts
    Quote Originally Posted by taymag View Post
    How can I get these centered (mainly the 2nd row of images)?
    Use a .home_sections { text-align: center; } rule.

    To target only the second instance, you can change the selector to .home_sections + .home_sections or .home_sections:last-child or .home_sections:nth-child(2).
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    New Coder
    Join Date
    Oct 2013
    Location
    Bangalore, Karnataka
    Posts
    43
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi,
    Its try do this "float:center". when your apply in your needed div position.


  •  

    Posting Permissions

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