Author Topic: Help needed...  (Read 676 times)

0 Members and 1 Guest are viewing this topic.

Offline pricey

  • Member
  • *
  • Posts: 24
Help needed...
« on: January 11, 2017, 12:57:57 PM »
Hello all from a relative newbie...

Can't figure out how to sort my site out when viewed via a mobile or tablet. When i view it using a Pc, and firefox, all seems to be central in the page. When viewed via a mobile or tablet, it is all aligned to the left except the banner. Any ideas?

http://www.llanelliweather.co.uk/

Thanks.
Steve.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Help needed...
« Reply #1 on: January 11, 2017, 01:08:22 PM »
Hi Steve,
you are using an "object" with a fixed width and height.

Code: [Select]
<object data=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm width="940" height="950"> <embed src=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm width="900" height="950"> </embed> Error: Embedded data could not be displayed. </object>
You could try this:

Code: [Select]
<object data=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm width="940" height="950" style="margin:0 auto"> <embed src=http://www.llanelliweather.co.uk/steelseries/gauges-ss-basic.htm width="900" height="950"> </embed> Error: Embedded data could not be displayed. </object>

Offline pricey

  • Member
  • *
  • Posts: 24
Re: Help needed...
« Reply #2 on: January 11, 2017, 02:03:36 PM »
Thanks Jachym.

Tried that but still the same on my phone. Wish i knew more about code  ](*,) ](*,)

Steve.

Ps like the Meteotemplate.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Help needed...
« Reply #3 on: January 11, 2017, 02:22:38 PM »
Not sure how these objects/iframes scale, its not the best way of doing this, maybe inserting the code of the frame directly would make it better