Answer the question
In order to leave comments, you need to log in
How to make adaptability?
I did adaptability according to the lesson in YouTube. But the elements do not stretch to the entire page.
html code:
<!DOCTYPE html>
<html>
<head>
<title>Site</title>
<link rel="stylesheet" type="text/css" href="style.css"></link>
</head>
<body>
<div id = 'wrapper'>
<div id = "main">!</div>
<div id = "sidebar">!</div>
</div>
</body>
</html>
html,body{
padding: 0;
margin: 0;
color: white;
}
#wrapper{
width: 100%;
max-width: 1100px;
margin: 0 auto;
}
#main{
width: 63.63636363636364%;
float: left;
background-color: #FFA500;
}
#sidebar{
width: 36.36363636363636%;
float: right;
background-color: #1D2432;
}
Answer the question
In order to leave comments, you need to log in
Everything works for you, but your YouTube lesson was 5 years late.
By the way, this is called rubber, not adaptive.
media queries - https://developer.mozilla.org/en/docs/Web/CSS/Medi...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question