help please with changing width of sidebar in Twenty Twelve child
-
Hi,
I have a child theme of 2012, and am trying to reduce the width of the custom right sidebar – with corresponding increase in width of the content area.
I’ve tried lots of variations of this code….site-content { float: left; width: 67.104166667%; } .widget-area { float: right; width: 24.041666667%; }
with and without the @media screen and (min-width: 600px) query, but with no effect at all. Looking at it with firebug, even when I’ve changed the percentages, it somehow still shows the original one in my child theme – even though it’s not there now! (and yes, I do clear the cache each reload).
My current css is this…
@media screen and (min-width: 600px) { /* to reduce width of sidebar area from 26.041666667% */ .widget-area { clear: right; float: right; width: 24.041666667%; } /* to reduce width of sidebar area from 26.041666667% */ .right-sidebar.custom-layout .widget-area { clear: right; float: right; width: 24.041666667%; } /* to increase width of main contents part of page, was 65.104166667%, with corresponding reduction in right sidebar width, totaling = 91.145833334% ... */ .site-content { width: 67.104166667%; } }
with using my child sidebar selectors (.right-sidebar.custom-layout .widget-area) too, but it still makes no difference!
I am at a total loss as to why this won’t show up, so would appreciate any help at all – the site is https://trevorpenfold.com/
Also I don’t really understand why the 2 percentages have to add up to 91.145833334%, rather than nearer 100%, like with the 2011 theme. Is it related to the percentage of the screen it uses??
Thanks.
- The topic ‘help please with changing width of sidebar in Twenty Twelve child’ is closed to new replies.