Jump to content
Killersites Forums

Backgound Image Position

Recommended Posts

Hello All,


I would like to position a background image, as a watermark really into a Div. I would like it in the cemter both vertically and horizontally no matter what other conten is in the Div, I'm using the following in my CSS code



#news {

width: 205px;

color: #FFFFFF;

padding: 5px 5px 10px 5px; /*top right bottom left - clockwise sizing*/

float: left;

background-image: url(../images/quote.gif);

background-repeat: no-repeat;

background-attachment: scroll;

background-position: center;

background-position: center middle;



Thank you as always,


Best wishes


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...