55 posts
  • Bought between 50 and 99 items
  • Has been a member for 2-3 years
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!

3196 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says
.whatever-the-widget-class-is{
height:300px;
overflow:scroll;
}
508 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Football Contest Participant/Runner-up
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • United Kingdom
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
  • Bought between 50 and 99 items
  • Has been a member for 2-3 years
dinko1 says

It worked!! Thank you guys :D

55 posts
  • Bought between 50 and 99 items
  • Has been a member for 2-3 years
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
  • Bought between 50 and 99 items
  • Has been a member for 2-3 years
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