+ 1

Why when I reload my website, the css setings (code) apear just for a fraction of second?

Edit: I think that just background color just don't load, but i don't understand why. New edit:yeah, background color don't load, but why, can someone tell me why? New edit: background color load just for a fraction of second, why?:( p.s.:if it help, I use google chrome to view the website!

6th May 2018, 10:08 PM
Dracusorul
Dracusorul - avatar
19 Respostas
+ 6
Put this before </body> <script> alert(document.all[0].innerHTML); </script> The document engine appears to be confused about tags that normally appear in <body> and is starting the <body> tag for you after the </title> tag. Browsers are "helpful" like this a lot. Try moving everything between </title> and <link ...> to the <body> section. (that is, move the <center> and <img ..> tag, including the breaks)
7th May 2018, 12:54 AM
Kirk Schafer
Kirk Schafer - avatar
+ 4
I can't figure it out, as I don't excel in CSS currently... But I think it might be because you wrote this in CSS, not the most current, and HTML5 doesn't support it? That is what I can come up with, but if someone else who has further knowledge of CSS could help that would be great.
6th May 2018, 11:22 PM
DrChicken24
DrChicken24 - avatar
+ 4
Np, sorry I couldn't help your further.
6th May 2018, 11:24 PM
DrChicken24
DrChicken24 - avatar
+ 2
Can I see the website?
6th May 2018, 10:56 PM
DrChicken24
DrChicken24 - avatar
+ 2
So, you are having trouble with the bgcolor?
6th May 2018, 11:00 PM
DrChicken24
DrChicken24 - avatar
+ 2
On sololearn it is black... Are you talking about when you save it as a .html and load it on your browser??
6th May 2018, 11:02 PM
DrChicken24
DrChicken24 - avatar
+ 2
Let me insert it into my browser to see if i have the same problem.
6th May 2018, 11:06 PM
DrChicken24
DrChicken24 - avatar
+ 2
Does it look like this? https://imgur.com/a/75cvtTQ
6th May 2018, 11:13 PM
DrChicken24
DrChicken24 - avatar
+ 2
Alright, lemme take a look at the code.
6th May 2018, 11:15 PM
DrChicken24
DrChicken24 - avatar
+ 1
Ok, so what I am seeing currently is when you put it into <style> on the HTML document, it is making the text white, but all of the other CSS code is being ignored.
6th May 2018, 11:19 PM
DrChicken24
DrChicken24 - avatar
+ 1
DrChicken24 ok, thank you for help!ā¤
6th May 2018, 11:24 PM
Dracusorul
Dracusorul - avatar
+ 1
thank you Kirk Schafer!:)
7th May 2018, 12:57 AM
Dracusorul
Dracusorul - avatar
0
DrChicken24 its like this, but css is taken from my computer with <link type = "text/css" rel = "stylesheet" href = "style.css"> https://code.sololearn.com/W7ee6NFcsFu6/?ref=app
6th May 2018, 10:59 PM
Dracusorul
Dracusorul - avatar
6th May 2018, 11:01 PM
Dracusorul
Dracusorul - avatar
0
DrChicken24 I make it to be black, but is white
6th May 2018, 11:01 PM
Dracusorul
Dracusorul - avatar
0
DrChicken24 yes, just bg color don't aply, the rest is applied
6th May 2018, 11:04 PM
Dracusorul
Dracusorul - avatar
6th May 2018, 11:06 PM
Dracusorul
Dracusorul - avatar
6th May 2018, 11:14 PM
Dracusorul
Dracusorul - avatar
0
ok
6th May 2018, 11:16 PM
Dracusorul
Dracusorul - avatar