How would i lock percentage of website or at least background.
2 posters
Page 1 of 1
How would i lock percentage of website or at least background.
I wanted to put a scrip on forumotion so no matter if person using site is on 90% zoom or 110% zoom via their browser, it will still be the same. or at every least just for background [ i am using a image background and for people using a different % than is set 2 its duplicating which i do not want.
can anyone help
can anyone help
Re: How would i lock percentage of website or at least background.
Hello Fairfox1,
You can use the CSS background-size property to automatically resize the background image to the viewpoint of the browser.
Try adding this to your stylesheet :
Administration Panel > Display > Colors > CSS stylesheet
You can use the CSS background-size property to automatically resize the background image to the viewpoint of the browser.
Try adding this to your stylesheet :
Administration Panel > Display > Colors > CSS stylesheet
- Code:
body {
background-repeat:no-repeat; /* prevent tiling */
background-attachment:fixed; /* fixes the background */
background-size:100% 100%; /* sets the background image X/Y to the viewpoint X/Y */
}
Re: How would i lock percentage of website or at least background.
You're welcome.
Topic archived
If you have anymore questions do not hesitate to open a new topic.
Topic archived
If you have anymore questions do not hesitate to open a new topic.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum