Skip to content
Advertisement

Footer not enlarging/expanding

I created a website, and I want to expand my footer because right now it looks like this: enter image description here

It should cover the whole website and I tried increasing the width, but that did not work.

This is the HTML/CSS of the footer:

JavaScript
JavaScript

I got the whole footer code from another source, and I tried copying and pasting the code exactly it is, but for some reason, I cannot get it to expand more idk why. Can you guys please help?

When you run the above code, it outputs fine but on my end, I am getting the output in the picture I sent above.

Is the problem occurring because I may be overriding other CSS elements with it? I have multiple CSS files and I tried changing the names of the footer CSS class but it still didn’t work.

Advertisement

Answer

https://repl.it/@HussainOmer/SantaKausgithubio-3#index.html

You shared your code in your previous question. You have body with display grid property.

  • First, seems you don’t use grid at all, you can just delete this property.
  • Also you can set place-items to stretch to achieve the same effect.
  • Seems just setting width of the footer to 100% works fine too

screenshot:

Advertisement