Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8468593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:58:42+00:00 2026-06-10T15:58:42+00:00

HTML <div class=main> Lorem ipsum dolor. </div> <div class=footer> <p>More lorem.</p> <ul> <li>One</li> <li>Two</li>

  • 0

HTML

<div class="main">
    Lorem ipsum dolor.
</div>

<div class="footer">
    <p>More lorem.</p>
    <ul>
        <li>One</li>
        <li>Two</li>
        <li>Three</li>
    </ul>
</div>

CSS

.main {
    text-align: center;
}

.footer {
    background: red;
    clear: both;
}

.footer ul {
    float: right;
}

.footer li {
    display: inline;
}

.footer p {
    float: left;
}​

Also on JSFiddle.

I’ve simplified a larger version of my main website not working. My footer won’t change colour. See how it says red?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:58:43+00:00Added an answer on June 10, 2026 at 3:58 pm

    See http://jsfiddle.net/uZs92/2/

    Add

    .footer {
        overflow:hidden;
    }
    

    When you have floating elements inside the container, you can:

    • Add overflow:hidden (or something different than visible) to the container -> http://jsfiddle.net/uZs92/2/
    • Add an element with clear:both at the end of the container (instead to the container itself) -> http://jsfiddle.net/uZs92/6/
    • Add :after,::after{content:'.';font-size:0;} to the container -> http://jsfiddle.net/uZs92/5/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HTML: <div class=main style=float:left> lorem ipsum <br /> lorem ipsum <br /> lorem ipsum
I have a HTML document with the below setup: <div class=main-div style=padding: 5px; border:
<div class = a> <div class = a b> text </div> </div> <script> alert($(.a).html());
I have the following HTML: <div class=menu> <a class=main-nav-item href=home>home</a> <a class=main-nav-item-current href=business>business</a> <a
Well, I got something like this: HTML: <div id="main" class="underline" >Hello</div> JavaScript: $('div').live('click', function(){
I have this HTML: <div class=row-fluid list-item-main-euvou-entradas> <div class=span1 list-item-main-euvou-entradas-colorcode green></div> <div class=span1 list-item-main-euvou-entradas-rank>1</div>
I have written very simple image rotaror with jquery: HTML: <div class=left id=main> <ul
using nokogiri, i want to find <p class=main> Some text here...</p> from an html
Consider following HTML, I have a div class magic inside main . The magic
i have my html something like this... <div class = content> <div class =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.