473,722 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with page container / page border.


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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styleshee t.css" rel="stylesheet " type="text/css">

<div id="pagecontain er">
<div id="header"></div>
<div id="subheader"> </div>
<!--#include file="nav.txt" -->
<div id="mainnav">Pa ge text content</div>

my "nav.txt" SSI is this:

<div id="leftnav">
<p><a href="index.sht ml">Home Page</a></p>
<p><a href="another.s html">Another Page</a></p>

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.
Feb 10 '06 #1
2 3016
"tradmusic. com" <sa***@NOSHPAMt radmusic.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.

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

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


"Spartanicu s" <in*****@invali d.invalid> wrote in message
news:26******** *************** *********@news. spartanicus.utv internet.ie...
"tradmusic. com" <sa***@NOSHPAMt radmusic.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.


Feb 10 '06 #3

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

Similar topics

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 index page. If you go to http://galtsvalley.com/newindex.html - you will see the problem area. I've highlighted the relevant blocks with nice, harsh primary colors. Clearly there are positioning problems begetting flow issues - the blocks...
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 attempts to use the following within the #header declaration: margin-left: auto; margin-right: auto; The image above the list is easily centred using the 'text-align' property,
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 like it tried to do it but errored... I thought changeing the max size for the file input box to about 100mb would fix it but nope here is my page code and my code behind code... ===============
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 information under them, i.e. A,b,c,d,f if no schools beginning with e are available. My chosen page layout out would be
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 solution to the problem contained in the code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
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 language="c#" Codebehind="profile.aspx.cs" AutoEventWireup="false" Inherits="MarketZar.accts.profile" %> <html>
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 /* CSS for Marlon Sanders site */ html, body {
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 recessed it in a <Div></Divto allow scrolling of just the data, not the page. What I need to do is place a DataList (also in a <Div></Divto allow scrolling of just the data) to the right of the Datagrid to show 40 Employee Detail fields (listed top to...
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 is the actual running of the page) I've almost got this working (?) but need a little help. I have an .aspx page that has a DataGrid listing employees with a "Select" button that is to be used to populate the DataList to the right of the DataGrid...
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 content page overlaps the Master page boundaries In IE 6/7 All works fine
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...
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,...
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...
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,...
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...
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...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.