# Styling Elements

### Styling Options

Here are just a few things you can do to style elements in your Sidebar:&#x20;

* Adjust alignment
* Bold or emphasize text
* Change the color or background of text
* Apply a border
* Add margin or padding to adjust space between other elements

![](https://files.cdn.thinkific.com/file_uploads/720267/images/45a/d98/5b4/1691095239223.jpg)

🎯 You can do even more to customize the elements with Bootstrap utility classes. [Bootstrap](https://getbootstrap.com/) is a popular CSS Framework for styling websites. For example, applying certain classes like `d-none` to an element will hide it. If you want something custom with an element, search online (or ask the [PixieBrix community](https://slack.pixiebrix.com/) for help) to find classes you can type in the open text box below the margin and padding sections.

### **Hiding elements**

In some situations, you may also want to hide an element under certain conditions. For instance, you may not want to show a text box if you don't get a useful response from ChatGPT. You can use template language to pass conditional logic in the *Hidden* field to determine whether an element should be shown.

Next, we'll discuss some [advanced elements](/developing-mods/developer-concepts/building-interfaces/adding-advanced-elements.md) you might want to add to your Sidebar besides texts, images, and headers.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pixiebrix.com/developing-mods/developer-concepts/building-interfaces/styling-elements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
