Generally speaking, HTML layout is stream based. Each element is positioned after it is in front of it, either to its right or below it. Of course, there are many exceptions that you can get when playing with styles, but even then, if you change the order of something, most things wrap it around and make room for it.
But sometimes I see things that behave very differently, such as pages containing โdialog boxesโ that float in the middle of the screen, which are not limited by the size of the divs they are based on, and donโt move other layout elements around them.
I am trying to find a way to do something similar, but not quite the same. I have a table that I use to display the grid (yes, in fact, using the tables correctly), and I would like to place the image on top of one of the grid cells. I cannot put it in a cell because it is larger than the cell, and I do not want to stretch the grid, but I want it to always display in the same position relative to the grid, even if the browser window scrolls or changes.
I believe there must be some way that I can do this. If I put an identifier or class in one of the <TD> cells, how can I create an <Image> that is not part of the <TD> or even <TABLE> to which it belongs, but will always position itself at the top of this <TD> cell <TD> without displacing anything or without affecting its location?
source share