carbilldyer
05-05-2010, 11:30 AM
I am having a problem trying to display thumbnails with descriptions to the righthand side. I want both image and description to be a link and I want a bit of space between the image and text.
This is my relevant code within box:-
this part ok working ok
<div class="rboxscr"><br/>
<h1 align="center">Energy Saving Products</h1><br/>
<p class="linkbarsml">
<a href="energyproducts.html"><span class="links"> Products </span></a><img src="i/redline-sep.bmp" width="2" height="15">
<a href="energytips.html"><span class="links"> Tips </span></a><img src="i/redline-sep.bmp" width="2" height="15">
<a href="energyfaqs.html"><span class="links"> FAQs </a></span>
</p><br/>
This is the problem bit
<a href="e2.html"><img src="i/tb/energy/e2tb.jpg" alt="E2 wireless electricity monitor" title="E2 wireless electricity monitor" align="absmiddle" width="100" height="100" hspace="10" border="0"/><span class="inverse-text">E2 Wireless Electricity Monitor with USB connection</span></a><br clear="all"/><br/>
Same code for next thumbnail, etc.
relevant css:-
.rboxscr
{
background-image: url(i/bg/box2ab.jpg);
padding-left: 20px;
padding-right: 20px;
margin: 0;
border-width: 0px;
border-style: solid;
border-color: yellow;
left: 65%;
width: 270px;
position:absolute;
display:block;
top:170px;
bottom:0;
height:auto;
overflow-x: hidden;
overflow-y: scroll;
}
.inverse-text
{
font-size: 13px;
font-family: EurostileLTStd;
font-weight: normal;
text-decoration:none;
color:#ffe4af;
}
What is happening is that the image appears correctly. The text aligns ok in the middle until it needs to wrap because of box size limit. It doesn't go to next line, it jumps down under the image aligned with the lefthand side of image. Also the hspace is having no effect.
If I use "align="left" all text is correctly wrapped to the right of the image but is at the top, but if I try align="top, middle or bottom" it doesn't work. They all position correctly (i.e. top middle or bottom) but only first line, the rest drops below the image in every case. I have tried moving the span to just around text and also around text and image. I have tried not including the text as link. All to no avail
I have tried all combinations of <br clear> and no br clear.
Also the hspace is having no effect in any combination with any of the above.
Any help appreciated
This is my relevant code within box:-
this part ok working ok
<div class="rboxscr"><br/>
<h1 align="center">Energy Saving Products</h1><br/>
<p class="linkbarsml">
<a href="energyproducts.html"><span class="links"> Products </span></a><img src="i/redline-sep.bmp" width="2" height="15">
<a href="energytips.html"><span class="links"> Tips </span></a><img src="i/redline-sep.bmp" width="2" height="15">
<a href="energyfaqs.html"><span class="links"> FAQs </a></span>
</p><br/>
This is the problem bit
<a href="e2.html"><img src="i/tb/energy/e2tb.jpg" alt="E2 wireless electricity monitor" title="E2 wireless electricity monitor" align="absmiddle" width="100" height="100" hspace="10" border="0"/><span class="inverse-text">E2 Wireless Electricity Monitor with USB connection</span></a><br clear="all"/><br/>
Same code for next thumbnail, etc.
relevant css:-
.rboxscr
{
background-image: url(i/bg/box2ab.jpg);
padding-left: 20px;
padding-right: 20px;
margin: 0;
border-width: 0px;
border-style: solid;
border-color: yellow;
left: 65%;
width: 270px;
position:absolute;
display:block;
top:170px;
bottom:0;
height:auto;
overflow-x: hidden;
overflow-y: scroll;
}
.inverse-text
{
font-size: 13px;
font-family: EurostileLTStd;
font-weight: normal;
text-decoration:none;
color:#ffe4af;
}
What is happening is that the image appears correctly. The text aligns ok in the middle until it needs to wrap because of box size limit. It doesn't go to next line, it jumps down under the image aligned with the lefthand side of image. Also the hspace is having no effect.
If I use "align="left" all text is correctly wrapped to the right of the image but is at the top, but if I try align="top, middle or bottom" it doesn't work. They all position correctly (i.e. top middle or bottom) but only first line, the rest drops below the image in every case. I have tried moving the span to just around text and also around text and image. I have tried not including the text as link. All to no avail
I have tried all combinations of <br clear> and no br clear.
Also the hspace is having no effect in any combination with any of the above.
Any help appreciated