# CSS for Flexbox

The Flexbox control and any other controls added to it as part of your design can be styled with CSS.

Below are a few examples of useful CSS code snippets that you can use in your application.

***

### CSS code snippets

#### Cards

Cards can be created by styling a \<div> tag with CSS. In Stadium that means styling a Container control. Below is one example of a basic card that contains an image and a label.

<figure><img src="/files/eetBjVJ4494HJO3SOEsR" alt=""><figcaption></figcaption></figure>

The following code snippet is for a Container control (\<div> tag), placed inside a Flexbox to create the card display:

`box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);`\
`transition: 0.3s;`\
`width: 250px;`\
`text-align: center;`\
`padding-left: 20px;`\
`padding-right: 5px;`\
`margin-right: 15px;`\\


---

# 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.stadium.software/controls/css-for-flexbox.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.
