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!

3437 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;
}
901 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by