Without looking at the html, let me hazard a guess, the first div, at a guess would be 467 - 252 = 215 pixels wide?
Position: relative means that the element is displaced relative to its' original position in the flow of the document, I think that's what you were after. However, with that you must realize that its' original containing block is preserved within the flow of the document, unlike position: absolute where the element is removed from the flow of the document.
What you want to do is more likely achieved by giving the parent of these elements position: relative or absolute, whichever suits your needs (Judging from another q I was helping with I assume that your parent is already position absolute). When you give the two elements position: absolute now they will be placed relative to the parent, which means that you can still use the same measurements you were using now.
Hope this is clear enough, if not let me know and I'll happily clarify :)
Martin
Main Topics
Browse All Topics





by: nanharbisonPosted on 2008-07-21 at 04:37:55ID: 22049525
Can you please click on the "Attach Code Snippet" and copy and paste just the relevant code? It would be easier to read. Your tasks.txt file was huge and I think some of it was not necessary to see.
And can we see the css for these two divs? What are the names of these divs? You have a lot of them on this page so I don't know what I am looking for.
One thought - have you used overflow:hidden on the left div that you want to be overlapped with the next div. I am not positive I understand the question you are asking.