Google
 

Centering Fieldsets

Wednesday, January 4th, 2006

A quick piece of CSS to center a fieldset: <div style="width: 200px; text-align: center; margin-left: auto; margin-right: auto;"> <div style="text-align: left;"> <fieldset> ... Here is an example:  

Inobstrusive Form Field Highlighting in JavaScript

Tuesday, January 3rd, 2006

One of the recent problem that I ran across at work is an easy way to do highlighting for form fields. Of course the best way would be CSS 2 (as shown here) but alas, IE does not support that. The alternative is JavaScript onFocus and onBlur method. However, one thing ...

How To Wrap Text in a Table Cell

Thursday, May 5th, 2005

An interesting question that came up today during work was how to wrap text in a table cell that does not contain any line breaks or spaces. For example: ThisIsCell1 ThisIsCell2 We want the text inside the cells to wrap to the next line instead of extending the table size. There are three ...

XSL-FO vs. CSS

Thursday, January 20th, 2005

I just saw An article on XML.com (via SlashDot) discussing how CSS stylesheets can work better for printing than XSL-FO (as a rebuttal to a post by Norman Walsh). As a proof, the authors show a 100 line CSS stylesheet that accomplishes the same thing as a 1,000 XSL-FO stylesheet ...

Making Visited Links Look the Same as Unvisited Links

Thursday, January 13th, 2005

One of our customers had recently requested a feature to make all links look the same, visited or unvisited. While debates and complaints have been raised about whether they should look the same, in our case this was necessary. A web application such as ours usually dynamically generated all the ...