The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

how to center background img

2 posters

Go down

how to center background img Empty how to center background img

Post by fliper4o October 27th 2010, 2:55 pm

Code:
body {
    font-family: Verdana,Arial,Helvetica,sans-serif;
    color: #888888;
    background-color: #177769;
    background-image: url('http://psp-bg.net/wp-content/themes/Journic/images/Bg.jpg');
    background-attachment: fixed;
    font-size: 10px;
    height: auto;
    padding: 10px 0px;
    }
and how to center the background img?
avatar
fliper4o
Forumember

Male Posts : 120
Reputation : 0
Language : Bulgarian

http://fliper4o.forumotion.net/

Back to top Go down

how to center background img Empty Re: how to center background img

Post by newbieQ October 27th 2010, 2:59 pm

background-position property.
http://www.w3schools.com/css/pr_background-position.asp

Ex:
Code:
background-position: center center;

newbieQ
newbieQ
Forumember

Posts : 57
Reputation : 20

Back to top Go down

how to center background img Empty Re: how to center background img

Post by fliper4o October 27th 2010, 3:07 pm

and how to make ONLY ONE CENTERD BACKGROUND IMG???
see how it's: http://fliper4o.forumotion.net/
Code:
body {
   font-family: Verdana,Arial,Helvetica,sans-serif;
   color: #888888;
   background-color: #177769;
   background-image: url('http://psp-bg.net/wp-content/themes/Journic/images/Bg.jpg');
        background-position: center;
   background-attachment: scroll;
   font-size: 10px;
   height: auto;
   padding: 10px 0px;
   }
avatar
fliper4o
Forumember

Male Posts : 120
Reputation : 0
Language : Bulgarian

http://fliper4o.forumotion.net/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum