Title: Customize toggle widget width &amp; alignment
Last modified: July 8, 2017

---

# Customize toggle widget width & alignment

 *  [bushido1](https://wordpress.org/support/users/bushido1/)
 * (@bushido1)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/customize-toggle-widget-width-alignment/)
 * I’d like to be able to control the width of the toggle element within my web 
   page. I don’t see how within the toggle widget control panel. Is there a way?
   It’s inside a full width section, but I want to control the Toggle width to a
   defined.
 * All help is welcome

Viewing 1 replies (of 1 total)

 *  [snifflevalve](https://wordpress.org/support/users/snifflevalve/)
 * (@snifflevalve)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/customize-toggle-widget-width-alignment/#post-9302226)
 * [@bushido1](https://wordpress.org/support/users/bushido1/) –
 * In the Advanced tab of the Toggle, add a CSS ID, e.g. my-toggle. Then set the
   size and/or position with CSS.
 * The following CSS with center the Toggle in the Section and set the width to 
   50% (use percent instead of px in order for it to display nicely on mobile):
 *     ```
       #my-toggle {
           position: relative;
           width: 50%;
           margin-left: auto;
           margin-right: auto;
       }
       ```
   
 * Cheers!
    Lyle

Viewing 1 replies (of 1 total)

The topic ‘Customize toggle widget width & alignment’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [snifflevalve](https://wordpress.org/support/users/snifflevalve/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/customize-toggle-widget-width-alignment/#post-9302226)
 * Status: not resolved