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

problem with page container / page border.

Hi,

I'm new to CSS and, following some advice, created my page like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="pagecontainer">
<div id="header"></div>
<div id="subheader"></div>
<!--#include file="nav.txt" -->
<div id="mainnav">Page text content</div>
</div>
</body>
</html>

my "nav.txt" SSI is this:

<div id="leftnav">
<p><a href="index.shtml">Home Page</a></p>
<p><a href="another.shtml">Another Page</a></p>
</div>

My "stylesheet.css" is this:

body { font-family: Arial, Helvetica, sans-serif; font-size: 100.01%;
line-height: 150%; font-weight: normal; color: #666666; text-align: center;
background-color: #F0F0F0; margin-top: 0px; margin-bottom: 20px;
margin-left: 0px; margin-right: 0px; }

#pagecontainer { border: 2px solid #7F9D7F; background: #FFFFFF; margin: 0
auto; width: 728px; height: auto; position: relative; text-align: left;}

#header { left: 0px; top: 0px; right: 0px; height: 154px;
background-image: url(graphics/header-bucketriver.jpg); background-repeat:
no-repeat; }

#subheader { left: 0px; right: 0px; height: 38px; padding-left: 0px;
padding-right: 0px; background-image: url(graphics/whowhatwhenwhy.gif);
background-repeat: no-repeat; }

#leftnav { position: absolute; font-size: 0.9em; top: 192px; left: 0px;
width: 140px; background-color: #FFFFFF; border-width: 0px 1px 0px 0px;
border-style: dashed; border-color: #AABBDC; visibility: visible; }

#leftnav a { background-color: #FFFFFF; display: block; text-decoration:
none; border-width: 0px 0px 1px 0px; border-style: dashed; border-color:
#AABBDC; font-weight: bold; padding-left: 8px; vertical-align: middle;
color: #7F9D7F; }

#leftnav a:hover { background-color: #7F9D7F; display: block;
text-decoration: none; border-width: 0px 0px 1px 0px; border-style: dashed;
border-color: #AABBDC; font-weight: bold; padding-left: 8px; vertical-align:
middle; color: #FFFFFF; }

#mainnav { font-size: 0.8em; position: absolute; top: 192px; left: 141px;
width: 562px; background-color: #FFFFFF; text-align: left; padding-left:
12px; padding-right: 12px; height: auto; }

Now, the border specified in the page container only seems to wrap around
the header and subheader, but not around the nav.txt or mainnav? Here's
what it looks like: www.nathonjones.com/sitc/salmon.shtml

What do I need to change to make the pagecontainer wrap around everything?

Would really appreciate the help.
Thanks.
Nath.
Feb 10 '06 #1
2 3001
"tradmusic.com" <sa***@NOSHPAMtradmusic.com> wrote:
I'm new to CSS and, following some advice, created my page like this:


Don't post code to the group, upload it, post the url.

--
Spartanicus
Feb 10 '06 #2
Ehm...if you read all the way down, you'll see that I did! :o)

I've solved it though with the help of another on the Dreamweaver
newsgroup...

Changed "position: absolute;" to "float: left;"

regards
Nath.

"Spartanicus" <in*****@invalid.invalid> wrote in message
news:26********************************@news.spart anicus.utvinternet.ie...
"tradmusic.com" <sa***@NOSHPAMtradmusic.com> wrote:
I'm new to CSS and, following some advice, created my page like this:


Don't post code to the group, upload it, post the url.

--
Spartanicus

Feb 10 '06 #3

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

Similar topics

6
by: B McDonald | last post by:
Hi. I am trying to straighten out some DIV issues in the rendering of my no-tables CSS website. Right now the biggest issue is trying to render 2 columns several DIVs deep in the box model for my...
9
by: Faz | last post by:
Hi I'm having some real trouble with a header I have created within a container. I have two problems; firstly the menu (a horizontal UL) will not centre within the surrounding header, despite...
10
by: Brian Henry | last post by:
Hi, I am having a problem with an attachment system I made... it works with files up to ~3MB in size then after that if you try to upload a file it just goes to a "Page can not be displayed" page...
0
by: Andrew Westgarth | last post by:
Hi all, i'm struggling with a page idea I have. I need to write a page with an A to Z list of available schools in the area. I only want to display the letters in the A to Z which have school...
1
by: books1999 | last post by:
Hi there, I have a problem with this css/div and i cannot work it out. I would like either container to be able to push the background box to grow but in Firefox it overflows. Can someone find a...
1
by: Frank | last post by:
I am having a problem with using a repeater control. I have no idea what I am doing wrong. It compiles but nothing displays. Can anyone help? Here is the code: ASPX File: <%@ Page...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
3
by: Steve | last post by:
Hi All I have an asp.net 2.0 website with the following css file It uses Master pages and in Firefox 3.04 for windows only, 3 of the web pages don't display the Master page properly The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.