jep_657 — 2011-12-09T00:46:55-05:00 — #1
Can anyone give me an example of rounded input text using image?
ralphm — 2011-12-09T08:34:56-05:00 — #2
Could you say a bit more about what you mean? It's not clear (to me at least) what you mean by 'rounded input text'.
imaginekitty — 2011-12-09T10:55:55-05:00 — #3
It is a bit confusing. Do you mean something like this: http://imaginekitty.com/cssExamples/roundInput.html
jep_657 — 2011-12-11T20:59:56-05:00 — #4
Your example is correct. But, is it possible if we dont use full image?
just a normal input...but just play with the css only?
<input class="class_name" name="input_name">
--do rounded corners css with image
I know that in CSS3 there is a border-radius solution.
But Im not using CSS3. And this is my only choice. Play with CSS.
I will not use (div + input + div) in HTML. Just pure CSS.
Is there any way?
ralphm — 2011-12-11T21:33:16-05:00 — #5
It's not really clear what you are asking here. The example linked above just uses CSS with a background image. Isn't that what you want?
jep_657 — 2011-12-11T21:42:16-05:00 — #6
Yes, it is what i want but it is not a full image...the above example has the
fixed width of the input. Basically, i want to put a curve in left side and
curve in the right side. And CSS3 only support that. Since, im not using CSS3, is it possible
to do that playing in CSS only.
ralphm — 2011-12-11T21:46:03-05:00 — #7
Yes, easy with CSS and background images. One way is to place the background images as generated content on the input via :before and :after. Could you provide a screen shot of the look you want?
jep_657 — 2011-12-11T21:54:35-05:00 — #8
Im using IE... if im not wrong :before and :after is not supported by IE.
imaginekitty — 2011-12-11T22:00:48-05:00 — #9
:before and :after is not required if you use the sliding doors technique which may require some additional markup. Maybe not.
That would be nice.
ralphm — 2011-12-11T22:10:21-05:00 — #10
Only in obsolete versions of IE (7 and under).
Yes, would normally require more markup, so I suggested :before/:after since the OP indicated a preference for no extra markup. But ultimately one can't be too picky.
jep_657 — 2011-12-11T22:11:27-05:00 — #11
I attached the screenshot.
border:1px solid #800000;
<input class="INPUT_CLASS" name="input_name">
jep_657 — 2011-12-11T22:12:32-05:00 — #12
So, hopefully you can help me with :before and :after in css.
imaginekitty — 2011-12-11T22:13:47-05:00 — #13
OK, no extra markup here: http://imaginekitty.com/cssExamples/roundinput.2.html
I couldn't view the attachment as it seems to be "Pending Approval" so I just went with my original purposely ugly images.
jep_657 — 2011-12-11T22:15:32-05:00 — #14
Anyway, im using IE9...Is :before and :after still working in IE9?
imaginekitty — 2011-12-11T22:17:17-05:00 — #15
You don't need it.
imaginekitty — 2011-12-11T22:21:27-05:00 — #16
Your attached image showed up but it doesn't show what we need. We need what you want it to look like not what it looks like now. You should be able to work with the technique I showed though. Give it a try.
ralphm — 2011-12-11T22:21:58-05:00 — #17
Duh, silly me. I didn't notice that you have the left rounded corner on the label. Nice work.
Yes, it does work, but as imaginekitty is saying, you can use one bg image without extra markup.
Your screen shot does not include rounded sides, which was part of the point of asking for a screen shot.
jep_657 — 2011-12-11T22:30:20-05:00 — #18
Okay, thanks imaginekitty...i will give it a try...
imaginekitty — 2011-12-11T22:31:11-05:00 — #19
Danke. Use what's there unless you can't and you usually can.
jep_657 — 2011-12-11T22:48:46-05:00 — #20
I tried :before.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
content:"Read this -";
<p>My name is Donald</p>
<p>I live in Ducksburg</p>
It is not working in IE9. Why?
next page →