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?
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)
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
mayclem72
Member
Posted 1 year ago #
why do i keep coming up with ideas that are just beyond my ability?! damn frustrating lol
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
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
you are welcome ;-)
keep checking the w3school.com tutorials (or some tuts of your choice) anytime you come across something new or challenging.
mayclem72
Member
Posted 1 year ago #
i will do, and again, thanks for your help :D