ThemeShaper Forums » Thematic

[closed]

margin query

(6 posts)
  • Started 4 years ago by mopani
  • Latest reply from Elizabethl
  • This topic is resolved

Tags:

  1. mopani
    Member

    Looking at my thematic theme, which is slowly taking shape, there seems to be a lot of white space at the left side/margin. I'm using a 2c-r fixed layout. Which bit of which stylesheet do I change to shift things over to the left?

    Posted 4 years ago #
  2. Hi,

    just add the following to your child theme's style.css:

    .main-aside {
        width:300px;
    }

    Chris
    .. and increase the width of the sidebar.

    Or add:

    #content {
    width:540px;
    }

    .. and increase the width of the content.

    Chris

    Posted 4 years ago #
  3. mopani
    Member

    Thank you very much for taking time to respond. This has been most helpful.

    James

    Posted 4 years ago #
  4. Hi Chris,

    Thanks for this info. I am pretty new in CSS. I deleted a sidebar from my Thematic wordpress blog and I wanted to widen my pages and make margins look even on both sides of the screen. Would you be kind enough to guide me through? I tried the
    .main-aside {
    width:300px;
    } on my child theme, however it did not work. Thanks in advance.

    Posted 3 years ago #
  5. @Elizabethl

    do you mean, you've removed sidebar and do not have/wish to have a sidebar?
    if so, you need to target
    #container and #content

    set the #container and #content to the width of your liking and and then using margin:0 auto;

    e.g

    #container {
    width:600px;
    margin:0 auto;
    }
    #content {
    width:600px;
    }

    you dont not have to specify the width of #content as it will fill up available space in #container, but that said, if your css already has a value width for #content, change or delete it. jeez, i ramble.

    try the code above and see how you get on. paste in style.css

    hope this helps.

    Posted 3 years ago #
  6. @Jonny Janiero, you are a genius!!!
    It worked.
    Thank you very much for your help! Now, I just have to reorganise my pics and get the site up and running. Thanks a lot! :)

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.