- This topic is empty.
February 26, 2013 at 11:20 am #42989
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:21 am #126148Kitty GiraudelParticipant
I don’t understand, really.February 26, 2013 at 11:25 am #126150
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:26 am #126151
this is an input box which has an arrow image. i want click arrow image.
Is there any other way to do it.. any change in html or css can be done?February 26, 2013 at 11:28 am #126152
**WE NEED A LINK or A CODEPEN.**
Frankly, I’m not sure what you are trying to do.
What kind of input..there are several?February 26, 2013 at 11:29 am #126153PicnicTutorialsParticipant
Wrap the input in an anchor.February 26, 2013 at 11:30 am #126154
I’m assuming that he wants the new page to be related to the contents of the input…so that probably won’t work.
I’m feeling a jQ solution coming on. :)February 26, 2013 at 11:32 am #126155
I’m guessing this is related: https://css-tricks.com/forums/discussion/22872/need-an-input-type-textbox-with-image-and-rounded-cornersFebruary 26, 2013 at 11:34 am #126156
yes right..the same discussion..
if i wrap my input tag with an ‘a’ tag will it work?February 26, 2013 at 11:35 am #126157
You haven’t specified what it is you are trying to do.
What relation does the contents of the input have to the link?February 26, 2013 at 11:37 am #126158
see i have this textbox..
inside this textbox i wanna write something and hit the image and it will go to next html.. hw can i achieve this?February 26, 2013 at 11:39 am #126159
Please specify what you mean by ‘next html’
Do you mean a set page that won’t change?February 26, 2013 at 11:43 am #126161February 26, 2013 at 11:45 am #126163February 26, 2013 at 12:05 pm #126165
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.
- The forum ‘CSS’ is closed to new topics and replies.