# Create a an image banner

**URL:** <https://meta.discourse.org/t/create-a-an-image-banner/280279>\
**Category:** Product Support\
**Tags:** versatile-banner\
**Created:** [May 27, 2023, 6:10pm UTC](https://meta.discourse.org/t/create-a-an-image-banner/280279 "2023-05-27T18:10:31Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[Pandabear](/t/-/280279/1) requested a beginner-friendly explanation on how to increase the size of an image banner in the 'versatile-banner' theme component, noting that they had already removed the text but the image was not displaying fully. [Lilly](/t/-/280279/2) provided a solution involving custom CSS and HTML structure. They advised adding a CSS rule for `#homepage-banner` to set the width to 100% and adjust the height (e.g., to 300px). Additionally, Lilly instructed Pandabear to wrap the image URL in a `div` with the ID `homepage-banner` within the versatile banner component's content fields. Lilly also suggested exploring further formatting options like rounded corners and text insertion, referencing her own site as an example. [Pandabear](/t/-/280279/3) confirmed that the solution worked perfectly and appreciated the clear explanation.

<div class="post-metadata">

**Author:** ![Pandabear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pandabear/32/207556_2.png) [@Pandabear](https://meta.discourse.org/u/Pandabear)\
**Post date:** [May 27, 2023, 6:10pm UTC](https://meta.discourse.org/t/create-a-an-image-banner/280279/1 "2023-05-27T18:10:31Z")

</div>

Could someone explain it to me from 0.  
I want to create a banner that is just an image. I have installed the theme component.  
I would like to know how to make the banner bigger so that the image can be seen. You would have to explain it to me as if I don’t know anything.

 ![banner](https://global.discourse-cdn.com/meta/original/4X/9/6/2/96260ee365c5446b56b772d360ff27af110cca6f.jpeg)  
I’ve deleted all the text, but I don’t know how to make the banner bigger to show the full picture.

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [May 27, 2023, 6:54pm UTC](https://meta.discourse.org/t/create-a-an-image-banner/280279/2 "2023-05-27T18:54:34Z")

</div>

try this in a theme component. in common css:

```scss
#homepage-banner {
    width: 100%;
    height: 300px;
 }

```

you can adjust the height to however you like.

put the following around the image in the versatile banner component where you have your image URL, probably the main heading content field.

```plaintext
<div id="homepage-banner">

put image here

</div>

```

you can add other CSS code to format it more. you can look at the versatile banner on my site (see profile) and get an idea of what can be done with other formatting like rounding corners and inserting text.

---

<div class="post-metadata">

**Author:** ![Pandabear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pandabear/32/207556_2.png) [@Pandabear](https://meta.discourse.org/u/Pandabear)\
**Post date:** [May 27, 2023, 9:50pm UTC](https://meta.discourse.org/t/create-a-an-image-banner/280279/3 "2023-05-27T21:50:50Z")

</div>

Thank you very much, it works perfectly and very well explained for a novice like me.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [September 27, 2023, 9:14am UTC](https://meta.discourse.org/t/create-a-an-image-banner/280279/4 "2023-09-27T09:14:57Z")

</div>

Closed on September 27, 2023, 9:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
