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

Part of my <div> is missing (presumed invisible)

I'm trying to get a child DIV tag to overlap the border of it's parent
DIV tag in order to create an effect as follows:

+----------------------------------------------------------+
| |
+--------------------------------------------------------------+
| Child DIV Tag |
+--------------------------------------------------------------+
| |
| Parent DIV Tag |
+----------------------------------------------------------+

I've put together a simple html that I think *should* create the
desired effect within the content area of a simple framework.
Unfortunately it only overlaps on the right hand side; the left looks
like it should be overlapping (the content gets a little chopped off
at the left) but nothing is displayed outside the parent div tag.

I've included the html file below. I would usually put it on my web
server but unfortunately a few technical problems has left me with a
few difficulties in that area. For much the same reason I've only been
able to test with IE6 Win.

Any help will be much appreciated. I've been bashing my head against
this for hours now (hopefully a case of missing the woods for the
trees).

- Tintax

--- START HTML FILE CONTENTS ---

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">

<html>

<head>
<style type="text/css">

html, body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
text-align: left;
color: #000000;
font-weight: normal;
padding: 0 ;
margin: 0 ;
}

#header {
position: absolute ;
left: 0 ;
top: 0 ;
margin: 0 ;
padding: 0 ;
height: 50px ;
width: 100% ;
background-color: #EEEEEE ;
z-order: 0 ;
}

#infobar {
position: absolute ;
left: 0 ;
top: 50px ;
margin: 0 ;
padding: 0 ;
height: 18px ;
width: 100% ;
background-color: #222222 ;
z-order: 1 ;
}

#navbar {
position: absolute ;
left: 5px ;
top: 73px ;
width: 120px ;
margin: 0 ;
border: 1px solid #000000 ;
padding: 2px ;
background-color: lightblue ;
z-order: 2 ;
}

#content {
margin: 73px 30px 20px 155px ;
padding: 10px ;
border: 1px solid #000 ;
background-color: lightgreen ;
height: 300px ;
min-width: 500px ;
text-align:left;
}

#title {
position: relative ;
background-color: lightyellow ;
padding: 0px ;
margin-right: -20px ;
margin-left: -20px ;
border: 1px solid red ;
width: 100% ;
voice-family: "\"}\"";
voice-family: inherit;
width:auto;
}

html>body #title {
width:auto;
}

</style>
</head>

<body>

<div id="content">
<div id="title"><h1>Header One</h1></div>
<p>This is a random line of text that makes very little sense but
should makes the browser wrap the
paragraph onto another line.</p>
</div>

<div id="header">&nbsp</div>

<div id="infobar">&nbsp</div>

<div id="navbar">&nbsp</div>

</body>

</html>

--- END HTML FILE CONTENTS ---
Jul 20 '05 #1
7 5402
Tintax wrote on 08 okt 2003 in comp.infosystems.www.authoring.stylesheets:
I've put together a simple html that I think *should* create the
desired effect within the content area of a simple framework.
Unfortunately it only overlaps on the right hand side; the left looks
like it should be overlapping (the content gets a little chopped off
at the left) but nothing is displayed outside the parent div tag.


In css #title

change width:auto; to xwidth:auto;

and all will be revealed.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
> change width:auto; to xwidth:auto;

Is xwidth specific to IE6 only? I can't find a whole lot of info about it
anyplace...

P.
Jul 20 '05 #3
"Evertjan." <ex**************@interxnl.net> wrote in message news:<Xn********************@194.109.133.29>...
In css #title

change width:auto; to xwidth:auto;

and all will be revealed.


Ok; first I have had a chance to check the page in a more standards
compliant browser (Opera7 Win) and my original page looks how I
expected it to (i.e. the #title div overlaps the #content div on both
sides). I'll take heat from the sys-admin later for installing opera
no doubt, but at least I now have some sort of piece of mind - I
'simply' need to understand why IE is breaking it and how to fix it.

Thanks for the advice Evertjan (like plankmeister I'm new to xwidth as
well) but it doesn't quite seem to fix the problem. Now it overlaps on
the left but doesn't even reach the right hand border of the #content
div (even if I set #title to a really silly negative margin). The
modified css still continues to display correctly in Opera though.
Jul 20 '05 #4
Tintax schreef:
I'm trying to get a child DIV tag to overlap the border of it's parent
DIV tag in order to create an effect as follows:
<style type="text/css">

#header {
z-order: 0 ;
}


Is z-order not meant to be z-index?

--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html *Dagboek*
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html *Zweefvliegen*?

Jul 20 '05 #5
The Plankmeister wrote on 08 okt 2003 in
comp.infosystems.www.authoring.stylesheets:
change width:auto; to xwidth:auto;


Is xwidth specific to IE6 only? I can't find a whole lot of info about it
anyplace...


For quick debugging a style parameter, I usually precede it with an x to
switch it off. Deleting the x activates the width again.

A not very useful example:

<img src=".." style="width:10px;xwidth:90px;">

and

<img src=".." style="xwidth:10px;width:90px;">

will quickly switch between the two sizes.

After debugging all the x-parameters can and should be deleted.

[I think] css specs allows and prescribes to ignore nonexistent parameters.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #6
Barbara de Zoete <b_********@hotmail.com> wrote in message news:<bm************@ID-52872.news.uni-berlin.de>...
Tintax schreef:
I'm trying to get a child DIV tag to overlap the border of it's parent
DIV tag in order to create an effect as follows:
<style type="text/css">

#header {
z-order: 0 ;
}


Is z-order not meant to be z-index?


Yep, sure is. Great ... now I'm all red faced and still can't get my page to work :(

Thanks for pointing that out though Barbara.
Jul 20 '05 #7
Well I managed to solve it ... unfortunately I'm not exactly clear of
how I managed to solve it but the fresh stylesheet I wrote did the
trick (even if I can't pick out the differences).

When I do work it out I'll be sure to post the solution. Thanks to
everyone who helped!
Jul 20 '05 #8

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

Similar topics

3
by: Jens Kristensen | last post by:
I have a problem displaying a divbox containing a html-textarea - everything works fine with "normal" characters. However, when the textarea contains special chars like <P> or ' , the box fails to...
55
by: Ton den Hartog | last post by:
Stupid basic question but I find it horribly imposible to find the answer elsewhere... :-( I want to have a piece of text in my HTML page and want to be able to change it in a Javascript...
8
by: Daniel Hansen | last post by:
I know this must seem totally basic and stupid, but I cannot find any reference that describes how to control the spacing between <p>...</p> and <div>...</div> blocks. When I implement these on a...
1
by: Alan Hoyle | last post by:
I was using a <table border> to generate borders around some info/images, and decided to follow the w3c guidelines and convert it to CSS boxes with borders since it wasn't really tabular data. ...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
3
by: Josef K. | last post by:
Asp.net generates the following html when producing RadioButton lists: <td><input id="RadioButtonList_3" type="radio" name="MyRadioButtonList" value="644"...
13
by: Davo | last post by:
Hi Folks, There seems to be something about not using tables for layout, but use divs instead. I'm not sure if I've got this right. If the output looks like what you want, then it shouldn't...
1
by: Geoff Cox | last post by:
Hello, Sorry for separate posting in both this and the authoring.html group - my mistake. I have a series of <divblocks which I want to appear in the same position on the page, one after the...
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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
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...
0
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...

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.