---
title: "Discussion on \"Stop Using Float in CSS - Here Are Your Alternatives\" | Hashnode"
description: "Discussion on \"Stop Using Float in CSS - Here Are Your Alternatives\". This article was originally published on my personal blog\nThroughout my years of working in CSS, the property that causes the biggest mess in the layout isfloat. Wheneverfloatis used, unexpected behavior occurs at some point in your layout and design..."
url: "https://hashnode.com/posts/stop-using-float-in-css-here-are-your-alternatives/606425566f6ec61457d8cbab"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop Using Float in CSS - Here Are Your Alternatives](https://shahednasser.hashnode.dev/stop-using-float-in-css-here-are-your-alternatives?utm_source=hashnode&utm_medium=feed)

This article was originally published on my personal blog Throughout my years of working in CSS, the property that causes the biggest mess in the layout isfloat. Wheneverfloatis used, unexpected behavior occurs at some point in your layout and design...

Mar 31, 2021 · 3 min read · shahednasser.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#developer](https://hashnode.com/tag/developer)
-   [#css](https://hashnode.com/tag/css)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Shahed Nasser](https://hashnode.com/@shahednasser)

@shahednasser · Lebanon

  
[View profile](https://hashnode.com/@shahednasser)

Technical Writer and Full Stack Developer ✨

## Responses 2

Markdown supported · ⌘↵ to post

[Mario Giambanco](https://hashnode.com/@mgiambanco)

[Mar 31, 2021](https://hashnode.com/posts/stop-using-float-in-css-here-are-your-alternatives/606425566f6ec61457d8cbab/comment/606466eb574933157db92c6f)

Saying "Stop using feature X" is the wrong way to educate people.

Teach both sides of a given feature and let people decide for themselves. Are there better ways to align an element? Sure, probably. But the problem I'm trying to solve is probably not the same as the problem you're trying to solve. Maybe a float works better for me in my project.

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Mar 31, 2021](https://hashnode.com/posts/stop-using-float-in-css-here-are-your-alternatives/606425566f6ec61457d8cbab/comment/6064416e574933157db927d8)

Flex Box and Grid are amazing nobody wants to go back to the dark days of floats 😅
