+ 1

How to share my website in an iframe on sololearn so that it takes full width and also responsive just like original

23rd Nov 2020, 8:59 PM
Bhavya
Bhavya - avatar
12 Antworten
+ 7
This happens if the website does not allow you to access their website from iframes. Try doing the same what I mentioned above
24th Nov 2020, 5:12 PM
Simba
Simba - avatar
+ 5
Bhavya Try hosting your website to Github. Better to take a look at this thread. Everything was explained clearly https://www.sololearn.com/Discuss/2564663/?ref=app
24th Nov 2020, 4:05 AM
Simba
Simba - avatar
+ 3
<iframe width="100%" height="350" src="url"></iframe>
23rd Nov 2020, 9:28 PM
Jayakrishna 🇮🇳
+ 2
It may be because of "Due to security issue some Web site not supports in iframe.." If yes, about that reason, this may help you to understand it.. Example : this working <iframe height="350" width="100%" src="https://www.sololearn.com/"></iframe> But not all works.... https://www.sololearn.com/Discuss/2471976/?ref=app
23rd Nov 2020, 9:50 PM
Jayakrishna 🇮🇳
+ 1
Okay let me try Jayakrishna🇮🇳
23rd Nov 2020, 9:40 PM
Bhavya
Bhavya - avatar
+ 1
But i don't think height would be 350
23rd Nov 2020, 9:40 PM
Bhavya
Bhavya - avatar
23rd Nov 2020, 9:42 PM
Bhavya
Bhavya - avatar
+ 1
Ok thanks for the answer, I'll see if i can update my website to make it work with iframe, haven't really used iframes before lol except for YouTube videos
23rd Nov 2020, 9:52 PM
Bhavya
Bhavya - avatar
+ 1
its done with the css . take a look at my code https://code.sololearn.com/WiK2aNxjZx4J/?ref=app
23rd Nov 2020, 9:55 PM
Med Amine Fh
Med Amine Fh - avatar
+ 1
Simba It's already hosted on vercel, i just need an iframe https://covid-tracker-beta.vercel.app/
24th Nov 2020, 3:05 PM
Bhavya
Bhavya - avatar
+ 1
Oh yes it does use localStorage to retain dark/light theme, so maybe that's causing the problem, I'll see if i can add error handling for reading and writing localStorage
24th Nov 2020, 6:27 PM
Bhavya
Bhavya - avatar
0
I'm getting error with javascript, so will worry about css after making the embed work Med Amine Fh
23rd Nov 2020, 9:57 PM
Bhavya
Bhavya - avatar