-
May 8th, 2008, 10:27 AM
#1
-
May 8th, 2008, 02:41 PM
#2
Re: CSS - positioning an image
Firefox probably isn't picking up on the spaces too well, so replace them so that your file path looks like this
Code:
file:///C:/Documents%20and%20Settings/Mark/Desktop/outdated.gif
As for the positioning, maybe you should consider placing the image in the DIV itself or giving a little more space on the top and left to the image itself.
-
May 8th, 2008, 03:15 PM
#3
Re: CSS - positioning an image
It was the spaces that were the problem with Firefox. This is what I ended up with and it seems to work.
Thanks
Code:
.archive
{
BACKGROUND-IMAGE: url(file:///C:/Documents%20and%20Settings/Mark/Desktop/outdated.gif);
background-repeat: no-repeat;
BACKGROUND-POSITION: 5px center;
Padding-LEFT: 35px;
Padding-Right: 5px;
BACKGROUND-COLOR: silver;
BORDER: gray 2px solid;
WIDTH: 200px;
FONT-FAMILY: Arial, Verdana, 'Times New Roman';
FONT-SIZE: 8pt;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|