# Discourse Custom Width

**URL:** <https://meta.discourse.org/t/discourse-custom-width/256171>\
**Category:** Theme component\
**Created:** [February 24, 2023, 3:03pm UTC](https://meta.discourse.org/t/discourse-custom-width/256171 "2023-02-24T15:03:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)\
**Post date:** [February 24, 2023, 3:17pm UTC](https://meta.discourse.org/t/discourse-custom-width/256171/2 "2023-02-24T15:17:40Z")

</div>

Hi!

Why only fixed width with px?

I have this in my css:

```css
:root {
	--d-max-width: 80%;
}

.topic-body {
	width: 90%;
}

#reply-control {
    max-width: 80%;
}

.body-page {
    width: 100%;
    max-width: 100%;
}

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-custom-width/256171)._
