CSS Design Issue Advice

Dpinkston91

Solid State Member
Messages
16
Location
Arkansas City, KS
So when I do...

body {
background-color: black;
}

It stretches out on the left side of the page. There is absolutely no margin left.

I'm using...

div {
width: 1358px; (Because I want to style a box at only the top of the page)
}

Which stretches just far enough to the right side of the page not to require a scroll-bar, but it will not cover the white margin on the left-hand side of the page. Any suggestions?
 

Attachments

  • 2021-02-22 (1) (Edited).png
    2021-02-22 (1) (Edited).png
    176 KB · Views: 3
  • 2021-02-22 (2).png
    2021-02-22 (2).png
    110.8 KB · Views: 3

kalju

In Runtime
Messages
254
Location
EU
If you provide the address of this page, you can probably help.
At the moment, it is quite difficult to guess what exactly needs to be changed or added, because there are many possibilities.
But if you only want to change the background of one part of the web page, as in the first image, you certainly can't change the body background color, because this command changes the whole web page background.
 
Top