I have a snippet of HTML Code:
<html>
<head>
<title>css test</title>
<style type="text/css">
.box{width:100%;float:left;background:red}
</style>
</head>
<body>
<h1>Title To Appear Below Div on Page</h1>
<div class="box">
<h2>This is a Heading 2</h2>
</div>
</body>
</html>
Looking at the code, the H1 element is positioned above the DIV.
Can the H1 element be placed below the DIV when the webpage is accessed by the user?
Considering that the height of the .box div varies on each page load (due to random text content), is there a way to consistently position the H1 below the DIV?
Any insights on how to achieve this would be greatly appreciated.