и мне нужно поместить мой DIV в блоке, или как называет его, так что, когда много текста вводится сохраняет свою позицию и не будет показано ниже, я приложил некоторые скриншоты того, что я хочу сделатьCSS: Как я могу показать свои div в блоке?
EDIT: извините я забыл опубликовать мой код:/
CSS:
.columnas{
overflow: hidden;
}
.full{
width:98%;
margin: 20px 1%;
background: #212121;
height: 40px;
}
.col-3{
width: 34%;
margin: 5px 1%;
background: #3b5998;
height: 40px;
float: left;
display: inline-block;
@media screen and (max-width: $tablet){
width: 47.86%;
}
@media screen and (max-width: $mobile){
width: 98%;
}
}
.col-4{
width: 26%;
margin: 5px 1%;
background: #ffff00;
display: inline-block;
//height: 40px;
float: left;
}
.col-7{
width: 70%;
margin: 5px 1%;
background: red;
display: inline-block;
//height: 40px;
float: left;
}
HTML:
<html>
<head>
<link href="sass/app.css" rel="stylesheet" type="text/css" />
<title>Frontend</title>
</head>
<body>
<div class="columnas">
<div class="full"></div>
<div class="col-7"><p>Text1</p></div>
<div class="col-4"><p>Text2</p></div>
<div class="col-3"><p>Text3</p></div>
<div class="col-3"><p>Text4</p></div>
</div>
</body>
</html>
Пожалуйста, пост код в вопросе, чтобы мы могли помочь вам. –
Определяет, что вам нужно быть немного понятнее о том, что вы ищете. – cHao
можете ли вы разместить свой код? –