Wednesday, January 12, 2005

Formatting forms using CSS and definition lists

ASP.NET Resources has an article (CSS Challenge: Styling Definition Lists) on using CSS to format forms, using definition lists for the markup. Less code than using tables, and a lot tidier. A tweak was needed to get it to work with Internet Explorer. Opera seems to have an issue (but someone has posted a possible fix). Despite it primarily being an ASP.NET site, the code is only CSS and HTML, so will work with whatever language is used server-side and on static HTML pages).

No comments: