Click to See Complete Forum and Search --> : Format text and images inside a DIV


TagUK2006
02-13-2009, 07:14 PM
Hi Guys,
Im trying to format some text links and images nside a div instead of using a table to get the layout I want..

I have tried and can space things the way I want between text links but the images sit slightly hugher than the text links and I want them all at the same level if you follow.

Here is my html for what I have and i wondered if someone could advice as to what CSS to add to format this properly.


<div align="right"><a href="pic.asp?<%= Server.HTMLEncode(MM_keepBoth) %>" style="margin-right:20px"><img src="mainImages/accept.png" border="0"/> View</a><a href="Getdetails.asp" target="_self" style="margin-right:20px"><img src="mainImages/email1.gif" border="0"/> Email</a><a href="default.asp"style="margin-right:20px"><img src="includes/Previous.gif" width="14" height="13" border="0"/>Go Back</a><a href="default.asp"></a></div>


Thanks Tag

Coyotelab
02-13-2009, 10:34 PM
Is this what are you trying to do?
<div align="right">
<a href="pic.asp?<%= Server.HTMLEncode(MM_keepBoth) %>" style="margin-right:20px">
<img src="mainImages/accept.png" border="0" align="absmiddle"/> View</a>
<a href="Getdetails.asp" target="_self" style="margin-right:20px">
<img src="mainImages/email1.gif" border="0" align="absmiddle"/> Email</a>
<a href="default.asp"style="margin-right:20px">
<img src="includes/Previous.gif" width="14" height="13" border="0" align="sub"/>Go Back</a><a href="default.asp"></a>
</div>

TagUK2006
02-14-2009, 05:10 AM
Yes thanks very much, I forgot about - align="absmiddle"

:-)