# Inline

*noun*

say it: **“IN-lyne”** **/ˈɪnlaɪn/**

An element that sits inside a line of text and is only as wide as its content, like a link or span.

## What is an **inline** element in CSS?

An **inline** element sits within a line of text and is only as wide as its content, like `<a>`, `<span>` and `<strong>`.

```css
li { display: inline; }   /* list items side by side, like a menu */
```

## In a sentence

- “The strong element is **inline**, so the bold word stays in the middle of the sentence.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/inline
