Saturday, September 23, 2023
HomeCSShtml - Overflow reason scroll when it it have an outright aspect

html – Overflow reason scroll when it it have an outright aspect


<.
<< html lang=" en">
<> < head>>.
<< meta charset=" UTF-8"/>>.
<< meta name=" viewport" web content=" size= device-width, initial-scale= 1.0"/>>.
<< title>> Paper<.
<< design>>
. cover {
overflow-x: vehicle;
}

. material {
placement: family member;
size: 100%;
min-width: 800px;
elevation: 200px;
background-color: environment-friendly;
}

. outright {
placement: outright;
top: 50%;
right: 0;.
background-color: red;.
elevation: 200px;.
size: 100px;.
}
<.
<.
<< body>>.
<< div course=" cover">
<> < div course=" web content">
<> < div course=" outright"><>  .
<.
<.
<

I have a web page like above.

Somehow, I established min-width for web content, so I established overflow-x: vehicle; for cover

In web content, I have an outright aspect

Outcome:

enter image description here

As you see, one scroll bar show up.

If i get rid of overflow-x: vehicle; in cover:

enter image description here

<.
<< html lang=" en">
<> < head>>.
<< meta charset=" UTF-8"/>>.
<< meta name=" viewport" web content=" size= device-width, initial-scale= 1.0"/>>.
<< title>> Paper<.
<< design>>
. cover {
}

. material {
placement: family member;.
size: 100%;.
min-width: 800px;.
elevation: 200px;.
background-color: environment-friendly;.
}

. outright {
placement: outright;.
top: 50%;.
right: 0;.
background-color: red;.
elevation: 200px;.
size: 100px;.
}
<.
<.
<< body>>.
<< div course=" cover">
<> < div course=" web content">
<> < div course=" outright"><>  .
<.
<.
<

overflow-x: vehicle; create scroll when kid have an outright aspect Yet I til demand overflow-x: vehicle; for scrollable of web content when internet browser display is little.

Exactly how can I repair that?

RELATED ARTICLES

Most Popular

Recent Comments