CSS Displays and Positioning — Inline-blocks and Floats

CSS Displays and Positioning — Inline-blocks and Floats

Here we are going to touch on the concept of inline, blocks, inline-blocks, and how to float for our CSS displays and positioning.

To continue off our previous article found here we can now control a little more of our web page layout with our basic CSS knowledge! Here we are going to touch on the concept of inline, blocks, inline-blocks, and how to float for our CSS displays and positioning.

Previously we learned that static, relative, and absolute (including layering with the z-index) properties allow us to figure out how to get our item to lay on the page in the area we want it to. Now, with our display functionality in our CSS elements, we can see how these items take up space and lay relative to other elements/components on the page.

What is our Display?

When working with a project containing an HTML file and a CSS file, we have to recognize that each of our HTML elements have a default value for their display value. This value holds the information for each element about whether or not it can share any space with other elements horizontally. Sometimes the elements we put into our site or app will take up the entirety of whatever screen it is presented on, while other elements will only take up the amount of space that is needed for the specific content (including its box model; padding, margins, borders, etc).

float programming css

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire CSS Developer

Want to develop a website or re-design using CSS Development? We build a website and we implemented CSS successfully if you are planning to **[Hire CSS Developer](https://hourlydeveloper.io/hire-dedicated-css-developer/ "Hire CSS Developer")**...

Pure CSS Floating Text Animation | CSS Animations

Pure CSS Floating Text Animation | CSS Animations

Creating a CSS Visual Cheatsheet

The other day one of our students asked about possibility of having a CSS cheatsheet to help to decide on the best suited approach when doing this or that layout.

CSS Floats Are Still Useful

A short explanation on how CSS floats are still useful. When you think of CSS floats you probably immediately think of old and out of date CSS layouts. Floats are really useful, though, when it comes to flowing content around another piece of content. The most common use case is flowing text around an image.

Navbar In CSS | CSS Navigation Bar Tutorial | CSS Tutorial For Beginners | CSS Tutorial

This Simplilearn's video on ' CSS Navigation bar' will help you understand a navigation bar and it's importance on a web site. We will also create a navigation bar using HTML and CSS at the end of the demo.