468,505 Members | 1,624 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

fieldset>input.textfield

I'm trying to use an image as a background for a text input box.

<form>
<fieldset><input type="text" name ="blah" class="cheese"></fieldset>
</form>

I'm using this code as part of my css to overcome a background repeat bug in
IE 5/6.

fieldset>input.textfield {
background: transparent
url("image.jpg") no-repeat;
}
This works great. The only problem I have now is that it seems the
<fieldset> tag is causing problems in Opera. Is there any way I can ditech
the fieldset and still have the CSS code above?

form>input.textfield {
background: transparent
url("image.jpg") no-repeat;
}

Changing "fieldset" to "form" doesn't work. Any ideas?

Jul 21 '05 #1
2 7231
luke wrote:
I'm trying to use an image as a background for a text input box.


I just saw this posted in alt.html. Where would you like your answers?

Please don't multi-post.
http://oakroadsystems.com/genl/unice.htm#xpost

--
-bts
-This space intentionally left blank.
Jul 21 '05 #2
On Sat, 12 Mar 2005, luke wrote:
I'm trying to use an image as a background for a text input box.


Then stop wanting that. With any luck it won't work, but in the
unfortunate event that it does, it tends to reduce usability.

Users know what an input area looks like on their particular browser,
and it does them no favours to confuse that expectation.

(I gather you also want to be killfiled for multiposting.)

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Domestos | last post: by
7 posts views Thread by Eduard Dewolf | last post: by
nathj
5 posts views Thread by nathj | last post: by
9 posts views Thread by Geoff Cox | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.