Skip to main content
Known Participant
November 30, 2017
Answered

Index Page Not Responsive when accessed through https

  • November 30, 2017
  • 2 replies
  • 800 views

First of all   the site discussed here is NOT secured by a pay as you go authority but by cacert.org   So your broswer will NOT be happy

Ok on to the problem....  Mostly as a learning experience i have been setting up my web site to be "secure"   yes i know with cacert.org notbeing acceoted by all majopr broswers  I really am not  but I am not doin e-commerce  of evening using site to exchange email If I was I might put the money down .. that aside

The issue I have is I am 90% done with making this site responsive.     What has me baffled is that the standard view of the  index page is responsive  but the same page when views under https   loses columns  in Safari and Chrome  (but not in Opera   go figure haven't checked out firefox yet)

The site is kasdivi.com

Yes your browser will hate the https version 

any thoughts or insight would be appreciated

Jason

This topic has been closed for replies.
Correct answer Nancy OShea

If your assets are not on https, chances are very high that your browsers will block them for security reasons.  That means your CSS, scripts, etc... will fail to load properly.

As an example, you need to change the link to CSS from this:

http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

To this with https.  I would also move up  to BS 3.3.7 and include the integrity checks.  If you're going to use CDN hosted resources it's in your best interest to verify that the assets are exactly what they claim.

<!-- Latest compiled and minified Bootstrap CSS-->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!--latest jQuery JS-->

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

<!--Latest Bootstrap JS-->

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

2 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
November 30, 2017

If your assets are not on https, chances are very high that your browsers will block them for security reasons.  That means your CSS, scripts, etc... will fail to load properly.

As an example, you need to change the link to CSS from this:

http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

To this with https.  I would also move up  to BS 3.3.7 and include the integrity checks.  If you're going to use CDN hosted resources it's in your best interest to verify that the assets are exactly what they claim.

<!-- Latest compiled and minified Bootstrap CSS-->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!--latest jQuery JS-->

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

<!--Latest Bootstrap JS-->

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

Nancy O'Shea— Product User & Community Expert
Known Participant
December 1, 2017

Wow Nancy you nailed that one, again,....Great job.    I dint even think of that and is the end it makes a lot of sense.  I had a couple of non  https links..Fixed and all is great .  Big thanks on the tip on the upgrade to BS 3.3.7.  Your point makes alot of sense  I have gone back and forth to using my own assets and using from repository.   I have also been debating to the upgrade to BS 4

Nancy OShea
Community Expert
Community Expert
December 1, 2017

I would only upgrade to BS4 on new projects.  BS3 isn't going away.  It will be maintained to support older browsers that can't handle Flexbox layouts.

Nancy O'Shea— Product User & Community Expert
Preran
Community Manager
Community Manager
November 30, 2017

Am not sure about what you want displayed and what you don't on your website. Can you post screenshots of how it looks in Opera as compared to Safari and Chrome? I am guessing that there are lot of errors in your code that is causing this issue to happen.

Thanks,

Preran

Known Participant
December 1, 2017

Guess you didnt read the question or maybe i wasn't clear