Grow your CSS skills. Land your dream job.

[WordPress] Is this caused by float:left?

  • # June 27, 2013 at 5:06 pm

    Hi everyone

    I have edited a blog for a friend of mine to kind of look like individual post snippets, however on one or two of the pages the boxes aren’t sitting next to each other as they are in other pages. Could anyone enlighten me as to why this is happening? I’ve tried everything!

    Here is the link: http://shaunjeffersphotography.com/blog/page/4/

    Thanks

    # June 27, 2013 at 5:25 pm

    Instead of using floats, you can use `display: inline-block;` and then you won’t have to worry about clearing anything. You’ll need to look into some of the white space issues that come along with inline-block: http://www.ternstyle.us/blog/float-vs-inline-block

    # June 27, 2013 at 5:35 pm

    Okay, thanks @TheDoc :)

    I will use this tomorrow and give your link a read :) thanks for your help and reply.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".