• Hi guys

    What I’m trying to do is fairly simple. I want to create a container a certain size to insert some elements into. The container needs to be:

    – a particular width and height
    – centered
    – have it’s contents centered

    I’m guessing I need some CSS but I’m not too good with it. Where do I put the code in WordPress?

    Thanks so much for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Would really need to know what template you are using and a link to your site would be useful.

    Hi, You could use this construct in the text tab of the editor:

    <div id="my_div">
    <h3 class="centered">heading here</p>
    <p class="centered">content here</p>
    </div>

    And this in your custom css:

    #my_div {width:400px; height 250px; margin:auto}
    #my_div .p, #my_div h3 {text-align:center}

    Please note there’s a lot more to it. I recommend starting with w3schools.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change container size’ is closed to new replies.