55 posts
  • Has been part of the Envato Community for over 3 years
  • Has collected 50+ items on Envato Market
dinko1 says

Developers… some help please!

I have a widget in my wordpress site that displays last 10 posts. The whole display image+title with 10 posts make the widget looks huge. I was thinking if its easy/possible to display only a specific size for example 300 pixels and have a small scrollbar on the right to see the rest content.

Example: http://s23.postimg.org/8jadydjsb/image.jpg

Thank you!

3262 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says
.whatever-the-widget-class-is{
height:300px;
overflow:scroll;
}
673 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Provided great contribution to our forums
  • Has been a beta tester for an Envato feature
+4 more
Gareth_Gillman says

using CSS, it’s a doddle e.g.

 #element {width:100px;height:300px;overflow-y:scroll;}

element is the element ID of the container div

55 posts
  • Has been part of the Envato Community for over 3 years
  • Has collected 50+ items on Envato Market
dinko1 says

It worked!! Thank you guys :D

55 posts
  • Has been part of the Envato Community for over 3 years
  • Has collected 50+ items on Envato Market
dinko1 says

Btw, is it possible to apply the css only for a specific sidebar and not for the entire site? Because I need this scrolling only inside post article, not on the homepage. The css trick does it globally over the entire site.

55 posts
  • Has been part of the Envato Community for over 3 years
  • Has collected 50+ items on Envato Market
dinko1 says

I found a workaround. Thanks


Btw, is it possible to apply the css only for a specific sidebar and not for the entire site? Because I need this scrolling only inside post article, not on the homepage. The css trick does it globally over the entire site.
by
by
by
by
by
by