Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:31 PM
Tintax
Guest
 
Posts: n/a
Default 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 ---
  #2  
Old July 20th, 2005, 09:31 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

Tintax wrote on 08 okt 2003 in comp.infosystems.www.authoring.stylesheets:
[color=blue]
> 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.
>[/color]

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)
  #3  
Old July 20th, 2005, 09:31 PM
The Plankmeister
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

> 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.


  #4  
Old July 20th, 2005, 09:32 PM
Tintax
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message news:<Xns940EB4D581B2Beejj99@194.109.133.29>...[color=blue]
> In css #title
>
> change width:auto; to xwidth:auto;
>
> and all will be revealed.[/color]

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.
  #5  
Old July 20th, 2005, 09:32 PM
Barbara de Zoete
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

Tintax schreef:[color=blue]
> 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 ;
> }
>[/color]

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*?

  #6  
Old July 20th, 2005, 09:32 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

The Plankmeister wrote on 08 okt 2003 in
comp.infosystems.www.authoring.stylesheets:
[color=blue][color=green]
>> change width:auto; to xwidth:auto;[/color]
>
> Is xwidth specific to IE6 only? I can't find a whole lot of info about it
> anyplace...
>[/color]

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)
  #7  
Old July 20th, 2005, 09:32 PM
Tintax
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

Barbara de Zoete <b_de_zoete@hotmail.com> wrote in message news:<bm36kh$i4qjs$1@ID-52872.news.uni-berlin.de>...[color=blue]
> Tintax schreef:[color=green]
> > 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 ;
> > }
> >[/color]
>
> Is z-order not meant to be z-index?[/color]

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.
  #8  
Old July 20th, 2005, 09:33 PM
Tintax
Guest
 
Posts: n/a
Default Re: Part of my <div> is missing (presumed invisible)

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!
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles