hi.. this is my html:
this is my css:
#name{ background-color: #FFFFFF; background-image: url("file:///Users/pallavi/Documents/workspace/PalCas/WebContent/images/forward_arrow.png"); background-position: 95% center; background-repeat: no-repeat; border: 1px solid grey; border-radius: 5px 5px 5px 5px; height: 30px; margin-left: 480px; margin-top: -180px; padding-left: 10px; width: 250px; }
i want to click img
background-image: url("file:///Users/pallavi/Documents/workspace/PalCas/WebContent/images/forward_arrow.png");
and open a new html.
how would i do that???
Please reply asap.
I don't understand, really.
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 ['a'] and I'm guessing you don't have one.
http://css-tricks.com/how-to-ask-a-good-question-in-the-forums/
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?
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?
Wrap the input in an anchor.
@websitecodetutorials
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. :)
I'm guessing this is related: http://css-tricks.com/forums/discussion/22872/need-an-input-type-textbox-with-image-and-rounded-corners
yes right..the same discussion..
if i wrap my input tag with an 'a' tag will it work?
Nope.
You haven't specified what it is you are trying to do.
What relation does the contents of the input have to the link?
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?
Please specify what you mean by 'next html'
Do you mean a set page that won't change?
yes.. a static html.. like i can do:
but in this case it is set as my background image for the textbox.. so hw to do for this particular case..
sorry code dint come: yes.. a static html.. like i can do:
<a href="my.html"><img src="abc.png"/></a>
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.
can this image be somehow put inside textbox? coz thats the requirement.. there should be some way to do it.??
Nope....there isn't....it's a textbox...it has text in it.
You might be able to fake something that LOOKS like just a textbox (see link below)....but otherwise....No.
http://codepen.io/Paulie-D/pen/IBihF
ok if i want to fake it as a text box, which has a clickable image as well, in which i can enter text then how can i do it.
ok i think i got it. i will try.. thanks a lotto
may be this help http://codepen.io/yoda/pen/ImxKE
hi.. this is my html:
this is my css:
i want to click img
and open a new html.
how would i do that???
Please reply asap.
I don't understand, really.
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 ['a'] and I'm guessing you don't have one.
http://css-tricks.com/how-to-ask-a-good-question-in-the-forums/
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?
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?
Wrap the input in an anchor.
@websitecodetutorials
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. :)
I'm guessing this is related: http://css-tricks.com/forums/discussion/22872/need-an-input-type-textbox-with-image-and-rounded-corners
yes right..the same discussion..
if i wrap my input tag with an 'a' tag will it work?
Nope.
You haven't specified what it is you are trying to do.
What relation does the contents of the input have to the link?
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?
Please specify what you mean by 'next html'
Do you mean a set page that won't change?
yes.. a static html.. like i can do:
but in this case it is set as my background image for the textbox.. so hw to do for this particular case..
sorry code dint come: yes.. a static html.. like i can do:
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.
can this image be somehow put inside textbox? coz thats the requirement.. there should be some way to do it.??
Nope....there isn't....it's a textbox...it has text in it.
You might be able to fake something that LOOKS like just a textbox (see link below)....but otherwise....No.
http://codepen.io/Paulie-D/pen/IBihF
ok if i want to fake it as a text box, which has a clickable image as well, in which i can enter text then how can i do it.
ok i think i got it. i will try.. thanks a lotto
may be this help http://codepen.io/yoda/pen/ImxKE