Ask coding questions

← Back to all posts
how do i change the complete background color
jibbeiscool

how do i change the complete background color cause i changed the background color but i cant change the complete background color like ther is still a white bars

Voters
HAYAABUELOUN
EricArraiga
AlexanderMunte1
MakaylaKuhns
PatrickSalek
DakshTamoli
JoyisGrissom
JakobCampa
VioletRymszewicz
abassi
Comments
hotnewtop
Coder100

Hello, to change the entire background color of the page, you will have to change the body's background.

Here, we have changed the background to red.

Aqtion

Or you could do
html {
background: red
}

@jibbeiscool

Coder100

yes, but its best not to change the HTML tag. (It's redundant) @kbadrinath_tcsp

Aqtion

true @Coder100

jibbeiscool

Im sorry if i wasnt clear enough i was talking about the contactfile.html file @Coder100

Coder100

Hello, for contactfile.html remember to add a <body> tag enclosing all of the tags. So it would become

Also, the white bars are because of margin. In your css for the form, add:

This just removes the margin (white bars).

@jibbeiscool

jibbeiscool

Thx ill check Tomorrow if iT works cause im on my phone right now so ya but thx @Coder100

Coder100