Learn CSS overflow in 3 minutes! 🌊

preview_player
Показать описание
#CSS #course #tutorial

CSS overflow visible hidden clip scroll auto tutorial example explained
Рекомендации по теме
Комментарии
Автор

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bro Code</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ut eius architecto suscipit nam exercitationem mollitia ad esse voluptatum itaque fugit, voluptates, dolore sapiente tempora laborum quibusdam? Quo accusantium velit consectetur!</p>
</div>

</body>
</html>

/* style.css */

div{
border: 2px solid;
height: 75px;

/*
overflow: visible;
overflow: hidden;
overflow: clip;
overflow: scroll;
overflow: auto;
*/
}

BroCodez
Автор

Never knew about the overflow-clip-margin, thanks man!

RadicalBlur
Автор

U made html css look so easy, thanks buddy.

nikstatus
Автор

Thanks. I don't think that that is necessary that often but yes maybe just in a few cases where space is limited. I like the auto value the most.

RickWoellert
Автор

I added overflow-x: scroll; but I don't see the horizontal scroll bar unlike the y scroll bar that is quite good

MAXFERDINAND-cszp
Автор

I have a div with a specific width and height which includes many buttons, these buttons have their own height and width, I give overflow property to the containers of these buttons but it doesn't work and by adding buttons to this container, the width decrease and they fit on the container(div)

techwing_code
Автор

what if i want it to clip, but still have a scroll bar?

WabuhWabuh
Автор

so this is what they do at stack overflow

flaguser
Автор

Well I couldn't see the horizontal scroll bar

MAXFERDINAND-cszp
welcome to shbcf.ru