The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to center background img

View previous topic View next topic Go down

how to center background img

Post by fliper4o on 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?

fliper4o
Forumember

Male Posts : 120
Reputation : 0
Language : Bulgarian

http://fliper4o.forumotion.net/

Back to top Go down

Re: how to center background img

Post by newbieQ on 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
Forumember

Posts : 57
Reputation : 20

Back to top Go down

Re: how to center background img

Post by fliper4o on 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;
   }

fliper4o
Forumember

Male Posts : 120
Reputation : 0
Language : Bulgarian

http://fliper4o.forumotion.net/

Back to top Go down

View previous topic View next topic Back to top


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