473,248 Members | 1,165 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,248 software developers and data experts.

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

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; }
  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>
  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>
  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 5478
16,027 Expert Mod 8TB
Which browsers have you tested? position:fixed doesn't work in IE6.
Jun 29 '09 #2
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

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


Sep 27 '10 #4

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

Similar topics

by: Mel | last post by:
is there such thing ? using CSS ? thanks, Mel
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,...
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...
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. ...
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...
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...
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...
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...
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...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...

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.