I'm 100% new to CSS, so I'm confuddled as to how to make the background-image in my body style to always be positioned in the center of the browser, regardless of the browser resolution. Can anyone tell me how?
Thanks and cheers!
skymonkier
Position center, always?
Page 1 of 11 Replies - 295 Views - Last Post: 03 August 2012 - 09:36 PM
Replies To: Position center, always?
#2
Re: Position center, always?
Posted 03 August 2012 - 09:36 PM
You will need to use a couple CSS styles to get the effect you are looking for. Below are the styles along with the values that can be used for each.
Here is a simple example that may help.
background-image: {url | none | inherit }
background-position: x:[%|px|left|center|right] y:[%|px|top|center|bottom]
background-attachment: { scroll | fixed | inherit }
background-repeat: { repeat | repeat-x | repeat-y | no-repeat | inherit }
Here is a simple example that may help.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|