# Making the buttons line up in rows using CSS

**URL:** <https://community.blippa.com/t/making-the-buttons-line-up-in-rows-using-css/379>\
**Category:** Uncategorized\
**Tags:** css\
**Created:** [September 30, 2026, 4:10am UTC](https://community.blippa.com/t/making-the-buttons-line-up-in-rows-using-css/379 "2026-09-30T04:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrunhem](https://community.blippa.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mrunhem](https://community.blippa.com/u/mrunhem)\
**Post date:** [September 30, 2026, 4:10am UTC](https://community.blippa.com/t/making-the-buttons-line-up-in-rows-using-css/379/1 "2026-09-30T04:10:32Z")

</div>

I asked Claude to take a look at [https://rexidy.com](https://rexidy.com) and make a CSS where the buttons are in a line.

Not sure if it is an improvement. Perhaps having different CSS for mobile and desktop, since the traditional button placement in Blippa is more usable on a mobile.

See below for the CSS.

 ![IMG_1419](https://community.blippa.com/uploads/default/original/1X/fc8016fbd0062f6a5248c51cfa6ee6d017bbb76b.jpeg)

> /\* Smaller buttons \*/
> 
> button,
> 
> .btn, .button,
> 
> a.btn, a.button,
> 
> [role=“button”],
> 
> input[type=“button”],
> 
> input[type=“submit”] {
> 
> width: auto !important;
> 
> min-width: 0 !important;
> 
> display: inline-flex !important;
> 
> align-items: center;
> 
> justify-content: center;
> 
> padding: 6px 14px !important;
> 
> font-size: 14px !important;
> 
> line-height: 1.2 !important;
> 
> border-radius: 6px;
> 
> margin: 0 !important;
> 
> white-space: nowrap;
> 
> }
> 
> /\* Put buttons side by side, wrapping to new rows \*/
> 
> :is(div, nav, section, ul, p):has(\> :is(button, .btn, .button, a.btn, a.button, [role=“button”])) {
> 
> display: flex !important;
> 
> flex-direction: row !important;
> 
> flex-wrap: wrap !important;
> 
> justify-content: center;
> 
> gap: 8px;
> 
> }
> 
> /\* Keep each button its natural width \*/
> 
> :is(div, nav, section, ul, p) \> :is(button, .btn, .button, a.btn, a.button, [role=“button”]) {
> 
> flex: 0 1 auto !important;
> 
> }
> 
> /\* Slightly larger tap targets on phones \*/
> 
> @media (max-width: 480px) {
> 
> button, .btn, .button, [role=“button”] {
> 
> ```
> padding: 8px 12px !important;
> 
> font-size: 13px !important;
> 
> ```
> 
> }
> 
> }
