Change the alignment of Graphene

  • st2e

    #4518

    Hi!!!

    Can I align the Graphene theme to left?

    I believe I should change the CSS style with “#wrap” but I’m not sure… Do you know the complete code to add or modify?

    Thanks!

    Anonymous

    #28448

    This should do the trick:

    #container {
    float: left;
    }

    st2e

    #28449

    Thanks for your response, and sorry for the late.

    There were already a #container in the graphene theme:

    #container {

    -webkit-box-shadow: 0 0 10px #000;

    box-shadow: 0 0 10px #000;

    }

    So I added the float attribute:

    #container {

    -webkit-box-shadow: 0 0 10px #000;

    box-shadow: 0 0 10px #000;

    float left;

    }

    Result is good, but I would like to let a space between the left border and the theme, do I replace the float attribute by margin left?

    Mod

    Kenneth John Odle

    #28450

    You should do this in a child theme or via Graphene’s custom CSS feature. Do not edit the theme’s files.

    Try this:

    #container {
    float: left;
    margin-left: 20px;
    }
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!