CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 10th, 2013, 08:23 AM
lexmoen lexmoen is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 1 lexmoen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 37 sec
Reputation Power: 0
New Member - Cann't scroll the content

I am new with css, and try to make the header static and the content able to scroll (i use chrome, should work in other browsers as well of course)

I have this :

<style>
body{
margin: 0;
font-family: Verdana, sans-serif;
font-size: 0.8em;
}

div#header{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100px;
background-color: #CCC;
z-index: 100;
}




/* IE only */

* html body{
overflow: hidden;
padding: 100px 200px 0 0;
}

* html div#header{
position: absolute;
}



* html div#content{
height: 100%;
overflow: auto;
padding: 10px 20px 0 20px;
}
</style>


the header is perfectly sticked to the top, but the conten isn't allowed to scroll, how do I make that working?

thnx

Reply With Quote
  #2  
Old March 10th, 2013, 02:45 PM
Nanomech's Avatar
Nanomech Nanomech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Location: The Pleiades
Posts: 228 Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 26 m 39 sec
Reputation Power: 7
Send a message via Skype to Nanomech
Good evening Lexmoen,

Give this a try:
Code:
* html div#content{
height: 100%;
overflow: scroll;
padding: 10px 20px 0 20px;
}


It's hard to say with no HTML otherwise I would have put it into a text file and debugged it properly.

Hope it helps though.

Kind regards,

NM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New Member - Cann't scroll the content

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap