Hola tengo un problema cuando creo un archivo CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hola tengo un problema cuando creo un archivo CSS

Hago mi archivo html normal y creo un archivo CSS para darle estilo a mi html y nada de lo que escribo allí se ve reflejado en el navegador cuando refresco la página, no creo que este escribiendo los elementos mal porque me guío de un vídeo en Youtube, no se qué hacer... ¿ALGUIEN PUEDE AYUDARME?

2nd Feb 2022, 6:26 PM
Karol Rueda
Karol Rueda - avatar
5 Answers
+ 1
Maybe you misspelled css filename in <link> tag or the path is incorrect? Did you save the file before refreshing in browser? For simplicity save both html and css files in same folder. Suppose you name css file as styles.css then your link tag should look like : <link rel="stylesheet" href="styles.css"/> If that doesn't solve it, then show your code and folder structure
2nd Feb 2022, 6:33 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Muchas gracias, ya lo solucione, el problema era ése, no había relacionado los archivos✨
7th Feb 2022, 1:13 PM
Karol Rueda
Karol Rueda - avatar
0
Mi archivo de CSS tiene por nombre styles.css y está dentro de la carpeta donde tengo mi archivó index.html, no sé cuál es el error:( ayudame porfavor, no he podido terminar la página por ese error en CSS.
2nd Feb 2022, 6:59 PM
Karol Rueda
Karol Rueda - avatar
0
Please show HTML and CSS file. Muestra el archivo HTML y CSS
3rd Feb 2022, 2:10 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
Al principio de tu "index.html" deberías tener lo siguiente <link rel="stylesheet" href="../styles.css">
7th Feb 2022, 5:53 AM
Alfie Foo