Home > HTML/CSS > CSS: input[type="text"]

CSS: input[type="text"]

This nifty little CSS attribute selectors is clean way to style form input elements.

FYI: It does not work in IE6.

#form1 input[type="text"] {
width:100px;
}
#form1 input[type="submit"] {
width:auto;
}

Categories: HTML/CSS
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.