I've been playing around with divs and classes to try and get the text on my website to line up well. Currently I have 2 classes, which I want to align next to each other to make 2 columns. Ill add the code but basically, the right hand column, the text column, wont align well on mobile devices. I want this column to have possibly multiple rows of text, which vertically centres to the middle of the row, Currently Im using padding, but thats not coming out ideal.
Also, I have to have some text below my content Div, otherwise my footer will creep up, this also is annoying... I've been trying a bunch of different div and class settings but I haven't found the right settings yet
the html and css are here: http://hascomp.net/
the problem areas are:
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 not needed software slowing the computer down
</p>
<p class="contentleftcol" >
<img src="frontend/wifi.gif" width="150" height="150" alt="computer repairs image" />
</p>
<p class="contentrightcol">
wifi configuration and optimisation
</p>
<p class="contentleftcol" >
<img src="frontend/anti_spyware.gif" width="150" height="150" alt="computer repairs image" />
</p>
<p class="contentrightcol">
virus and spyware removal
</p>
<p class="contentleftcol" >
<img src="frontend/computer_upgrades.gif" width="150" height="150" alt="computer repairs image" />
</p>
<p class="contentrightcol">
computer upgrades
</p>
</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;
}
thanks!