Forums

[resolved] Twenty Ten scrolling - help! (8 posts)

  1. mayclem72
    Member
    Posted 1 year ago #

    Ok, before anyone shouts, i'm not altering Twenty Ten - i have a seperate copy of it ive renamed to make my alterations on

    Problem - is there any way to make the content scroll under the header and menubar? (leaving them fixed at the top of the screen)

    really would love to be able to do this, as my theme has an awesome header/fixed background combination, that i would like to be on-screen at all times, regardless of the amount of content

    anyone got any ideas?

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    try:

    #header { position: fixed; z-index:1000; }

    and maybe
    #main { margin-top: 240px!important; }

    there might be other details to fix later(?)

    (not intensively tested)

  3. mayclem72
    Member
    Posted 1 year ago #

    i think we're on the right track, the content is now going behind the header, but the menu dissapears and the header drops down by the amount in the margin settings

  4. mayclem72
    Member
    Posted 1 year ago #

    why do i keep coming up with ideas that are just beyond my ability?! damn frustrating lol

  5. alchymyth
    The Sweeper
    Posted 1 year ago #

    can you link to your site?

    it is probably only some css tweaking.

    i just checked it with the unmodified twenty ten;
    i don't have any problem with the menu;
    but it may need to add a top:0px; and increase the margin-top on #main

    #header { position: fixed; top:-20px; z-index:1000; }
    #main { margin-top: 340px; }

    http://www.w3schools.com/Css/pr_class_position.asp

  6. mayclem72
    Member
    Posted 1 year ago #

    i cant give you a link as im working on an XAMMP installation on my offline dev pc - but it works!! :D

    just had to tweak the margin settings a bit to suit the header/menu depth i have

    hoping to upload this theme to wordpress.org when ive got it all nailed down, youve certainly earned yourself a credit!!

    many thanks

  7. alchymyth
    The Sweeper
    Posted 1 year ago #

    you are welcome ;-)

    keep checking the w3school.com tutorials (or some tuts of your choice) anytime you come across something new or challenging.

  8. mayclem72
    Member
    Posted 1 year ago #

    i will do, and again, thanks for your help :D

Topic Closed

This topic has been closed to new replies.

About this Topic