Posts about Html

HTTP Server in 5 Lines With Webrick

Usually when I am prototyping a web UI - either in Javascript or Flex, I would just write a static html, because that's the simplest thing that works. But, once in a while, it doesn't work because of... more
Posted by Toby on Sep 16, 09
About programming, javascript, ruby and html
2 comments

Radio button change event firing

If you register the change event for a radio button, they fire at different times between IE and FF. FF fires the event immediately when you click on the radio button to change its value. IE does... more
Posted by Toby on Nov 10, 08
About programming, javascript, crossbrowser and html

IE bug: input endtags show up as nodes

If you write an input element like this:<input type="text" id="name" name="name" value="></input>In IE, if you try to traverse the dom, you will get the end-tag as a separate element... more
Posted by Toby on Nov 10, 08
About programming, javascript, crossbrowser, ie and html
1 comments

Relativize that thing: todays CSS war story

Today, I had a seemingly simple problem: position a floating label element inside of a text input field, inside a elastic layout. To achieve an effect like:Moreover, I wanted to implement this as a... more
Posted by Toby on Aug 22, 08
About programming, javascript, css and html

button element in IE - set type

If you use the button element, make sure you set the type attribute:
<button type="submit">Submit</button>

Otherwise, it won't submit it's parent form when clicked in IE.
more
Posted by Toby on Jun 30, 08
About programming, crossbrowser and html

How to Remove the Scrollbar from your Browser Window

In your body tag, do this:

<body scroll="no" style="overflow: hidden">
more
Posted by Toby on Jun 18, 08
About programming and html
5 comments