Narrow size of Widget area/side bar
-
Here’s what I want to do, I want to narrow the width of my widget area so that it takes up less space (Due to the nature of my site, most of that space is wasted). I’ve managed to do something by messing around with
.site {
padding-left: 60px;
padding-right: 80px;
}But it doesn’t quite do what I want it to do. Can anyone help me with this matter?
The blog I need help with is cgtranslations.me.
The blog I need help with is: (visible only to logged in users)
-
Try the following css
.site-content .widget-area{
width:20%;
}Currently the width is set to 25%. Above code will change it to 20%. Experiment and change the value as required. Hope this helps
-
Further you will also have to add
.site-main{
margin: 0 22% 0 0;
}If you change value of 20% of sidebar, you will also have to change the value 22% accordingly.
-
-
-
Though, hmm, what’s the difference between
.site-content .site-main{
width:80%;
}and
.site-main{
margin: 0 18% 0 0;
}As far as I can tell they seem to do similar things.
-
Yes they might work as the same to a normal eye, but to the browser engine these are two different things. First one sets the width of section with class site-content to 80% and second one create a right margin.
-
-
- The topic ‘Narrow size of Widget area/side bar’ is closed to new replies.