473,657 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<div>: can't get content under header

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.

Any suggestions how to do this?

Thank you for your time!

KoosHopeloos

The CSS/XHTML-code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Copyrigh t JNvB</title>
<style type="text/css">

/* header */

..headerrow {
position: absolute;
top: 0px;
}
..logo {
position: absolute;
margin-left: 0px;
height: 200px;
width: 200px;
background-color: #0000FF;
}
..header {
position: absolute;
margin-left: 200px;
height: 200px;
width: 565px;
background-color: #00FF00;
}
..empty1 {
position: absolute;
margin-left: 765px;
height: 200px;
width: 5px;
background-color: #FF0000;
}

/* end header */

/* content */

..contentrow {
position: absolute;
top: 205px;
}
..menu {
float: left;
width: 200px;
background-color: #00FF00;
}
..content {
float: left;
width: 565px;
background-color: #FF0000;
}
..empty2 {
float: left;
width: 5px;
background-color: #0000FF;
}

/* end content */

/* footer */

..footerrow {
position: absolute;
top: 250px;
}
..totop {
position: absolute;
margin-left: 0px;
height: 100px;
width: 200px;
background-color: #FF0000;
}
..footer {
position: absolute;
margin-left: 200px;
height: 100px;
width: 565px;
background-color: #0000FF;
}
..empty3 {
position: absolute;
margin-left: 765px;
height: 100px;
width: 5px;
background-color: #00FF00;
}

/* end footer */

</style>
</head>

<body>
<div class="headerro w">
<div class="logo">lo go</div>
<div class="header"> header</div>
<div class="empty1"> empty1</div>
</div>

<div class="contentr ow">
<div class="menu">me nu</div>
<div class="content" >content</div>
<div class="empty2"> empty2</div>
</div>

<div class="footerro w">
<div class="totop">t otop</div>
<div class="footer"> footer</div>
<div class="empty3"> empty3</div>
</div>

</body>
</html>

May 3 '07 #1
1 2715
Sorry, posted code iso link, but here it is:

http://osinijsland.50webs.com/test_3.htm
May 3 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2523
by: Terry | last post by:
hi guys, could anyone help me with this? I tried to put a <div> in a <td>, and a <table> in that <div>. It looks fine, but my div can't fit in my <td>, there's always a space between the bottom of the <div> and the bottom of the <td>. I try to put margin-bottom:0 px to the <td>, <tr> also <table>, but there's still a space there. I need the div fit in the <td> totally. Could any one tell me how?
8
5140
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is pulling a name and placing it under the thumbnail (the text is
2
17494
by: alexrib | last post by:
Hi, I have a web application which uses external CSS files extensively. Now, I need to port this application to run inside a portlet. So, it will not generate a complete HTML document, but just a fragment. How can I apply an external CSS file not to the whole HTML document, but just to a div section ? I see 2 alternatives: 1) to use a system prefix in every ID and CLASS attribute. This will
2
6023
by: Rodney Dunning | last post by:
Forgive me if this is a stupid question. I have a course syllabus located at http://www.longwood.edu/staff/dunningrb/teaching/easc101f06/easc101f06_syllabus.html. I use a <divcontainer for the main content of the page. When I print the page, or select Print Preview, I get only a single sheet, even the though the content should run to three sheets of paper. In Print Preview, the content simply runs off the bottom of the window, while...
2
3412
by: vidyasada | last post by:
Hi i m new to javascript . i need a script to srcoll the <div> content vertically within the <div> and it stops few seconds at the end of the content .. and again starts scrolling.. please anyone help.. thanks in advance, -vidya.
5
13481
by: Agix | last post by:
Hi there, Please check out : http://clarifysolutions.co.uk/certenroll/ The source is included below. This page is a test, so I can play about with paddings, margins and layouts using divs as semantically meaningless containers for bunch's of other elements - like everyone keeps telling me to make my code standards compliant. This request is not because I want a fix, but because I want to
10
3193
by: Summercoolness | last post by:
so i am starting to use more of <br /and <div style="clear: both" / which is the XHTML style... now, won't those actually confuse the old browsers? for example, will the old browser treat the "div" as not closing, and so everything after the div will be treated as part of that div?
1
4768
by: sid | last post by:
Is it possible to float a <divon top of a <frameset ...? I need it to overlap parts of the frames. Thanks Sid.
5
2520
by: obwatter | last post by:
i'm trying to recreate what i *think* should be a simple CSS/JS <div> content reveal / swap. just like this one ("A Tale of Two Pets", near bottom of page): http://www.castorpolluxpet.com/our_story been trying to figure it out on my own for about 2 days now & have run out of ideas. *** NOTE: my JS skills are currently limited to rollovers & pasting snippets written by "the javascript guy" who used to work in our office.
8
10029
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
0
8385
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
8723
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
8502
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
8602
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
7316
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...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.