Home > Web Front-end > HTML Tutorial > div align downward_html/css_WEB-ITnose

div align downward_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:03:17
Original
3992 people have browsed it

is



< /div>
                                                    :left;">

                                                                < /div>



Reply to discussion (solution)

Method 1: Each div will automatically flow downward. Use float:left and they will They are arranged from left to right, if the width allows, otherwise they will be arranged downwards. You can set their width and they may be arranged downwards. But you have to set the width well.
Method 2: You can use positioning to write the last div you want to move downwards. Use a selector {position: relative; left: 0px; top: you can decide how high you want it to be from above}. This method comes in handy most of the time.

General Science International Study,

positon:absolute
bottom:0 //Lower adsorption


Related labels:
source:php.cn
Previous article: