Archive for 'Scripting'
Another one to add to the list
It’s happened again …
Posted: October 25th, 2006 under Scripting, Tech.
Comments: none
New favelet – Show all the id attributes used on a page
I was trying to write a little favelet that loops through a bunch of HTML elements on any page and finds all the id values. Once it’s done, it inserts it into the start of the page for info. Why am I doing this? I wanted to get some stats about what ids we use [...]
Posted: September 27th, 2006 under Scripting, Tech.
Comments: 4
Removing annoying CSS borders on Checkboxes and Radio buttons
So, this is one of those caring, sharing geeky posts. When you apply borders to text inputs in CSS (to remove those bevelled edges you get by default) using input {border:1px solid gray;} … or whatever, it always messes up radio buttons and checkboxes.
One solution is to use attribute selectors, like so: input [type="text"] {border:1px [...]
Posted: August 30th, 2006 under CSS, Scripting, Tech.
Comments: 18
Improved Style Switching through Dom Scripting
I recently picked up a copy of Professional CSS – aka "the Where’s Durstan book" – somewhat overdue, it should be noted! I was having a read through the chapter regarding style switching and found myself wanting to tweak the code I was looking at. What was wrong with the code/markup? Actually, nothing major, [...]
Posted: July 4th, 2006 under CSS, Scripting, Tech.
Comments: 1
How to Print Selective Sections of a Web Page using CSS and DOM Scripting
This is an experiment to see if it’s possible to selectively print sections of a large document usings CSS print styles after the page has loaded without affecting the on-screen display.
Why might you use this? Well, the inspiration came from a page of interest rates from banking and savings products. Customers have often complained that [...]
Posted: March 21st, 2006 under CSS, Scripting, Tech, Web Standards.
Comments: 67