Div div the div div?
August 6, 2004 12:42 AM   Subscribe

I have a div within a div. I want them both to be exactly the same width (but not height), so that the inner div's border will overwrite the outer div's border. Is this possible?
posted by Tlogmer to Computers & Internet (5 answers total)
 
Not if it's inside the other DIV.

BTW, a great place for asking web dev questions is thelist, run by evolt.org


Disclaimer: I'm an admin there
posted by madman at 3:51 AM on August 6, 2004


Yes - if I understand what you want correctly. The desired width for both is fixed in the stylesheet and the inner div, at least, is using position:absolute; and top and left values or the inner div are set to meet your requirements.
posted by normy at 4:44 AM on August 6, 2004


You may be able to give the inner div a negative margin. Sometimes this works, sometimes not.
posted by Khalad at 5:08 AM on August 6, 2004


instead of a border on the outer div, use a bg image that fakes a border, then the inner one can overlap it.
posted by o2b at 11:50 AM on August 6, 2004


Response by poster: Thanks for the advice; I'll check out thelist.
posted by Tlogmer at 8:29 PM on August 6, 2004


« Older Help me find these books on primitive navigation &...   |   DOS/Windows equivalents to Unix commands Newer »
This thread is closed to new comments.