# Float class for attribution

**URL:** <https://forum.code.org/t/float-class-for-attribution/37630>\
**Category:** Coding and Debugging Help\
**Created:** [February 13, 2023, 3:33pm UTC](https://forum.code.org/t/float-class-for-attribution/37630 "2023-02-13T15:33:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [February 14, 2023, 6:09pm UTC](https://forum.code.org/t/float-class-for-attribution/37630/5 "2023-02-14T18:09:30Z")

</div>

@sherry.wood

OK. I found them. I was just looking at the home page.

When you float an image, it lifts off the page and other content just flows around it (basically ignoring it), so if you float an image to the right, the text will see that there is space on the left and it will just take that space.

Floats can be tricky for that reason and more and more, web developers are moving away from using float and they use other ways of laying out their pages such as the [CSS Grid system](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout).

This can be a bit over the top for CSD, though. [Here’s a link to a recent thread](https://forum.code.org/t/aligning-paragraphs-with-images/37289) where a few teachers shared some ideas for keeping simple layouts and having text grouped with images in a practical way.

Hopefully one of these links will work for you.

Mike

---

_[View the full topic](https://forum.code.org/t/float-class-for-attribution/37630)._
