# Elastic Design

This article explains the **elastic design capabilities that RadToggleButton offers**.

**RadToggleButton** supports an elastic design which means the control and its elements can be resized according to a predefined font size. This is achieved by configuring a particular font-size of the button on the page. You can test the elastic design of the **RadToggleButton** with **Example 1**.

> tip The elastic design of the **RadToggleButton** is part of its responsive design (*i.e, the page and its content are able to adapt to different screen resolutions without deteriorating the user experience*) which also includes a fluid design. You can read more information about the fluid design of **RadToggleButton** in the  [Fluid Design](https://www.telerik.com/products/aspnet-ajax/documentation/controls/togglebutton/mobile-support/fluid-design) article.

> caption Figure 1: Comparison between appearance of a RadToggleButton with regular font size and with increased font size.

![togglebutton-elastic-design](https://www.telerik.com/products/aspnet-ajax/documentation/assets/638847909d63651540613e1b20886bf5/togglebutton-elastic-design.png)

> note As of 2016 Q1 SP1 **RadToggleButton** takes the [font-size](https://www.telerik.com/products/aspnet-ajax/documentation/styling/controlling-visual-appearance/fonts) of the page automatically. If the developer does not set it explicitly (**Example 1**), this is up to the client's browser and a common default value is 16px.

> caption **Example 1**: Setting default font for the page with the default value for the Telerik controls.

```CSS
body {
	font-size: 20px;
	font-family: "Segoe UI", Arial, Sans-serif;
}
```

> caption Example 2: Shows how to increase the font size of a RadToggleButton in Figure 1.

```CSS
<style type="text/css">
	button.RadButton {
		font-size: 26px;
	}
</style>
```

```ASP.NET
<telerik:RadToggleButton runat="server" ID="RadToggleButton1" Text="Elastic Toggle Button">
	<ToggleStates>
		<telerik:ButtonToggleState Text="State 1"/>
		<telerik:ButtonToggleState Text="State 2" /> 
	</ToggleStates>
</telerik:RadToggleButton>
```

## See Also

* [Mobile Support Overview](https://www.telerik.com/products/aspnet-ajax/documentation/controls/togglebutton/mobile-support/overview)

* [Render Modes](https://www.telerik.com/products/aspnet-ajax/documentation/controls/togglebutton/mobile-support/render-modes)

* [Fluid Design](https://www.telerik.com/products/aspnet-ajax/documentation/controls/togglebutton/mobile-support/fluid-design)

* [Fonts](https://www.telerik.com/products/aspnet-ajax/documentation/styling/controlling-visual-appearance/fonts)

* [Visual and Dimension Improvements in UI for ASP.NET AJAX](http://www.telerik.com/blogs/visual-and-dimension-improvements-in-ui-for-asp.net-ajax)
