我希望做的东西看起来像这样:CSS/HTML:酒吧/桌上的文字?
http://img291.imageshack.us/img291/5571/bartablestyling.png
(现在我只有在顶部那个酒吧)
当我尝试写文,它就会下profilepicture。 我不想使用float:left。
我该如何制作一张表格,使得文本和我绘制的红色箭头一样,我想知道如何调整它之间的宽度?
这里是我的代码现在:
<div style="background-image: url(images/notificationShelfBg4.png);
background-repeat: repeat-x;
background-position: bottom; width: auto;">
<img src="<?php if(!empty($vP["photo_thumb"])) { echo "images/profileimages/".$vP["photo_thumb_small"]; }else{ echo "images/profileimages/noPhoto_thumb.jpg"; } ?>" style=" border: 2px solid #CCC; margin-right: 5px; margin-left: 15px; margin-bottom: 2px;">
</span>
</span>
</a>
</div>
为什么你不希望使用'浮动:左;'?另外,我们不需要看到您的PHP代码就像它生成的标记一样。 – 2010-08-30 13:58:01
因为然后背景图片,只为我插入的文本背景和图片太.. – Karem 2010-08-30 13:59:31
我不知道我明白,但我认为你可以解决这个问题'float:left;' - 一切在酒吧。 – 2010-08-30 14:04:32