Title: CSS issue. Can not set width
Last modified: November 21, 2017

---

# CSS issue. Can not set width

 *  [oanhtran1804](https://wordpress.org/support/users/oanhtran1804/)
 * (@oanhtran1804)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/css-issue-can-not-set-width/)
 * Hi.
 * I used code bellow.
 * [@media](https://wordpress.org/support/users/media/) screen and (min-width: 960px){
   .
   sidebar.s1 {width: 320px} .sidebar.s2 {width: 240px} .content {width: 840px} }
 * The code worked, but broken style because behide of these class, have another
   class “main-inner group”. How do i change width success way please?

Viewing 1 replies (of 1 total)

 *  [Mohammad](https://wordpress.org/support/users/osmikh/)
 * (@osmikh)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/css-issue-can-not-set-width/#post-9708410)
 * Hi,
 * I have the same issue. My child theme used to work with the increased width to
   340 but it seems that the new update has moved the sidebar width to js. My custom
   css that was working is now failing when the screen width requires collapsing
   s2.
 *     ```
       .col-3cm .main-inner { padding-right: 340px; }
       .col-3cm .sidebar.s2 { margin-right: -340px; }
       .col-3cl .sidebar.s2 { margin-right: -340px; }
       .col-3cr .sidebar.s2 { margin-left: -340px; }
       .sidebar.s2 { width: 340px; }
       @media only screen and (min-width: 480px) and (max-width: 1200px) {
       .col-3cm .s2.collapsed {margin-right: -50px;}
       .col-3cm .s2.collapsed {width: 50px;}
       .s2-expand .s2 {width: 340px;}
       .s2-expand .s2 .sidebar-content { display: block; min-width: 340px; }
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘CSS issue. Can not set width’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mohammad](https://wordpress.org/support/users/osmikh/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/css-issue-can-not-set-width/#post-9708410)
 * Status: not resolved