Support » Theme: Spun » Float left the main page

  • Resolved bouris


    I am trying to float left the main page with no luck.
    The hentry looks like
    .hentry {
    background: #fff;
    float: left;
    padding: 0;
    position: relative;
    width: 180px;
    height: 180px;

    but the pages ( are centered. I want them left aligned as the blog page.
    Thank you for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do you want all of your pages aligned left or just the home page?

    If all of them, remove width: 800 on line 605 in your style.css and you might want to remove or adjust the padding on line 858.

    If just on the home page, add this to style.css (let’s say somewhere in the homepage section):

    .home #primary { width: 100%; }
    body.home .hentry { padding: 0; }

    Thanks Andrei,
    this moves the whole page.
    I am talking for the main part only. Not the header and the footer. I am trying to align the part that is in the middle between the header and the footer.

    I managed to align it left by adding the float: left
    /* =Homepage
    ———————————————– */

    #primary {
    padding: 0;
    width: 100%;
    float: left;

    But again, the content of the homepage does not start from the very left. Seems like there is a padding but I don’t know where this is.
    Any help?

    It should only align the content, starting with the quote image. You did you have something else in mind? In which case, could you be more specific regarding “the main part only”?

    There is 50px left/right and 70px top/bottom padding in
    .single .hentry, .error404 .hentry, .page .hentry, .search-no-results .no-results
    (line 860 in style.css)

    Due to specificity (.page .hentry) it overrides any earlier values.

    Andrei thanks so much

    that worked just fine.

    Thank you again

    case closed

    Moderator Andrew Nevins


    Front-end developer

    @andrei Also a Thank You from me for your contributions to the WordPress community 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Float left the main page’ is closed to new replies.