Currently, I am working on a responsive website project. In the example code provided, I have set the width of the container div to a fixed value to highlight a specific issue.
The problem arises when the text wraps onto multiple lines and extends beyond the boundaries of the green box, causing it to lose its indentation. Is there a way to resolve this using only CSS without making changes to the HTML code?
<div class="cont">
<label for="one">
<div class="">
<a href="#" class="check-style">
<span></span>
</a>
<input type="checkbox" class="" value="1" id="one" name="privacy"></div> Ive read <a href="#">document</a>. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree. And I agree.
</label>
</div>
.cont {
width: 400px;
}
.check-style {
background: green;
float: left;
height: 40px;
width: 40px;
}
input[type=checkbox] {
opacity: 0;
position: absolute;
}