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.

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

View previous topic View next topic Go down

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

Post by Fairfox1 on 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

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 on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

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

Thank you

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 on November 19th 2014, 1:08 am

You're welcome.

Topic archived

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

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.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