Home > Web Front-end > HTML Tutorial > The scroll bar takes up the width and causes the page to be misaligned_html/css_WEB-ITnose

The scroll bar takes up the width and causes the page to be misaligned_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:47
Original
2168 people have browsed it

As the title says, a div block contains many small div blocks in a floating layout (each row displays two small divs). The width is fixed. It displays normally when there is no scroll bar. When there is a scroll bar, because the width is occupied, So each row only displays a small div. How should this situation be handled?


Reply to discussion (solution)

Why are there so few people now?

Fixed div block width

Fixed div block width

The width of the parent page and the child div are both fixed

I have encountered this situation, and finally set the scroll bar not to display

Display each line For the two div blocks, why not use 100% format? Use fixed width. . .
Percent adaptive. . . .

Each line displays two div blocks. Why not use the hundred percent format? Use fixed width. . .
Percent adaptive. . . .

Hey, I didn’t design it well at the time
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template