I have been experimenting with divs and classes in order to achieve proper alignment of text on my website. Currently, I am working with 2 classes that I would like to display side by side to create 2 columns. However, the right column containing the text does not align well on mobile devices. I want this text column to be able to span multiple rows while being vertically centered within each row. I have tried using padding for this purpose, but it is not producing the desired result.
In addition, I must include some text below my content Div to prevent my footer from overlapping with the content. This issue has been quite frustrating as I have experimented with various settings for both divs and classes, yet have not found a suitable solution.
You can view the HTML and CSS code here. The problem areas are highlighted below:
HTML
<div id="content">
<p class="contentleftcol" >
<img src="frontend/laptop-computer_repairs.gif" width="150" height="150" alt="computer repairs image" />
</p>
<p class="contentrightcol">
Windows OS computer repairs and tune ups: remove unnecessary software slowing down the computer
</p>
... (remaining HTML code)
</div>
CSS
#content{
padding:0 0 24px 24px;
}
.contentleftcol{
float:left;
width:150px;
padding-left:50px;
height:150px;
}
.contentrightcol{
float:right;
width:760px;
padding-top:68px;
padding-bottom:70px;
}
Any help or suggestions would be greatly appreciated! Thank you!