I’m working on a HTML5 web site and need a way to have borders on the TD tags without using the cellpadding and cellspacing attributes like I usually implement.  After some googling I found a solution here.  The answer does not mention HTML5 specifically but it worked like a charm.

table
{
 border-spacing: 0px;
 border-collapse: collapse;
}
Advertisements

I was creating a UI from a PSD file and after I extracted the image background I realized that it was only 970px wide.  So I went searching for a good way to stretch it out in the background and I ran across this gem.

The HTML:

<div id="dvbackground">
 <img src="YOURIMAGESOURCE" class="stretch" alt="" />
</div>

The CSS:

#dvbackground
{
 width:100%;
 height:100%;
 position: fixed;
 left:0px;
 top:0px;
 z-index: -1;
}

.stretch
{
 width:100%;
 height:100%;
}

I recently inherited a project where the developer was using CLR stored procedures.  You must execute the following SQL Script to be able to use those stored procedures.

sp_configure 'clr enable', 1
GO
RECONFIGURE WITH OVERRIDE
GO