Hi,
thx for reply. I think I should give more info:
I have the following code:
Code:
<html>
<head>
<style>
.test
{
padding-right:20px;
width:100px;
background-color:lightBlue;
overflow:hidden;
white-space: nowrap;
background-image:url(http://lookup.gif);
background-repeat: no-repeat;
background-position:right;
background-attachment:fixed;
}
</style>
</head>
<body>
<div class="test">test div with padding</div>
</body>
</html>
Where lookup.gif is a small icon. Independent of the width of the div and the length of the text, I do not want the text running over the background image. I hoped that by giving a padding-right, there would be a space between the right-border and the text, with a result that it seems that the image is on top. When I put the image left and use a paddig-left this works fine, but I need the image right. Thx
Bookmarks