Is there a way to center text on a page when there is a floating div affecting the alignment? I noticed that the text centers around the div instead of the entire page. How can I solve this issue?
For a better understanding, please view in fullscreen mode.
#img1 {
width: 220px;
height: 220px;
}
#box1 {
width: max-width;
height: 1650px;
background-color: #ECECEC;
}
#box2 {
float:left;
padding-left:250px;
}
#box3 {
text-align:center;
}
#p1 {
text-align:left;
}
<div id="box1">
<div id="box2">
<img id="img1" src ="images/hack.jpg"/>
</div>
<div id="box3"
<p id="p1">
lorum ipsum lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum lorum ipsum<br>
lorum ipsum lorum ipsum lorum ipsum lorum ipsum lorum ipsum lorum ipsum lorum ipsum<br>
</p>
</div>
</div>