Skip to content
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

You are viewing a single comment. View All
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