473,416 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

header,footer,left & right column fixed and body information scrolling to use div

57
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all information to show as displace. please help me.

my coding are as below:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. <style>
  7. body { margin: 0; padding:0; background-color:#99CC00; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; font-weight:normal; line-height:18px; }
  8.  
  9. /* Template */
  10. #wrapper { width:800px; height:auto; margin:0 auto; padding:0;}
  11. #maincontainer { float:left; width:800px; height:auto; margin:0; padding:44px 0;}
  12. #container { float:left; width:800px; height:auto; background-color:#CCFF99; }
  13. /* Header */
  14. #header { float:left; width:800px; height:80px;}
  15. #leftheader { float:left; width:270px; height:80px; margin:2px 0 0 0; padding:3px 0 0 8px; background-color:#FFFFFF; }
  16. #rightheader { float:right; width:500px; height:80px; margin:2px 0 0 0; padding:3px 0 0 8px; background-color:#FFFF99; }
  17. /* Header */
  18. #bodycontainermain { float:left; width:800px; height:500px; background-color:#CCCCCC }
  19. /* Left Cloumn */
  20. .leftcont1 { float:left; width:150px; height:300px; margin:6px 0 0 0; padding:2px 0 0 10px; background-color:#009966; }
  21. /* Bodyn */
  22. .bodycontainer { float:left; width:472px; height:auto; margin:6px 0 0 0; padding:2px 0 0 8px; background-color:#CCCCCC; }
  23. /* Right Cloumn */
  24. .rightcont1 { float:right; width:150px; height:300px; margin:6px 0 0 0; padding:2px 0 0 10px; background-color:#009966; }
  25. /* Footer */
  26. #footer { float:left; width:802px; height:28px; background-color:#DAAF7B; margin:0 -3px 0 0; padding:0; }
  27. #footerp { margin:0; padding:5px 20px 0 0; font-size:11px; color:#FFFFFF; text-align:right; }
  28. </style>
  29. </head>
  30.  
  31. <body>
  32. <div id="wrapper">
  33.     <div id="maincontainer">
  34.         <div id="container">
  35.             <div id="header">
  36.                 <div id="leftheader">rwerwer</div>
  37.                 <div id="rightheader">werewrewrew</div>
  38.             </div>
  39.             <div class="leftcont1">Left Column</div>
  40.                 <div class="bodycontainer"> The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  41.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  42.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  43.       Programming (3rd edition). See oracle.oreilly.com.
  44.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  45.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  46.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  47.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  48.       Programming (3rd edition). See oracle.oreilly.com.
  49.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  50.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  51.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  52.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  53.       Programming (3rd edition). See oracle.oreilly.com.
  54.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  55.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  56.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  57.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  58.       Programming (3rd edition). See oracle.oreilly.com.
  59.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  60.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  61.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  62.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  63.       Programming (3rd edition). See oracle.oreilly.com.
  64.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  65.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  66.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  67.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  68.       Programming (3rd edition). See oracle.oreilly.com.
  69.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  70.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  71.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  72.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  73.       Programming (3rd edition). See oracle.oreilly.com.
  74.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  75.       (1st Edition, May 2001), Morgan Kaufmann. The complete Oracle Documentation is available online at technet.oracle.com. Free subscription!
  76.       Oracle Press has several good books on various Oracle topics. See www.osborne.com/oracle/
  77.       O’Reilly has about 30 excellent Oracle books, including Steven Feuerstein’s Oracle PL/SQL
  78.       Programming (3rd edition). See oracle.oreilly.com.
  79.       Jim Melton and Alan R. Simon: SQL: 1999 - Understanding Relational Language Components
  80.       (1st Edition, May 2001), Morgan Kaufmann.</div>
  81.                 <div class="rightcont1">Right Column</div>
  82.  
  83.  
  84.             <div id="footer">
  85.                 <div id="footer">Copyright 2007 test.
  86.                 </div>
  87.             </div>
  88.         </div>
  89.     </div>
  90. </div>
  91. </body>
  92. </html>
Jun 28 '09 #1
3 5492
acoder
16,027 Expert Mod 8TB
Which browsers have you tested? position:fixed doesn't work in IE6.
Jun 29 '09 #2
drhowarddrfine
7,435 Expert 4TB
position:fixed will treat the element similar to 'absolute' so that may not be what you want. Perhaps you should play with adding 'overflow:scroll' to #wrapper.
Jun 29 '09 #3
Hi,

I have created the fixed header, footer, right and left column feature in the below blog. I hope this will help you :-)

http://s7u.blogspot.com/2008/07/dear...uss-about.html

Regards,
Shahib
Sep 27 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Mel | last post by:
is there such thing ? using CSS ? thanks, Mel
7
by: Andrew | last post by:
I've been struggling to achieve the following layout for some time now and I'm not getting anywhere. I've tried several approaches including floats & absolute positioning and none seem to work,...
4
by: sonya11 | last post by:
hi all, sorry I realize the topic is well known, anyway is there a way without using javascript to have a footer always under a 3 column layout with Absolute Positioning ? I don' t want to...
11
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. ...
2
by: ~john | last post by:
I'm trying to get my header to have 2 images, one for the top left and one for the top right. Here's a link to my page... http://levelwave.com/dev/div/index.html and will eventually be...
2
by: dfdavis.mtu | last post by:
I have a table that I dynamically fill with data from a database for medical companies to be able to determine if their patients meet certain criteria. However they want a fixed header for it so...
1
by: KoosHopeloos | last post by:
L.S., I'm trying to make a layout which is completely fixed in width and height if needed by using three divs rows (header, content, footer) which have each 3 div again to be able to play around...
1
by: swc76801 | last post by:
I desperately need help. My understanding of CSS is non-existent. I have a store http://astore.amazon.com/texasheat-20 with Amazon.com. According to the information from Amazon.com "Write your own...
2
by: darkzone | last post by:
Looked almost ok in my editor but not so good in fire fox. I was going for a layout that was elastic some what. A header with one image repeating 100%, an there image slightly to the left also in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.