> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: $w ## Article: Styling Elements with CSS ## Article Link: https://dev.wix.com/docs/velo/velo-only-apis/$w/styling-elements-with-css.md ## Article Content: # Styling Elements with CSS > **Note:** This feature is only available to Wix Studio users. CSS allows you to customize the appearance of your website, from colors and fonts to sizes and positions of different elements. For additional information on CSS styling options, refer to the [MDN CSS reference docs](https://developer.mozilla.org/en-US/docs/Learn/CSS). ## Add CSS to your site To get started, add a global.css file in the CSS section of your Page Code. CSS styles added to this file will apply to the selected classes throughout your site. To select a class to style, use the name of the component as it's referred to in Velo. For example, to change the background color of all buttons to red: ```css .button { background-color: red; } ``` Use inner classes to style specific elements of a component class. For example, use `.button__label` to style only the labels of button elements. ## Available classes See which classes are already available for any element on your site by selecting the element and viewing CSS Classes in your code panel: ![CSS Classes in code panel](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_css_classes_code_panel.png "CSS Classes in code panel") You can also add your own classes in the custom classes field. Custom classes are added to the root of the component. For reference, here is a list of global classes: - [Accordion]($w/accordion/css-classes) - [Anchor menu]($w/menu/css-classes#anchor-menu) - [Audio player](/audio-player/css-classes) - [Box]($w/box/css-classes) - [Breadcrumbs]($w/breadcrumbs/css-classes) - [Button]($w/button/css-classes) - [Captcha]($w/captcha/css-classes) - [Checkbox]($w/checkbox/css-classes) - [Checkbox group](/checkbox-group/css-classes) - [Collapsible text](/collapsible-text/css-classes) - [Column strip](/column-strip/css-classes) - [Date picker](/date-picker/css-classes) - [Dropdown input]($w/dropdown/css-classes) - [Dropdown menu]($w/menu/css-classes#dropdown-menu) - [Footer]($w/footer/css-classes) - [Form]($w/form/css-classes) - [Google map](/google-map/css-classes) - [Header]($w/header/css-classes) - [Horizontal line](#horizontal-line) - [Horizontal menu]($w/menu/css-classes#horizontal-menu) - [Image]($w/image/css-classes) - [Image button](#image-button-classes) - [Language menu](#language-menu-classes) - [Lightbox](#lightbox-classes) - [Lottie]($w/lottie/css-classes) - [Menu]($w/menu/css-classes) - [Menu container](/menu-container/css-classes) - [Multi-state box](/multi-state-box/css-classes) - [Page]($w/page/css-classes) - [Pagination]($w/pagination/css-classes) - [Progress bar](/progress-bar/css-classes) - [Radio button group](/radio-button-group/css-classes) - [Ratings display](/ratings-display/css-classes) - [Ratings input](/ratings-input/css-classes) - [Repeater]($w/repeater/css-classes) - [Rich text box](/rich-text-box/css-classes) - [Search bar](#search-bar-classes) - [Section](https://dev.wix.com/docs/velo/api-reference/$w/section/css-classes.md) - [Selection tags](/selection-tags/css-classes) - [Signature input](/signature-input/css-classes) - [Slideshow]($w/slideshow/css-classes) - [Switch]($w/switch/css-classes) - [Table]($w/table/css-classes) - [Tabs]($w/tabs/css-classes) - [Text]($w/text/css-classes) - [Text box](/text-box/css-classes) - [Text input](/text-input/css-classes) - [Time picker](/time-picker/css-classes) - [Upload button](/upload-button/css-classes) - [Vector image](/vector-image/css-classes) - [Vertical line](#vertical-line) - [Vertical menu]($w/menu/css-classes#vertical-menu) - [Video box](/video-box/css-classes) - [Video player](/video-player/css-classes) The following classes can be customized but don't have an associated $w API: ### Image button classes #### `.image-button` Targets image button elements. For example: ```css .image-button { background-color: #e6e6e6; padding: 10px; border-radius: 10px; } ``` ### Language menu classes #### `.language-menu` Targets language menu elements. For example: ```css .language-menu { background-color: #e6e6e6; padding: 10px; border-radius: 10px; } ``` #### `.language-menu__option` Targets language menu option elements. For example: ```css .language-menu__option { background-color: #dfd2f4; font-family: monospace; } ``` ### Lightbox classes > **Note:** The terms popup and lightbox refer to the same element. While the editor and dashboard now refer to it as a [popup](https://support.wix.com/en/article/studio-editor-using-popups), the API methods continue to use the term lightbox for backward compatibility. The documentation uses both terms accordingly. #### `.lightbox` Targets popup (lightbox) elements. For example: ```css .lightbox { border: 5px solid #d1a917; border-radius: 6px; filter: drop-shadow(2px 4px 6px black); } ``` #### `.lightbox__close-button` Targets popup (lightbox) close buttons. For example: ```css .lightbox__close-button { width: 10px; } ``` ### Line classes #### `.horizontal-line` Targets horizontal line elements. For example: ```css .horizontal-line { border-top: 6px dotted orange; } ``` #### `.vertical-line` Targets vertical line elements. For example: ```css .vertical-line { border-left: 12px dashed pink; } ``` ### Search bar classes #### `.search-bar` Targets search bar elements. For example: ```css .search-bar { width: 500px; display: flex; flex-direction: row; } ``` #### `.search-bar__icon` Targets search bar icons. For example: ```css .search-bar__icon { fill: #840292; } ``` #### `.search-bar__input` Targets search bar input boxes. For example: ```css .search-bar__input { border: none; border-bottom: 2px solid #840292; background-color: #dfd2f4; font-family: monospace; } ```