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

  • Home
  • SEARCH
  • 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 6020427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:34:03+00:00 2026-05-23T03:34:03+00:00

On this website http://inspectelement.com/html5portfolio/ , I saw that he is using a float:left; command

  • 0

On this website
http://inspectelement.com/html5portfolio/
, I saw that he is using a float:left; command on the html5 <header> -element, and the css class “section”, which is the area where the content is.

If I change it to float:right, or float:none, or I delete it altogether nothing changes.

Why is he using the float command anyway?

The header has a fixed position, and the section is centered through the container:

#headercontainer, #contentcontainer { 
    width: 960px; margin: 0 auto; position: relative; 
}

Is this some sort of technique, I´m not familiar with? Or can I just delete the float command?

Thanks in advance.

  • 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-05-23T03:34:03+00:00Added an answer on May 23, 2026 at 3:34 am

    He probably uses floats so the element get’s out of normal flow and he is not clearing them to keep the bottom margin+section height at a state of 1000px no matter how much content is in the floated section. However if <section> content will get over 1000px his approach will break. But since it’s a portfolio site he will manage to keep it working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm using this website: http://www.howtoforge.com/ubuntu_debian_lamp_server to setup LAMP on my Ubuntu Virtual Machine.
In this website: http://theoew.uuuq.com/portfolios/Idea/ I use Cufon to style the text for the the
What I am talking about is like this website : http://www.ernesthemingwaycollection.com It has a
I have come across this website: http://www.fetchak.com/ie-css3/ It seems to work when I enter
I want to create an FAQ page like the one on this website http://www.microsoft.com/windows/windows-7/faq.aspx
I want to use this pure HTML/CSS template for my ASP.NET website: http://sub3.tanguay.de I
My ASP.NET always starts like this with the internal server: http://localhost:50793/Website/ I use FckEditor
So I have this website that will be accessed via an SSL connection (
According to this website , you can change to command key sequence used by
This is a very specific question for a Google Chrome extension. http://www.meebo.com/mobile/ This page

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.