Archive

Archive for November, 2009

IE7/8 and hover on empty elements

November 17th, 2009 No comments

I had an annoying problem with IE8 today. In the CMS, toolbars appear when you hover over a content block or the page content. All I’ve done is user div:hover.

IE though does not recognise the object if its background is set to transparent and is empty. If you set a background colour then it fires the hover. I tried giving it hasLayout but that made no difference! Very strange behaviour!

Read more…

Categories: css Tags:

Get Rendered Html From a Control

November 16th, 2009 No comments

Whilst working on the CMS I needed to be able to pass back the html a control will render when the user first adds it. The control doesn’t exist on the page yet as the sections are added via javascript. It was very easy to pass in StringWriter to the render function to get the html :)

Read more…

Categories: Asp.Net, c#, cms Tags: