Ask coding questions

← Back to all posts
How would I add a banner to the top of my page and then change the colour of it? (HTMl)
CharlotteJoanJo

I would like to have the top portion of the page a different color than the rest of it

Voters
CharlotteJoanJo
Comments
hotnewtop
Coder100

Sure:

And then, in your style.css:

Ideally, your code should now be:

Whacko

This is what you need:

Tell me if you need anymore.

Coder100

reee why do you keep on putting the style.css in the bottom of the page?!!? @JavaMaster1

Whacko

@Coder100 Why does it matter?

Coder100

@JavaMaster1 convention is to put it in <head>

Whacko

@Coder100 Well, that's not how I do it. He can just take the code and put it wherever he wants.

Coder100

¯\_(ツ)_/¯ ok then @JavaMaster1

Whacko

ლಠ益ಠ)ლ @Coder100

Coder100