Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Extending footer all the way to the left

Edrol97

Bronze Coder
Hi all, I have this div that's not working correctly for me. I've tried things like left: 0; but that doesn't seem to work on this. This is the HTML and CSS I have for this section.

HTML:
<footer style="background-color: #ec1801;">
      <div id="roche1">
        <a href="https://www.facebook.com/house.of.lord.illustration1/" target="_blank"><img src="img/background/Facebook Logo.png" class="fa fa-facebook"></a>
        <a href="https://twitter.com/eliotlord1" target="_blank"><img src="img/background/Twitter%20Logo.png" class="fa fa-twitter"></a>
        <a href="https://www.instagram.com/house_of_lord_illustration/?hl=en" target="blank"><img src="img/background/Instagram logo.png" class="fa fa-instagram"></a>
    
       <a href="Home.html"><div class="title_text3">&#169 Eliot Lord 2024</div></a>
       <br>
      
       <div class="column"><a href="Home.html"><p>Phone Home</p></a></div>
       <div class="column"><a href="about_me.html"><p>About Me</p></a></div>
       <div class="column"><a href="Bad_Times.html"><p>Bad Times are Now</p></a></div>
       <div class="column"><a href="cv.html"><p>The Professional Bit</p></a></div>
       <div class="column"><a href="Art.html"><p>The Main Event</p></a></div>
       <div class="column"><a href="https://procartoonists.org/profile/eliotlord/" target="_blank"><p>Trust Me, I'm a Professional</p></a></div>
       <div class="column"><a href="Mail.html"><p>The Fail</p></a></div>
     
      </div>
    </footer>

CSS:
footer {
  background: #ec1801;
  padding: 20px 20px 20px;
  margin-top: 60px;
  text-align: left;
  width: 100%;
  position: relative;
  bottom: 0px;
  user-select: none;
  -webkit-user-drag: none;
}

As always help appreciated. Thank you.
Screenshot 2024-05-26 at 16.14.44.png
 
Solution
Its really impossible to say from just the snippets that you provided. There could be other CSS on the page affecting things. You could try putting a margin:0 on the footer. That could help. If you have a live URL, we might be able to help more.
Its really impossible to say from just the snippets that you provided. There could be other CSS on the page affecting things. You could try putting a margin:0 on the footer. That could help. If you have a live URL, we might be able to help more.
 
Solution
Back
Top Bottom