You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, May 24th 2019, 5:45am

responsitve width & height

I create a Layer element in .xml as below:

```


<layer name="logo_btn"
keep="true"
align="lefttop"
url="%SWFPATH%/skin/icon.png" crop="0|282|190|80"
width="100" height="80" scale="0.7" x="6" y="6" />
```
How can I set the width and height in mobile and pc,
such I want the 100px in mobile and 200px in pc,
or use the media query @media and screen (max-400px) {...}

spacerywirtualne

Professional

Posts: 866

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Friday, May 24th 2019, 9:42am

Source code

1
width.normal="200" height.normal="120" width.mobile="100" height.mobile="80"




doc

Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*