WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bouris
    Member
    Posted 1 year ago #

    Hi,
    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;
    table-layout:fixed;
    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.
    Antonios

  2. Andrei Olsen
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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.
    Thanks

  4. bouris
    Member
    Posted 1 year 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?
    Thanks

  5. Andrei Olsen
    Member
    Posted 1 year 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"?

    EDIT:
    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
    Member
    Posted 1 year ago #

    Andrei thanks so much

    that worked just fine.

    Thank you again

  7. bouris
    Member
    Posted 1 year ago #

    case closed

  8. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year 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

Tags

No tags yet.