Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Overlapping IMG and DIV tag problems in Netscape


Message #1 by "Chris Ullman" <chrisu@w...> on Mon, 15 Jan 2001 16:19:47 -0000
on 19/1/01 2:50 pm, Chris Ullman at chrisu@w... wrote:

>> You shouldn't have any "overlapping" tags, it is not a well-formed document.
>> IE will let you get away with murder though.
> 
> Good point, that's probably the root of my problem.
> 
>> What are you trying to accomplish with the div tag that it needs to be
>> improperly nested?
> 
> Just layout preferences, I preferred having the IMG tag half over the
> border of the different colored DIV, and half over the page surrounding
> the DIV. I was translating my paper design into code. The idea of having
> the menu fully outside the DIV or fully inside the DIV made it look a bit
> too tidy. It was meant to look something like this:
> 
> |------|
> IMG     |
> |  DIV |
> IMG     |
> |------|
> 
> 
> I've thought, rather than using the DIV tag, given that all tags are fully
> enclosed within a table, I just use a style sheet to turn selected
> backgrounds of table cells the colour I want to make up the coloured area
> (the DIV). That seems to sound like a better plan?
> 
> Chris
> 
> 
Why don't you have the image within a second <div> tag and then overlap the
positions of the two <div>'s using the z-index operator to have the image
showing on top?



  Return to Index