Support » Themes and Templates » TwentyTen child theme move content up page

  • Resolved Matulini Nicky

    (@matulini-nicky)


    I want the 1st line of content to start higher up the page. What do I need to edit, style.css or function.php and how?

Viewing 5 replies - 1 through 5 (of 5 total)
  • First line of what content? Each post in a category list? Single posts? Single pages? Archive lists?

    Can you post a URL we can look at, describing what you want?

    Cheers

    PAE

    Actually, assuming you’re talking about the #main div then this is what you need to alter:

    #main {
        clear: both;
        overflow: hidden;
        padding: 40px 0 0;
    }

    What you need is:

    #main {
        padding: nnpx 0 0;
    }

    Where ‘nn’ is the padding you want.

    It’s really easy to find this sort of thing and test any changes if you use Firebug. Honest.

    Cheers

    PAE

    Sorry peredur, that did not work. Maybe I am putting the code in the wrong place. I assume I am changing the style.css. Where do I find #main div?

    I want my text within the page or post to start nearer the top of the page. At the moment there is a big white gap underneath the menu bar.

    Just worked it out – thanks, you’ve been a great help – Nicky

    Good stuff Nicky.

    If you use Firebug, it will show you the CSS that needs to be changed and it will also tell you exactly where the existing rule is located (what file and what line number). From that you can work out where to put your own style rule so that it will overwrite the existing one (usually by putting it in your child theme’s style.css file, but some themes put style rules in the HTML header which makes life more difficult).

    You can also test your changes in Firebug to make sure they do what you want them to do before actually committing yourself to making them.

    Cheers

    PAE

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TwentyTen child theme move content up page’ is closed to new replies.