Skip to content

Cuaima/float

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Understanding Why float Might Not Be Needed in Web Development

Overview

This simple web project demonstrates how web development used to rely on small hacks like float, clearfix, and tables to center images.

Today, with the advent of more powerful and intuitive layout tools built directly into CSS, developers can achieve cleaner, more maintainable layouts without relying on float.

What's in This Project

  • A simple HTML page (index.html)

How to Run

No build tools or local server required!

To Start:

  1. Open the project folder.
  2. Double-click on index.html to open it in your default web browser.

That's it!

Why Move Away From float?

  • float was designed for wrapping text around images, not for building full-page layouts.
  • It often requires clearfixes and manual width calculations.
  • It doesn't adapt well to responsive design.
  • Flexbox and Grid are now supported in all modern browsers and provide a far better developer experience.

Technologies Used

  • HTML5
  • CSS3 (Flexbox, Grid)
  • No JavaScript needed

License

This project is open source and free to use for educational purposes.

About

a simple page about why you might not need to use float

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors