473,799 Members | 2,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

57 New Member
I designed a site. i want to header,footer,l eft & 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 5525
acoder
16,027 Recognized Expert Moderator MVP
Which browsers have you tested? position:fixed doesn't work in IE6.
Jun 29 '09 #2
drhowarddrfine
7,435 Recognized Expert Expert
position:fixed will treat the element similar to 'absolute' so that may not be what you want. Perhaps you should play with adding 'overflow:scrol l' 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
18746
by: Mel | last post by:
is there such thing ? using CSS ? thanks, Mel
7
2620
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, primarily due to the footer not being aware of the columns due to me floating / positioning them. I have the following (very simple) markup: <div id="head">...</div> <div id="left">...</div>
4
1942
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 use float 'cause I want to organize content in a better order for accessibility and search engine optimization ( content first ) and I cannot know in advance the height of the central column 'cause the content is taken
11
16586
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. So my header div is defined at top:0; height:40px , my footer is defined as bottom:0; height:40px and the content is defined as top:40px;bottom:40px; This works very well with firefox but doesn't work with IE, as IE ignores the bottom statement...
2
1691
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 images but what I'm wanting is for the to be aligned left and to be aligned right. As of now they're both squished to the left and I'm not sure how to change my CSS to do this.
2
12946
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 they can keep track of the criteria as they scroll since there can be upwards of 1000 or more patients in the table. The way I got this to work was to enter the information in a table via C# by storing it in a label. This works fine and scrolls...
1
2724
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 better with the webdesign. The problem is that I need the content div row to nudge up automatically to the header div row, independantly of the header height. The same goes for the footer/content div row.
1
19673
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 overriding CSS to customize your aStore." Their setup page is divided into two sections. On the right they show the existing CSS. On the left there is a box where you can add the new code. They have tabs for "Global", "Category Page", "Detail Page",...
2
3192
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 the header, a container a 20% wide box for a list, two 80% wide boxes for content, a footer with the same image set up to end it. It was looking almost there for white but the footer image could now be viewed. ?= <!DOCTYPE HTML PUBLIC...
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10475
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.