[resolved] Float left the main page (8 posts)

  1. bouris
    Posted 3 years ago #

    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 (http://loulakoteas.com/wp/) are centered. I want them left aligned as the blog page.
    Thank you for your help.

  2. Andrei Olsen
    Posted 3 years ago #

    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; }
  3. bouris
    Posted 3 years ago #

    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.

  4. bouris
    Posted 3 years ago #

    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?

  5. Andrei Olsen
    Posted 3 years ago #

    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.

  6. bouris
    Posted 3 years ago #

    Andrei thanks so much

    that worked just fine.

    Thank you again

  7. bouris
    Posted 3 years ago #

    case closed

  8. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    @Andrei Also a Thank You from me for your contributions to the WordPress community :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.