The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How would i lock percentage of website or at least background.

2 posters

Go down

Solved How would i lock percentage of website or at least background.

Post by Fairfox1 November 18th 2014, 11:43 pm

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
avatar
Fairfox1
New Member

Posts : 18
Reputation : 1
Language : enlish

http://ffda.forumotion.co.uk/

Back to top Go down

Solved Re: How would i lock percentage of website or at least background.

Post by Ange Tuteur November 19th 2014, 12:12 am

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
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 */
}
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: How would i lock percentage of website or at least background.

Post by Fairfox1 November 19th 2014, 1:03 am

Thank you
avatar
Fairfox1
New Member

Posts : 18
Reputation : 1
Language : enlish

http://ffda.forumotion.co.uk/

Back to top Go down

Solved Re: How would i lock percentage of website or at least background.

Post by Ange Tuteur November 19th 2014, 1:08 am

You're welcome. How would i lock percentage of website or at least background. 1852325475

Topic archived

If you have anymore questions do not hesitate to open a new topic. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top


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