making an input box image clickable
# February 26, 2013 at 11:20 am
hi.. this is my html:
this is my css:
background-position: 95% center;
border: 1px solid grey;
border-radius: 5px 5px 5px 5px;
i want to click img
and open a new html.
how would i do that???
Please reply asap.# February 26, 2013 at 11:25 am
You can’t click a background image.
**Do you have a link?**
If you want to go to a different page you have to use an anchor link and I’m guessing you don’t have one.# February 26, 2013 at 11:32 am
I’m guessing this is related: http://css-tricks.com/forums/discussion/22872/need-an-input-type-textbox-with-image-and-rounded-corners# February 26, 2013 at 12:05 pm
OK….as I said, you can’t click a background image but you can have a link with a background image.
You have to have an anchor link in your HTML (ideally) and position it after the text area: http://codepen.io/Paulie-D/pen/yELfD
We may not be able to style it as you were hoping but this will give you an idea.
You must be logged in to reply to this topic.