Blog List View Layout CSS issue

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
11/16/2011 8:29:25 AM
Gravatar
Total Posts 133
J

Blog List View Layout CSS issue

In the list view of my Blog module there's an annoying 16px space at the foot of the excerpt before the comments count and link. 

class='morelink'>read more</a><div>&nbsp;</div></div>

It is caused by that empty DIV after the 'morelink' at the end of the blogtext div. Unfortunately it does not have an ID or a class so I can't see how to get rid of it short of cloning the whole blog.

Is there a way round this? My client is a grade A nitpicker ;)

J

11/16/2011 8:35:53 AM
Gravatar
Total Posts 18439

Re: Blog List View Layout CSS issue

Hi John,

You could add this in your theme.skin file:

<portal:EmptyPanel runat="server" DontRender="true" />

Hope that helps,

Joe

11/16/2011 9:39:21 AM
Gravatar
Total Posts 133
J

Re: Blog List View Layout CSS issue

Thanks as ever for the amazingly speedy response .. unfortunately that didn't fix it and had the effect of shifting the blog right nav column about 20px left so it overlaps the end of the lines in the list content - as usual with theme.skin changes it is now stuck. Cache clearing and rebuilding have not sorted it - it will no doubt come back sooner or later - off to try a reboot to see if that will make it revert.

There isn't a setting I have missed to hide the comment count in BlogListView? that might keep them happy.

Cheers

J

11/16/2011 10:01:33 AM
Gravatar
Total Posts 18439

Re: Blog List View Layout CSS issue

Sorry about that, that div wasn't coming from where I thought, unfortunately its in code, I will add a class on that div for the next release to make it easier to hide.

There is also not a way to hide the comment count other than to hide the comment link, though I could easily add a setting for that.

To hide the whole link you could do:

div.blogcommentlink { display:none; }

Best,

Joe

 

11/16/2011 10:19:21 AM
Gravatar
Total Posts 133
J

Re: Blog List View Layout CSS issue

That's great Joe - to clarify the secondary problem was not caused by the change in theme.skin or VS caching it was another CSS change that I had made that wasn't specific enough. So I'm back to where we started which is fine - I can tell them that I'll be able to get rid of the space they don't like when the next release comes along.  

Many many thanks

J

You must sign in to post in the forums. This thread is closed to new posts.