WordPress.org

Ready to get started?Download WordPress

Forums

Hero
[resolved] hero theme boxes display (6 posts)

  1. montecomis
    Member
    Posted 7 months ago #

    Hi there!
    Can anybody help me on displaying horizontally more than the already 3 homepage boxes? I can handle to add 3 more changing the code from front-page.php and options.php pages but it keeps showing them in rows of three having each row 2 boxes. I don't want that. I need them in 2 rows of three boxes. You can check it out if you want at http://digitallifeage.com/cms/ifaistos/ to understanf what i mean.
    If someone could help me i would appreciate it!
    Thank anyway.

  2. alchymyth
    The Sweeper & Moderator
    Posted 7 months ago #

    this might work as a quick fix:

    .one_third:nth-child(3n+0) { margin-right: 0%; }

    (might not work in older browsers; in this case try: .one_third { margin-right: 2.6%; } )

    ideally, you would modify the code of the boxes so that the last box in a row would get the CSS class .last

  3. montecomis
    Member
    Posted 7 months ago #

    Thank you very much alchymyth!
    I 'd like to ask you a question: What's the nth-child(3n+0) from the first code you answered me?
    Both of them it works beautiful but i keep the second one, just in case of the older browsers.
    Whenever you have time...
    Thanks again.

  4. alchymyth
    The Sweeper & Moderator
    Posted 7 months ago #

    What's the nth-child(3n+0) from the first code

    http://www.w3schools.com/cssref/sel_nth-child.asp

  5. montecomis
    Member
    Posted 7 months ago #

    Thanks again. I didn't know it.

  6. montecomis
    Member
    Posted 7 months ago #

    Resolved.

Reply

You must log in to post.

About this Theme

About this Topic