开发者

CSS: "width" and "height" for cells

I have this page.

login: maria@mail.com
password: m

I've gave a width to "td.select_edad label" but it doesnt work..

I know it's deprecated, so what is your advice?

Another question: why "height" (also deprecated) is working ok for the fields of the filt开发者_Python百科er?


label is an inline element so width does not have any effect.

You can set the label to display:block and then it will work as you want.

By the way, width and height are definitely not deprecated in css. They are probably deprecated as inline attributes (if that´s the right word...) for tables.


My advice is don't use tables to layout forms. Use a fieldset and divs as necessary. Have a look at the WuFoo Form Gallery for inspiration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜