left margin in Yoko theme

  • Unknown's avatar

    (first: sorry for my “google-english”! Original version in French below.)

    I would like to make a small change to the layout of my blog without changing theme (because I love Yoko!).

    On the home page, there is a right margin (widgets) and left (date and number of comments). This left margin disappears when you read the entire article.

    Is it possible to keep this margin in the article page? (perhaps with CSS?) I like this space some centers the text on the page …

    Thank you!

    Original:

    Je voudrais apporter une petite modification à la mise en page de mon blog sans pour autant changer de thème.

    Sur la page d’accueil, il y a une marge droite (widgets) et une à gauche (date et nombre de commentaires). Cette marge de gauche disparaît lorsqu’on lit l’article en entier.

    Est-il possible de conserver cette marge dans la page article? (peut-être avec la CSS?) J’aime bien cet espace qui centre un peu le texte sur la page…

    Merci!

    The blog I need help with is: (visible only to logged in users)

  • Please try the following CSS:

    .single-post #main {
    width: 50%;
    margin-left: 250px;
    }

    Adjust the width and left margin as you wish.

    However we can’t fill the left margin with any text using CSS, so it has to be left empty.

  • Unknown's avatar

    YES, IT WORKS!
    Thank you very, very much, chaitanyamsv!

    Dom’-)

  • Unknown's avatar

    ooops…
    The problem is that the margin is also on the mobile theme, even disabling the CSS option
    :-(

  • Let’s restrict this change to only larger screens by using media query as following:

    @media screen and (min-width: 1020px) {
    .single-post #main {
    width: 50%;
    margin-left: 250px;
    }
    }
  • Unknown's avatar

    Thank’s a lot!
    :-))))

  • The topic ‘left margin in Yoko theme’ is closed to new replies.