
Aug 8th, 2006, 19:40
|
 |
Moderator
|
|
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,950
Thanks: 0
Thanked 30 Times in 30 Posts
|
|
|
Re: Image Spacing! Help!
<div style="float:left; border-style:solid; border-width:2px; border-color:black; padding-right:2px">{icon}</div>
The {icon} confuses me. That is for CSS not HTML. Since you are applying a style inline you don't need em. What you should do is place the CSS in the head of your document or link to an external style sheet:
<style type="text/css">
#foo {
float:left;
borde:solid 2px #000;
padding:0 2px 0 0;
}
</style>
<div id="foo">
<img src="" height="" width="" alt="" />
</div>
|