View Full Version : set HEADER to stay in place and CONTENT to scroll?
Do I need to use FRAMESET? I would like to keep my header always at the top and everything else underneath to scroll up, can this be done in CSS?
01-23-2012, 06:33 PM
Good morning jarv,
It's not hard to do with positioning, no need for a frameset. Look at this site that explains a lot about positioning (http://www.barelyfitz.com/screencast/html-training/css/positioning/).
Try making these changes to your CSS -
/*clear: both; */
margin: 140px auto 0;
padding: 17px 40px 12px;
thanks but now it's positioned over to the left of the page and I have lost the full width background?!
01-24-2012, 03:00 PM
you also need to add - width:100%; to the #header attributes. ;)
01-24-2012, 07:06 PM
No problem, you're welcome. ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.