Category Archives: CSS

Javascript and form style

You can control some form elements CSS style attributes using Javascript. This comes in handy when trying to highlight errors or disabled fields. You can use a select onChange event to disable/enable form fields. The style attributes I find most … Continue reading

Posted in Code, CSS, Javascript | Comments Off on Javascript and form style

CSS – page break and dont print

Found this little CSS tidbit useful to day. I had output order entry records with multiple page detail. I wanted each page of the detail to print to its own sheet. The problem I faced was that the Top of … Continue reading

Posted in Code, CSS | Comments Off on CSS – page break and dont print

horizontal menu challenges

I needed to implement a self contained Horizontal menu that shows the user which section they are in by using a highlight that is different from the rest of the menu bar. No breadcrumbs. Using coldfusion allowed me to do … Continue reading

Posted in Code, CSS, Problems & Fixes | Comments Off on horizontal menu challenges

CSS3 – The vanishing shadow

Do you usually resort to Photoshop to create an image of text or object with a drop shadow, save it as a gif or png (and hope no-one is using IE6)? Or do you layer boxes within background boxes to … Continue reading

Posted in Code, CSS, Snippets | Comments Off on CSS3 – The vanishing shadow

Border CSS for Tables

I was reacquainted this week with a couple of CSS attributes for the HTML table. table{border-collapse: collapse; border-spacing: 0px 0px;} border-collapse has three attributes: collapse – Borders collapse into a single border. border-spacing and empty-cells properties will be ignored separate … Continue reading

Posted in Code, CSS, Snippets | Comments Off on Border CSS for Tables