Search This Blog

Friday, August 21, 2009

Learning more about Blogger and CSS

How to add a custom CSS to a blog's template.

Description of a Blogger Template

Added the following CSS style Sheet:


/*
Custom CSS class to display code snippets.
http://bguide.blogspot.com/
2008 Feb 03
*/
.mycode
{
border:1px dashed #aaaaaa;
background:#eeeeee;
white-space:pre;
font-family:monospace;
font-size:9pt;
line-height: 10pt;
height:auto;
width:auto;
padding:5px;
margin-left:10px;
overflow:auto;
}

To implement:
<div class="mycode">

/* Paste the code snippet here */

</div>

My code....

public static void UnregisterControl(Type t)
{
try
{
GuardNullType(t, "t");
GuardTypeIsControl(t);

//CLSID
string key = @"CLSID\" + t.GUID.ToString("B");
Registry.ClassesRoot.DeleteSubKeyTree(key);
}
catch (Exception ex)
{
LogAndRethrowException("ComUnregisterFunction failed.", t, ex);
}

}

No comments: