![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The tutorial would seem to suggest that trying to layout the actual form usig CSS is not a good idea. |
#3
| |||
| |||
|
|
On Macromedia's site there is this CSS tutorial: http://www.macromedia.com/devnet/mx/...2004_cssp.html In the main content area of the page being used in this tutorial there is a form. The form itself is laid out using table. Why do it this way in a tutorial explaining CSS layout? Below is the code To my problem at hand, I was looking specifically for an example of how to layout a html form that has 2 columns - one containing text prompts and the other containing text input boxes. I also wanted to fix two buttons at the bottom of the form. The tutorial would seem to suggest that trying to layout the actual form usig CSS is not a good idea. I'm seeking comments/opinions here. And if you think that it's not a problem using CSS, I could use some pointers or an example. TIA. div class="feature" form method="post" action="#" id="loginform" table tr th><label for="username">Username:</label></th td><input type="text" name="username" tabindex="1" /></td /tr tr th><label for="password">Password:</label></th td><input type="password" name="password" tabindex="2" /></td /tr tr td> </td td><input class="submit" type="submit" value="Log in" tabindex="3" /></td /tr /table /form /div |
#4
| |||
| |||
|
|
Personally speaking I would use a two col table to layout the form. It's much simpler and tables are, despite what you read, better to use in some circumstances, this being one of them. Karl wrote: On Macromedia's site there is this CSS tutorial: http://www.macromedia.com/devnet/mx/...2004_cssp.html In the main content area of the page being used in this tutorial there is a form. The form itself is laid out using table. Why do it this way in a tutorial explaining CSS layout? Below is the code To my problem at hand, I was looking specifically for an example of how to layout a html form that has 2 columns - one containing text prompts and the other containing text input boxes. I also wanted to fix two buttons at the bottom of the form. The tutorial would seem to suggest that trying to layout the actual form usig CSS is not a good idea. I'm seeking comments/opinions here. And if you think that it's not a problem using CSS, I could use some pointers or an example. TIA. div class="feature" form method="post" action="#" id="loginform" table tr th><label for="username">Username:</label></th td><input type="text" name="username" tabindex="1" /></td /tr tr th><label for="password">Password:</label></th td><input type="password" name="password" tabindex="2" /></td /tr tr td> </td td><input class="submit" type="submit" value="Log in" tabindex="3" /></td /tr /table /form /div |
#5
| |||
| |||
|
|
In the main content area of the page being used in this tutorial there is a form. The form itself is laid out using table. Why do it this way in a tutorial explaining CSS layout? |
#6
| |||
| |||
|
|
I disagree. Forms are quite simple to layout using CSS. See, for example, this page - http://www.practicalcomponents.com/n.../amkor_rfq.htm |
#7
| |||
| |||
|
|
On Macromedia's site there is this CSS tutorial: http://www.macromedia.com/devnet/mx/...2004_cssp.html In the main content area of the page being used in this tutorial there is a form. The form itself is laid out using table. Why do it this way in a tutorial explaining CSS layout? |
#8
| |||
| |||
|
|
We'll agree to disagree. That page doesnt take much text enlargement before it breaks down. It would be difficult for the end user to see which category belongs to which text field. Why complicate the issue when a table will do it easier and quicker, plus keep elements from breaking. Murray *TMM* wrote: I disagree. Forms are quite simple to layout using CSS. See, for example, this page - http://www.practicalcomponents.com/n.../amkor_rfq.htm |
#9
| |||
| |||
|
|
I'm seeking comments/opinions here. And if you think that it's not a problem using CSS, I could use some pointers or an example. |
#10
| |||
| |||
|
|
That was just a moment of weakness. |
![]() |
| Thread Tools | |
| Display Modes | |
| |