Set the relative position of layer to layer in dreamweaver_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:21:07
Original
904 people have browsed it

How to set the relative position of layers to layers in Dreamweaver? It is not the position of the layer relative to the table, but the position of one layer relative to another layer. For example, in the same "container", when the text in layer A increases and the height of layer A becomes larger, the layer B below it will also move downward and will not be covered by the previous layer A, and its relative position will remain unchanged.


Reply to the discussion (solution)

Thanks in advance to the friend upstairs. What you said is fine

Mine is roughly like this






The positions of the two divs a and b are position:absolute
id=a, this div is to place the data read from the database, the content is more or less, so the height will change
So the content If there are too many, the layer with id=b will be covered

If the position is changed to position:relative, the layout will be messed up


< ;div id=a>



id=rongq--> position:relative
id=a --->position:absolute,top
id=b --->position:absolute,bottom
That’s it.

Passing by...```~~~~~~~~~~~~~~~~~~~~~~

Never seen




This also requires high absolute positioning
If you don’t set the absolute writing position, as the content of a increases, b will automatically be pushed downwards

I also encountered the same problem. Did you solve it? Can you tell me 1015592410

Very good. . I got it done too

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template