CSS issue with notepad++

Matador -  
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

1 réponse

jee pee Posted messages 9408 Registration date   Status Modérateur Last intervention   9 957
 
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
<> ▼
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

0
MATADOR
 
Merci, cela me serait très utile mais si je mets le même programme ici de Sublime Text (même mise en forme), cela fonctionnera sur Notepad++ ?
0
jee pee Posted messages 9408 Registration date   Status Modérateur Last intervention   9 957 > MATADOR
 
Sublime Text and Notepad++ are text editors, and we can use both interchangeably. But we can also simply use Notepad, which is the simplest text editor possible; it's the same, we can develop our site there, along with .css and .html files.
0
MATADOR > jee pee Posted messages 9408 Registration date   Status Modérateur Last intervention  
 
Alright, thanks, I read through the tutorial and indeed, I hadn't added the CSS file in the HTML file! Obviously, it makes sense that it wasn't working :/
+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?
0
telliak Posted messages 3652 Registration date   Status Membre Last intervention   885 > MATADOR
 
Hi,
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.
0