1 reply [Last post]
gary4u
gary4u's picture
Offline
Regular
India
Last seen: 28 weeks 5 days ago
India
Timezone: GMT+5.5
Joined: 2018-12-31
Posts: 15
Points: 23

Hi,

(Help needed for mobile banner portrait view)

I am uploading banner from my admin section thru PHP. The banner looks fine on the desktop top and mobile landscape view. But the mobile Portrait view does seems right , I would like the banner to reduce to fit in the mobile for portrait view.

Any help would be appreciated.

site - www.shoeshineindia.com

Thanks

Gary.J.S

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 10 hours 59 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9743
Points: 3822

Desktop broken too

It appears your viewport dimensions assume the largest is the width. When I size my browser to a portrait format, the viewport's height dimension is applied to the element's width as happens when your phone, etc. rotates between portrait and landscape.

Your css is scattered in multiple places and files (16 by quick count), and some files are minified which makes debugging a PITA.

I leave it to you to look for the errors, since you should know where to find the culprits. I sincerely suggest you scrap all that code as it is poorly written for such a simple page. Blame that godforsaken Bootstrap for most of your woes. It demands badly written html.

g

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.