You are not logged in.

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: 863

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*