# איך למרכז את חיפוש ה-Headers?

**URL:** <https://meta.discourse.org/t/how-to-center-header-search/310522>\
**Category:** Development\
**Created:** [4 ביוני,‏ 2024,‏ 2:43pm UTC](https://meta.discourse.org/t/how-to-center-header-search/310522 "2024-06-04T14:43:50Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [4 ביוני,‏ 2024,‏ 3:56pm UTC](https://meta.discourse.org/t/how-to-center-header-search/310522/9 "2024-06-04T15:56:55Z")

</div>

The header content and page content are centered independently from each other, so if for example, the header has more content on the left or right the header’s center will be different.

Here are some illustrations of this, here the header’s “center” changes based on the amount of content on the right:

 ![center-1](https://global.discourse-cdn.com/meta/original/4X/9/c/7/9c769220cd2708248ee9c41e7383076d936d4dec.png)  
 ![center-2](https://global.discourse-cdn.com/meta/original/4X/d/3/d/d3dc8e0226c25469e67cce9c694aad4fb7643204.png)  
 ![center-3](https://global.discourse-cdn.com/meta/original/4X/6/6/c/66cbd7c27abee8a71269b5ac26b7a495a721eb3c.png)

There’s not a simple way to ensure the center of both the header and the page content are always the same, especially considering the width of header content may change (due to translations, number of buttons, etc).

> [@ogulcan1787](#):
>
> ```plaintext
> @media screen and (min-width:640px){
> .d-header .home-logo-wrapper-outlet,
> .d-header .panel{
> width:240px;
> }
> }
> 
> ```

This works because the content on the left (logo) is now the same width as the content on the right (button container). You’ll need a separate bit of CSS to target `.anon` (logged out) because different buttons are shown on the right. Translations as you noticed, will also make buttons a different size, so that will impact alignment.

---

_[View the full topic](https://meta.discourse.org/t/how-to-center-header-search/310522)._
