![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to do something like: label1 (100px;left-margin:10px) value 1 (200px) label2 (100px) value2 (200px, right margin:10px) Repeat the above so that all labels and values line up. |
#3
| |||
| |||
|
|
Hi, I am trying to align a couple of rows of data/label using CSS and am failing. I tried to use span with width but soon realized can't assign width to inline elements. I am trying to do something like: label1 (100px;left-margin:10px) value 1 (200px) label2 (100px) value2 (200px, right margin:10px) |
|
Repeat the above so that all labels and values line up. |
#4
| |||
| |||
|
|
ashkaa... (AT) hotmail (DOT) com wrote: I am trying to do something like: label1 (100px;left-margin:10px) * *value 1 (200px) * * * * * label2 (100px) * * *value2 (200px, right margin:10px) Repeat the above so that all labels and values line up. It looks suspiciously like tabular data. If it is, why don't you use a table? That's what it's for. -- Berg |
#5
| |||
| |||
|
|
On Feb 26, 7:10*pm, Bergamot <berga... (AT) visi (DOT) com> wrote: ashkaa... (AT) hotmail (DOT) com wrote: I am trying to do something like: label1 (100px;left-margin:10px) * *value 1 (200px) * * * * * label2 (100px) * * *value2 (200px, right margin:10px) Repeat the above so that all labels and values line up. It looks suspiciously like tabular data. If it is, why don't you use a table? That's what it's for. -- Berg It is actually a form. That's why I did not want to use tables. If I was merely displaying data, I would have used a table. It is for asp.net page, the data comes from the database. I just want to line up the labels and data without using tables. If it is not possible, or does not make sense, then I will use table, but I thought it was discouraged to do so. |
#6
| |||
| |||
|
|
It is possible and it does make sense but you still should use a table because it makes more sense to do this. It is like this. If you are discouraged from using a hammer and well-aimed chisel on an accessible-by-spanner nut, this does not mean that you should use a hammer and chisel on an accessible-by-spanner nut on a motor bike or boat or washing machine. |
#7
| |||
| |||
|
|
In article 06d32acd-dfc6-4e94-bec4-b3d4b01c3... (AT) p43g2000hsc (DOT) googlegroups.co m>, *ashkaa... (AT) hotmail (DOT) com wrote: On Feb 26, 7:10*pm, Bergamot <berga... (AT) visi (DOT) com> wrote: ashkaa... (AT) hotmail (DOT) com wrote: I am trying to do something like: label1 (100px;left-margin:10px) * *value 1 (200px) * * * * * label2 (100px) * * *value2 (200px, right margin:10px) Repeat the above so that all labels and values line up. It looks suspiciously like tabular data. If it is, why don't you use a table? That's what it's for. -- Berg It is actually a form. That's why I did not want to use tables. If I was merely displaying data, I would have used a table. It is for asp.net page, the data comes from the database. I just want to line up the labels and data without using tables. If it is not possible, or does not make sense, then I will use table, but I thought it was discouraged to do so. It is possible and it does make sense but you still should use a table because it makes more sense to do this. It is like this. If you are discouraged from using a hammer and well-aimed chisel on an accessible-by-spanner nut, this does not mean that you should use a hammer and chisel on an accessible-by-spanner nut on a motor bike or boat or washing machine. -- dorayme- Hide quoted text - - Show quoted text - |
#8
| |||
| |||
|
|
On Feb 27, 12:34*am, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: In article 06d32acd-dfc6-4e94-bec4-b3d4b01c3... (AT) p43g2000hsc (DOT) googlegroups.co m>, ... It is actually a form. That's why I did not want to use tables. If I was merely displaying data, I would have used a table. It is for asp.net page, the data comes from the database. I just want to line up the labels and data without using tables. If it is not possible, or does not make sense, then I will use table, but I thought it was discouraged to do so. It is possible and it does make sense but you still should use a table because it makes more sense to do this. ... OK, I am totally confused now. I hear that it is good design not to use tables when I am not just displaying data (where it makes sense to use tables.) Also, to comply with section 508 (I think it is 508), use of tables is also discouraged since some readers have diffciulty reading tables. But now I am being told it is OK to use tables, even if I am not just displaying data. Should I, ot shouldn't I, use CSS if all I am doing is aligning a bunch of controls (labels, dropdowns, textboxes, ..) on a page? |
#9
| |||
| |||
|
|
"dorayme" <doraymeRidThis (AT) optusnet (DOT) com.au> wrote in message news:doraymeRidThis-48E54C.16342527022008 (AT) news-vip (DOT) optusnet.com.au... It is possible and it does make sense but you still should use a table because it makes more sense to do this. It is like this. If you are discouraged from using a hammer and well-aimed chisel on an accessible-by-spanner nut, this does not mean that you should use a hammer and chisel on an accessible-by-spanner nut on a motor bike or boat or washing machine. What? |
#10
| |||
| |||
|
|
If you are displaying tables |
![]() |
| Thread Tools | |
| Display Modes | |
| |