473,738 Members | 8,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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">&nb sp</div>

<div id="infobar">&n bsp</div>

<div id="navbar">&nb sp</div>

</body>

</html>

--- END HTML FILE CONTENTS ---
Jul 20 '05 #1
7 5418
Tintax wrote on 08 okt 2003 in comp.infosystem s.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******* *************@1 94.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.infosystem s.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:10 px;xwidth:90px; ">

and

<img src=".." style="xwidth:1 0px;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_********@hot mail.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
6518
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 show: function show(divbox) { divbox.style.display=''; } <div id="divbox" style="display:none" >
55
7300
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 function that is called from a button. I think I can use a <div id="t"></div> for this ? Something like
8
14467
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 page, there is a huge gap (like 3/8 inch or 25 px) between them. This is driving me bananas. What the hey am I missing? dh ------------------------------------------------ Dan Hansen ------------------------------------------------
1
3909
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. It used to be something like this: <table> <tr> <td><img>caption</td> <td><img>caption</td>
44
919
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 put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the scrolling box change on resize. Thanks in advance.
3
3812
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" onclick="__doPostBack('SitesRadioButtonList_3','')" language="javascript" />
13
27505
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 matter what tags you use I would have thought, or am I missing something? tia, Davo
1
983
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 other. Can I do this with css/javascript?
8
10047
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
8969
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
8788
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
9335
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...
0
9208
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
8210
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
6751
isladogs
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...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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
2745
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.