Sun, 25 May 2003

Fun with CSS - Not

It is a small thing, but I always wanted my comment form to grow and shrink to match the window it is in. This would seem like a fairly easy thing to do, and in fact the code below is very simple, but behind it is a story:

input[name="name"], input[name="email"], input[name="url"],
textarea[name="comment"] {
  width: 100%
}

What this code does is take the three input text fields, and the one textarea and makes them take up 100% of the width of the block in which they are embedded. Seems simple enough.

What took time was trying to find something that would work in IE. And failing that, finding something that wouldn't look like crap in IE.

Add your comment

Name:


E-mail:


URL:


Comment:


Remember info?

Essays

Noun vs Verb

Topology

Evolution of the Weblog APIs

Cohesion

SOAP by Example

A Gentle Introduction to Namespaces

Really Simple Syndication

Expect More

REST + SOAP

Beyond Backlinks

Google's Genius

Neuro Transmitters

Headers and Hrefs

A Gentle Introduction to SOAP

Coping with Change

Manufactured Serendipity

Dealing with Diversity

A Busy Developers Guide to WSDL 1.1

Axis/Radio Interop, Actual and Potential

To Infinity and Beyond: the Quest for SOAP Interoperability

What Object Does SOAP Access?

Favorites

In Praise of Evolvable Systems

Metacrap

The Law of Leaky Abstractions

The Eight Fallacies of Distributed Computing

Permanet, Nearlynet, and Wireless Data

Search

Nav Bar

Blogroll

0xdecafbad
aaron swartz
abe fettig
andres aguiar
appswitching diary
ascription is an anathema...
be blogging
ben hammersley
better living through software
bitworking stories
blogging roller
brad abrams
brian behlendorf
burningbird
chris dix
clemens vasters
code feed
d2r
dare obasanjo
dave seidel
dive into mark
dj
don box
ericfreeman
erik hatcher
ernie the attorney
gary burd
glen daniels
gordon weakliem
graham glass
greg reinacker
guido casper
guido van rossum
gump
hacking log 3.0
ikvm.net
ingo rammer
joel on software
john.beimler
jon
ken
lambda the ultimate
loosely coupled
luke hutteman
making it stick.
mark baker
mitch kapor
mnot
ongoing
outer web thought log
patrick chanezon
pet rock star
peter drayton
phil ringnalda dot com
pushing the envelope
raelity bytes
ray ozzie
rebecca dias
robert c. martin
sam gentile
sanjiva weerawarana
sean mcgrath
sellsbrothers
sifry
simon fell
simon willison
simplegeek
sjoerd visscher
snellspace
squawks of the parrot
stefano
sterling hughes
ted leung on the...
the .net guy
the james duncan davidson
thearchitect.co.uk
thinking about computing
tima thinking outloud.
toolbox
verba volant
ward cunningham
weblog
weblog for costin manolache
webmink
www.davidwatson.org
y. b. normal
yasser shohoud blog
yole

Powered by

Apache
blo.gs
BlogShares
Cornerhost
mombo
Tidy
Vim
XHTML 1.0