Answer the question
In order to leave comments, you need to log in
How to make a div proportional?
It is necessary that two such oblique blocks stretch on the page with a width of 100%.
.header-left{
width: 70%;
height: 0px;
border-top: 100px solid #F00;
border-right: 100px solid transparent;
float: left;
margin-right: -100px;
}
.header-right{
width: 30%;
height: 0;
border-bottom: 100px solid #ccc;
border-left: 100px solid transparent;
float:left;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question