Author Topic: Confused...  (Read 1129 times)

0 Members and 1 Guest are viewing this topic.

Offline pricey

  • Member
  • *
  • Posts: 23
Confused...
« on: November 28, 2017, 10:02:05 AM »
Hello all.
New to html etc but my site http://www.llanelliweather.co.uk/ looks ok via a desktop view but when i view it via a tablet or mobile the dials are centered but all objects below it are too far to the left. Any thoughts greatly appreciated.

Thanks
Steve.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Confused...
« Reply #1 on: November 28, 2017, 10:21:26 AM »
Hi Steve,
the gauges are loaded as an object (and iframe), but the important thing is that this object has a fixed width of 1400. This means that it is centered, but centered to the 1400px.This means that it only looks nice and centered on a monitor with 1400px width resolution. You would need to set it to 100%, so that it stretches to the full width of the monitor/display.

Offline pricey

  • Member
  • *
  • Posts: 23
Re: Confused...
« Reply #2 on: November 28, 2017, 10:27:58 AM »
Ok Jachym thanks for the reply

So i just alter the code below to 100% ?

<object data=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm width="1400" height="1100">
         <embed src=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm width="1200" height="1000"> </embed>

Steve

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Confused...
« Reply #3 on: November 28, 2017, 10:45:30 AM »
Yes, but use the style attribute, the fixed CSS specification is outdated

<object data=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm style="width:100%;height:1100px">
         <embed src=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm style="width:90%;height:100px;margin:0 auto"> </embed>

Offline pricey

  • Member
  • *
  • Posts: 23
Re: Confused...
« Reply #4 on: November 28, 2017, 11:11:48 AM »
ok thanks Jachym i'll give it a go.

Cheers Steve.

Offline pricey

  • Member
  • *
  • Posts: 23
Re: Confused...
« Reply #5 on: November 29, 2017, 07:44:17 AM »
Thanks Jachym...that did the trick, top man

Thanks a lot,
Steve.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Confused...
« Reply #6 on: November 29, 2017, 08:01:07 AM »
You´re welcome

 

anything