Skip to content
← Back to Community
how do i change the complete background color
Profile icon
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
Profile icon
ManishKumar223
Profile icon
rahulr27
Profile icon
CHRISTOPHERCA78
Profile icon
KarleneOliva
Profile icon
OliverWright10
Profile icon
PrayasJindal
Profile icon
NoorArslan
Profile icon
LittleKittie
Profile icon
ELIMCKNIGHT
Profile icon
AbbieHawkins
Comments
hotnewtop
Profile icon
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.

body { background: red; }
Profile icon
Aqtion

Or you could do
html {
background: red
}

@jibbeiscool

Profile icon
Coder100

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

Profile icon
Aqtion
Profile icon
jibbeiscool

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

Profile icon
Coder100

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

<body> <melding> (rest of the form code) </melding> </body>

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

body { margin: 0; }

This just removes the margin (white bars).

@jibbeiscool

Profile icon
jibbeiscool

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

Profile icon
Coder100
Profile icon
minniexx

yea it works

Profile icon
GulliverLloydJo

tuy57