Is there a way to divide the screen into three sections using divs according to the following criteria: - The main div should fill the entire screen (100%x100%) - Each subsequent sub div should cover the main div (each sub div = 33%)
I attempted to achieve this with the code snippet below:
<div style="width:100%; height :100%; background-color:Lime;">
sss
<div style="width:100%; height:34%; background-color:Blue;">
a
</div>
<div style="width:100%; height:33%; background-color:Gray;">
b
</div>
<div style="width:100%; height:33%; background-color:Aqua;">
c
</div>
</div>