I embedded a script into my website so I can have a rotater. The script is located at http://www.htmlgoodies.com/beyond/javas ... b-Site.htm
My website is http://www.globalwarmingllc.com
The script unmodified works well on large screens but doesn't fit in mobile devices. I had trouble modifying it I am using a templated design with CSS and the metatags I found to fit across all devices didn't work. I finally used something like "image: full" and it works nicely on mobile devices now. The problem is it doesn't need to be that big on desktop monitors. (Although I have to say, my artwork is exquisite)
Is there a simple way to use the image full idea only up to the actual size of the image (say 500X600 pixels) and have it centered on the page?
JS make image screen size upto a certain size. (Solved)
-
- Posts: 210
- Joined: Thu 18 Nov 2010, 05:39
- Location: The Island Of Long (NY, USA)
JS make image screen size upto a certain size. (Solved)
Last edited by chapchap70 on Sun 07 Feb 2016, 03:43, edited 1 time in total.
Hello @ChapChap70
As far as I know, and that's very little in web design, at the server side you detect the device on the other side where you will then generate the appropriate format; mobile/non-mobile. This is often seen where a "some-site" URL you type on your mobile device is changed to 'm.some-site.." because of that detection sequence.
Hope that helps.
P.S. Your participation is requested, here.
As far as I know, and that's very little in web design, at the server side you detect the device on the other side where you will then generate the appropriate format; mobile/non-mobile. This is often seen where a "some-site" URL you type on your mobile device is changed to 'm.some-site.." because of that detection sequence.
Hope that helps.
P.S. Your participation is requested, here.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
I would try
or
or
em
or
%
Code: Select all
<img src="..." style="max-width:500px;"/>
Code: Select all
<img src="..." style="max-height:600px;"/>
em
or
%
-
- Posts: 210
- Joined: Thu 18 Nov 2010, 05:39
- Location: The Island Of Long (NY, USA)