CSS issue with notepad++
Matador
-
telliak Posted messages 3652 Registration date Status Membre Last intervention -
telliak Posted messages 3652 Registration date Status Membre Last intervention -
Hello,
I have the ambition to create a website, but the problem is I'm stuck on CSS...
Indeed, I’m coding on an HTML page and a separate file for the CSS, apparently it's better to do this, I watched some YouTube videos but they're too old and my version of Notepad++ is recent, so the formatting is different...
If I put:
Banner1 {
Background-color: #.....;
.....
}
It doesn't work (while doing a div on my HTML page)
I've tried everything with parentheses and other things, but nothing works
Does anyone have a solution?
Thank you in advance
I have the ambition to create a website, but the problem is I'm stuck on CSS...
Indeed, I’m coding on an HTML page and a separate file for the CSS, apparently it's better to do this, I watched some YouTube videos but they're too old and my version of Notepad++ is recent, so the formatting is different...
If I put:
Banner1 {
Background-color: #.....;
.....
}
It doesn't work (while doing a div on my HTML page)
I've tried everything with parentheses and other things, but nothing works
Does anyone have a solution?
Thank you in advance
1 réponse
Hello,
Notepad++ is a text and source code editor; it does not interfere with the execution of your web page.
Perhaps you did not follow the right approach, meaning to follow a proper HTML/CSS tutorial instead of trying to watch a video about a specific case, which can only be understood if one has the basics. To acquire these basics, see for example: https://openclassrooms.com/fr/courses/1603881-apprenez-a-creer-votre-site-web-avec-html5-et-css3/1605060-mettez-en-place-le-css
To answer you, we need you to provide the CSS file and the corresponding HTML page.
PS: For formatting the source code, above the message editing area, there are icons for text enhancement. The one that looks like
Notepad++ is a text and source code editor; it does not interfere with the execution of your web page.
Perhaps you did not follow the right approach, meaning to follow a proper HTML/CSS tutorial instead of trying to watch a video about a specific case, which can only be understood if one has the basics. To acquire these basics, see for example: https://openclassrooms.com/fr/courses/1603881-apprenez-a-creer-votre-site-web-avec-html5-et-css3/1605060-mettez-en-place-le-css
To answer you, we need you to provide the CSS file and the corresponding HTML page.
PS: For formatting the source code, above the message editing area, there are icons for text enhancement. The one that looks like
<> ▼allows you to apply the format corresponding to the code's nature (C, Python, Shell, etc.) from a list of values. Here's a small tutorial: https://codes-sources.commentcamarche.net/faq/11288-les-balises-de-code
+If I understood correctly, for "id" it allows you to reference in the CSS, to give a name? :
<img.... id="logo"
And in the CSS
#logo ?
Can we modify the image?
To extend Jee Pee's response, I think you're lacking some basics that would help you better launch your project.
I suggest taking a step back by starting here and following the various steps provided.