4 replies [Last post]
31337
Offline
Regular
Last seen: 15 years 48 weeks ago
Joined: 2007-02-24
Posts: 11
Points: 0

How do I move the background image "img/bkg.png" to be lower?
http://gmgene-bravo.ifastnet.com/

#bheader { width:769px; height:86px; background:#FFFFFF url(img/bkg.png) repeat-x; margin: 20; border-top:2px solid #050505; border-bottom:2px solid #050505; border-left:3px solid #050505; border-right:3px solid #000; color: #515151;}

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 15 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Something like

Something like this?

#bheader { width:769px; height:86px; background:#FFFFFF url(img/bkg.png) 0 65px repeat-x; margin: 20; border-top:2px solid #050505; border-bottom:2px solid #050505; border-left:3px solid #050505; border-right:3px solid #000; color: #515151;}

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

31337
Offline
Regular
Last seen: 15 years 48 weeks ago
Joined: 2007-02-24
Posts: 11
Points: 0

I used:

I used: background-position:bottom; it seems to work.
But, thanks for the help any way, I will check it out maybe it will work better.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 15 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Using bg-position: bottom

Using bg-position: bottom will only place the bottom of your image at the bottom of your element. I took your question to mean that you wanted the image to be further down that that, so use a larger pixel value as I have done.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 3 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Title

Title edited.
<############## removed.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me