- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
http://codepen.io/d9esco/pen/PZrbrp
I have this code and what you’re going to see is a input box and a button connected to the input box the button has a search label on it and it also has a little icon from the font awesome selection that is a search magnifying glass. I want this magnifying glass inside of the input box but the thing is you can’t put it in the input box because the input box only shows the value inside of it and not just something between two times like the button. I tried changing the input tag into a button tag and change in the type of input to see if it work but it didn’t. how do I get a small image icon or a font awesome text to appear inside of the value of an input box maybe it’ll have to be the value because I don’t know if there’s another method of showing text inside of a input box
ok thanks but I’m just wondering what’s the difference between value and place holder and I understand what happens when you use either of them and put text in either of them I was just wondering why use one of the other I’m going to get this is a pretty good example but I was hoping you could elaborate also I tried changing every instance of the word placeholder to value to see if I would still get the magnifying glass in the input box but it didn’t work so I’m just wondering what that’s about
There in no point in using the value
unless you’re actually going to submit and use that value somewhere.
Since this is clearly just for decoration, use a placeholder…that’s what it’s for.