My features HTML is code generated, I would like to display the text along side the icons but the only way I have managed to do it, is by position:absolute;
and this is NOT good as some products have a cart box directly above the features and some dont, therefore absolute position doesnt work.
Is there a way to relatively position the feature names along side the icons using either css or jquery?
I have tried this: http://jsfiddle.net/nHHkQ/
HTML:
<div id="FeatureIconsWrapper">
<div class="FeatureIconImages">
<a title="CapacityChildren" href=
"popup.aspx?title=CapacityChildren&topic=feature_CapacityChildren" rel="icons"
class="iconClick"><img title="CapacityChildren" alt="CapacityChildren" src=
"http://i50.tinypic.com/hwh0ud.png" /></a>
</div>
<div class="FeatureIconImages">
<a title="EasyBackpackingSystem" href=
"popup.aspx?title=EasyBackpackingSystem&topic=feature_EasyBackpackingSystem"
rel="icons" class="iconClick"><img title="EasyBackpackingSystem" alt=
"EasyBackpackingSystem" src="http://i50.tinypic.com/hwh0ud.png" /></a>
</div>
<div class="FeatureIconImages">
<a title="EasyInflationSystem" href=
"popup.aspx?title=EasyInflationSystem&topic=feature_EasyInflationSystem" rel=
"icons" class="iconClick"><img title="EasyInflationSystem" alt=
"EasyInflationSystem" src="http://i50.tinypic.com/hwh0ud.png" /></a>
</div>
<div class="FeatureIconImages">
<a title="MaxLoadCapacity" href=
"popup.aspx?title=MaxLoadCapacity&topic=feature_MaxLoadCapacity" rel="icons"
class="iconClick"><img title="MaxLoadCapacity" alt="MaxLoadCapacity" src=
"http://i50.tinypic.com/hwh0ud.png" /></a>
</div>
<div class="FeatureIconImages">
<a title="Weight" href="popup.aspx?title=Weight&topic=feature_Weight" rel=
"icons" class="iconClick"><img title="Weight" alt="Weight" src=
"http://i50.tinypic.com/hwh0ud.png" /></a>
</div>
<ul id="FeatureIconNamesWrapper">
<li class="FeatureIconNames">ISO 6185-1</li>
<li class="FeatureIconNames">ISO 6185-1</li>
<li class="FeatureIconNames">ISO 6185-1</li>
<li class="FeatureIconNames">ISO 6185-1</li>
<li class="FeatureIconNames">ISO 6185-1</li>
</ul>
<div class="c1"></div>
</div>
CSS:
div#FeatureIconsWrapper {
background-color: #DEDEDE;
border-left: 1px solid white;
border-radius: 0 0 7px 7px;
padding-bottom: 10px;
width: 236px;
}
div.FeatureIconImages, div#FeatureIconNames {
font-size: 14px;
font-weight: bold;
line-height: 20px;
padding-left: 7px;
padding-top: 17px !important;
}
div.FeatureIconImages {
padding-left: 7px;
padding-top: 20px;
}
div.FeatureIconImages {
width: 60px;
}
ul#FeatureIconNamesWrapper {
font-size: 14px;
font-weight: bold;
padding-right: 40px;
position: absolute;
top: 375px;
}
li.FeatureIconNames {
margin-bottom: 57px;
margin-left: 85px !important;
}