When I use this fiddle https://jsfiddle.net/8kh5Lw9r/, I am getting the expected four quadrants on the screen.
https://i.sstatic.net/O5Q6D.png
HTML
<div id="one"><p>One</p></div>
<div id="two"><p>Two</p></div>
<div id="three"><p>Three</p></div>
<div id="four"><p>Four</p></div>
CSS
div {
position: fixed;
border: 1px dashed red;
}
#one {
height: 40%;
width: 35%;
}
#two {
height: 40%;
width: 65%;
}
#three {
height: 60%;
width: 35%;
}
#four {
height: 60%;
width: 65%;
}
However, I am facing the following issues:
- Why do the four paragraphs stack on top of each other even though the DIVs are properly configured?
- Is there a way to prevent redundancy by defining the 40/60 and 35/65 divisions in a single location?
Edit: I would greatly appreciate it if you could identify any misconceptions I have about how CSS functions. Providing a solution is helpful, but correcting my misunderstandings would be even more beneficial.