+ 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!
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)
+ 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.
+ 4
Np, sorry I couldn't help your further.
+ 2
Can I see the website?
+ 2
So, you are having trouble with the bgcolor?
+ 2
On sololearn it is black... Are you talking about when you save it as a .html and load it on your browser??
+ 2
Let me insert it into my browser to see if i have the same problem.
+ 2
Does it look like this? https://imgur.com/a/75cvtTQ
+ 2
Alright, lemme take a look at the code.
+ 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.
+ 1
DrChicken24 ok, thank you for help!ā¤
+ 1
thank you Kirk Schafer!:)
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
0
DrChicken24 yes
0
DrChicken24 I make it to be black, but is white
0
DrChicken24 yes, just bg color don't aply, the rest is applied
0
DrChicken24 ok
0
DrChicken24 yes
0
ok