+ 4

Why my web page working abnormal?

When I open the code in Sololearn it works fine but when I open it in chrome it leaves a huge space from top? https://code.sololearn.com/WY5RFU7n60Zf/?ref=app My web:https://norwegian-attractio.000webhostapp.com/ Why it leaves huge space from top?

12th Apr 2020, 5:48 PM
Souptik Nath
Souptik Nath - avatar
64 odpowiedzi
+ 6
No: by removing the link closing tag you will see no changes ^^ Non breakable spaces are spaces that cannot be break by a new line (since there's no real spaces just before or just after), and that are not collapsed by html... So render engine encounter a printable char (even uf it's a space) in you head section, and try to correct that (head should not have printable content), so they prepend it at start of the document. As you have an invisible space inserted (and not just collapsable spaces wich would make the line ignored) you get a line-height space at top. Removing the non-breakable space would not remove all the top space, but will reduce it: you have to play with margins of your document first elements (including nested ones) and particularly those of the h1, if you want more reduction (by default the title tagd family has a relative big amount of margin top and bottom, defined relatively to the font-size ;P
12th Apr 2020, 7:25 PM
visph
visph - avatar
+ 2
SOUPTIK NATH You should make responsive page.
12th Apr 2020, 5:56 PM
A͢J
A͢J - avatar
+ 2
SOUPTIK NATH I can't show you but you can watch videos on youtube about this.
12th Apr 2020, 6:04 PM
A͢J
A͢J - avatar
+ 2
محمد المقابي Don't post your problem in others questions. SOUPTIK NATH Don't help anyone if it is not related to your questions.
14th Apr 2020, 3:37 PM
A͢J
A͢J - avatar
+ 2
SOUPTIK NATH Nothing will happen but you will get response by only them who are following this thread and I don't think that they can give answer every time. Hope you understand.
16th Apr 2020, 8:16 AM
A͢J
A͢J - avatar
+ 1
It works fine in Sololearn
12th Apr 2020, 5:57 PM
Souptik Nath
Souptik Nath - avatar
+ 1
in sololearn the quiz is really good. well done
12th Apr 2020, 5:57 PM
SV5lp27
SV5lp27 - avatar
+ 1
SOUPTIK NATH You can check using Inspect Element in Chrome Browser. This is best option to debug code.
12th Apr 2020, 6:01 PM
A͢J
A͢J - avatar
+ 1
SOUPTIK NATH You can do so many things using Inspect Element. Just Learn how to do because it's very important in web development.
12th Apr 2020, 6:14 PM
A͢J
A͢J - avatar
13th Apr 2020, 7:34 AM
narayanaprasad
narayanaprasad - avatar
+ 1
SOUPTIK NATH line 6 to 21 of "your" code (if it's yours, how could you wrote something without knowing its effect? ;P) defines a linear-gradient background and animate its position (moving the reference origin of the gradiant will act as if colors makes transition inside it).
13th Apr 2020, 8:47 AM
visph
visph - avatar
+ 1
visph ,AJ #Level 20 End Day Which javascript loads faster internal or external? Cause my attached code is taking longer time than usual to load the javascript in Web browser My web site link also attached please check
14th Apr 2020, 5:53 AM
Souptik Nath
Souptik Nath - avatar
+ 1
SOUPTIK NATH Both will take same time. Better to use inside body tag before closing the tag.
14th Apr 2020, 6:06 AM
A͢J
A͢J - avatar
+ 1
Theorically internall (embeded) scripts loads faster than external (linked) ones... but the difference shouldn't be visible: the amount of data is quite the same in both cases but there's less http requests to do for the browser if there's less linked file (one request by file linked, any kind of type -- images, css, js... and anything that you can embed in an... <embed> tag through its 'src' attribute); and requests are the bottleneck of the communication client / server (that's what cause lags, and no noticeable change from high bitrates to very high bitrates for a standard web pages browsing... So, it would mainly depends a few of your (or this of visitor) internet provider, and mainly of your hosting provider (some free of charge and low-cost offers are limited in bandwith)...
14th Apr 2020, 6:08 AM
visph
visph - avatar
+ 1
SOUPTIK NATH Why are you keep asking different question in your own threads?
16th Apr 2020, 7:39 AM
A͢J
A͢J - avatar
+ 1
visph Means how can I store question sets cause if I store it in array then browser is taking longer time to load the scripts
16th Apr 2020, 7:48 AM
Souptik Nath
Souptik Nath - avatar
+ 1
The best way for everybody is to open a new question-thread, and mention anybody you want from here ;) Anyway, I don't know if mentions are working in question posts (but that would be a shame), because better way is also to not post in your own thread since anybody had answered: if you do so, your thread will not appears in the "not answered" questions list and some potentials helpers could be lost ^^
16th Apr 2020, 8:28 AM
visph
visph - avatar
+ 1
There is no problem I can see if works well with chrome
16th Apr 2020, 9:23 AM
Rajb957
Rajb957 - avatar
+ 1
Ok visph I didn't notice that
22nd Apr 2020, 9:54 AM
Rajb957
Rajb957 - avatar
0
actually i don’t know. maybe the height and the lenght are adaptes for sololearn format but not for chrome. with which support are you using sololearn ?
12th Apr 2020, 5:57 PM
SV5lp27
SV5lp27 - avatar