Being new to using CSS for webpage design, I'm currently facing some alignment challenges. The issue arises when I resize the window in which my webpage is displayed, causing the elements on the page to lose their alignment due to fixed widths being set. There are three CSS classes that I am utilizing:
.left {
width: 30%;
float: left;
text-align: right;
}
.right {
width: 65%;
margin-left: 10px;
float:left;
}
.center {
width: 87%;
text-align: center;
}
I need help figuring out how to ensure that my headers, styled with the 'center' class, remain aligned directly above my text boxes, styled with the 'right' class.