Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS Help!
#4
The Ultimate CSS Reference Copyright © 2008 SitePoint Pty Ltd
Quote:By default, the background-image is placed at the top-left (background-position) of the element; it’s repeated along the x and y axes (background-repeat) and will scroll with the document. These are the default settings that apply if you haven’t explicitly set any others, and can be adjusted with the other background properties.
So you need
background-position: center top; /* same as 50% 0% */
to center the background image.

I don't think you can stretch a background image to make it 100% width, it is what width it is and displays pixel for pixel I think.
Reply


Messages In This Thread
CSS Help! - by lakaroth - 2014-01-30, 05:01:11
RE: CSS Help! - by shawn_a - 2014-01-30, 06:00:41
RE: CSS Help! - by lakaroth - 2014-01-30, 06:10:29
RE: CSS Help! - by Timbow - 2014-01-30, 06:54:41
RE: CSS Help! - by Timbow - 2014-01-30, 07:08:11
RE: CSS Help! - by shawn_a - 2014-01-30, 07:38:28
RE: CSS Help! - by lakaroth - 2014-01-30, 20:26:37
RE: CSS Help! - by lakaroth - 2014-01-30, 21:08:29



Users browsing this thread: 1 Guest(s)