+ 3
Can we color only half of page?
4 Answers
+ 4
Yeah just create a div (class="halfDiv") and add CSS:
.halfDiv{
width: 50%;
height: 100px;
background-color: green;
}
You can adjust the height
EDIT:
as Arturop mentioned, gradient would also be helpful:
body {
background: linear-gradient(90deg, green 50%, white 50%);
}
+ 1
I think yes
By using div
+ 1
Background color of body with gradient i'd use.
+ 1
Yes specify using div