English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm working on a website and would like it to have its text-input boxes to have rounded corners. I can do it in a table, but I'd like to be able to do it with CSS so the look of the input box goes throughout the site.

What I have now is a 3x3 table, with the outside cells making up the border, and the inside cell being the input box. My graphics are such that the left and right middle cells are the "rounded" parts (think "(" and ")") and the top-middle and bottom-middle cells are actually 1x1 pixel graphics (the intent being that I can use this for a short input [ie, "age",] or a longer input type [street address] without having to create new graphics for each possible text-input-box length.) The four remaining cells (the corners) have transitionary graphics (that help the border go from the curved sides to the straight tops and bottoms.)

My table-based one is located at http://oddshift.com/rctest/ so you can check it out and let me know if what I'd like to do is possible.
Tnx!

2007-04-05 22:04:59 · 3 answers · asked by Mike Z 5 in Computers & Internet Programming & Design

3 answers

there's not really a way to do this by just redefining the input tag - you still need to suround your input with some extra DIVs - there's a lot of article out there about CSS and Round corners - hope the below helps

2007-04-05 23:17:35 · answer #1 · answered by circusmort 5 · 0 1

you are able to try this effect in some diverse methods. one way is through CSS and the different is through a table with some pics. i detect the tables technique a lot more convenient to artwork with, yet extremely some human beings like the CSS way so I genuinely have presented a tutorial that shows you a thanks to attempt this through CSS. both way, you ought to locate this tutorial effective and would properly be some thing you are able to enhance on. the theory is exceedingly undemanding to adhere to. i'm hoping it is what you've been searching for. strong success!

2016-12-03 09:23:58 · answer #2 · answered by mayze 3 · 0 0

This seems to be what you are looking for.
Though of course it is not CSS, but that is explained.

2007-04-05 23:02:26 · answer #3 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers