Styling SharePoint Blog Comments: Part 2

As promised I went ahead and styled the comment form on a standard SharePoint blog.  I wanted to make it look better than this but there are some limitations because of the way the page is coded with so many nested tables. 

Better looking comment form

Better looking comment form

I kept the styles pretty simple but this should be a good starting point for someone wanting to do something more complex.

This code includes the code from part 1 with some minor changes. The new styles for the comment form are commented.

<style type="text/css">
.ms-commenttable td {border:0px;}{border:0px; font:italic normal small Georgia;} {
	background:url('../../images/comm_top.gif') top 0px no-repeat;
	padding:18px 0 0 0;
} div {
	border:1px solid #ccc;
.ms-CommentFooter {background:url('/_layouts/images/square.gif') 5px 50% no-repeat;
	border-top:1px dotted #ccc;
	border-bottom:1px dotted #ccc;
.ms-CommentFooter span {padding-left:18px;}
.ms-commentsWrapper {background:#fff; margin:5px; border:0px;}
.ms-blogedit a{	background:transparent; border:0px;}
.ms-blogedit a:hover{background:#ccc; border:0px;}{padding-left:35px;
	background:url('/_layouts/images/menunewdiscussion.gif') top left no-repeat}
.ms-formtable {	border-top:1px dotted #ccc;	border-bottom:1px dotted #ccc;	padding:5px;}
/* cell holding the labels */
.ms-formlabel {	border:0px ;width:100px;}
/* label text */
.ms-formlabel{	padding-top:5px; font-weight:normal; text-align:right;}
/*wraps the form elements */
.ms-formbody {background:transparent;	border:0px;}
/* the title input field */
.ms-formbody span input{
padding:2px 5px 1px 5px;
border:1px solid #ccc;
font:italic normal normal small/18px Arial;
margin:5px 0 5px 0;
/* text area for the comment body */
.ms-formbody span textarea{
font:italic normal normal small/18px Arial;
border:1px solid #ccc;
margin:0 0 5px 0;
/* submit button */
.ms-toolbar {
	border:2px solid #317A0C;
	font:italic normal x-small Georgia;

Note: To be sure this code does not affect the styling of other forms on the page and other web parts it would be best to open the page in SharePoint Designer and wrap the web part in a div some the styles can be targeted to affect only items inside the div.

Add a Comment

Your email address will not be published. Required fields are marked *