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.

CSS code for background centering

View previous topic View next topic Go down

Solved CSS code for background centering

Post by Empire_1 on November 21st 2011, 6:40 pm

https://i48.servimg.com/u/f48/16/08/64/60/winter10.jpg

I would like to center the image above as my background and make it fit to screen
CSS code for phpBB3

Thanks Smile


Last edited by Empire_1 on November 21st 2011, 7:04 pm; edited 1 time in total

Empire_1
Active Poster

Male Posts : 1391
Reputation : 124
Language : English, Spanish, Mandarin, C++
Location : Summoner's Rift

Back to top Go down

Solved Re: CSS code for background centering

Post by Guest on November 21st 2011, 6:58 pm

Hi Empire! Wink

If I understand good:
Code:
body{
background-image: url(http://i48.servimg.com/u/f48/16/08/64/60/winter10.jpg);
background-position: center;
}

Here are all possible values:
background-position: left, center, right, top, center, bottom, inherit. Wink

Guest
Guest


Back to top Go down

Solved Re: CSS code for background centering

Post by Empire_1 on November 21st 2011, 7:04 pm

Wonderful

Much appreciated Smile

*solved

Empire_1
Active Poster

Male Posts : 1391
Reputation : 124
Language : English, Spanish, Mandarin, C++
Location : Summoner's Rift

Back to top Go down

Solved Re: CSS code for background centering

Post by Sanket on November 21st 2011, 7:22 pm

Since this thread is marked solved, I will archive this thread.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

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