HighDots Forums  

D. McLellan's CSS tutorial - why a table?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss D. McLellan's CSS tutorial - why a table? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karl
 
Posts: n/a

Default D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 05:41 AM







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>






Reply With Quote
  #2  
Old   
Massimo Foti
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 05:50 AM






"Karl" <kthompson (AT) nospam (DOT) pine-grove.com> wrote

Quote:
The tutorial would seem to suggest that trying to layout the actual form
usig CSS is not a good idea.
I don't have an answer to this (I only have some very personal opinions),
but this page could be a good starting point if you are looking for
additional info:

http://css-discuss.incutio.com/?page=FormElements

----------------------------
Massimo Foti
DW tools: http://www.massimocorner.com
CF tools: http://www.olimpo.ch/tmt/
----------------------------





Reply With Quote
  #3  
Old   
Osgood
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:05 AM



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:
Quote:
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







Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:34 AM



I disagree. Forms are quite simple to layout using CSS.

See, for example, this page -

http://www.practicalcomponents.com/n.../amkor_rfq.htm

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
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









Reply With Quote
  #5  
Old   
David Powers
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:40 AM



Karl wrote:
Quote:
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?
Perhaps if you read the W3C specifications, you might not need to ask
the question. Here is the very first sentence in the HTML 4.01
definition of tables:

"The HTML table model allows authors to arrange data -- text,
preformatted text, images, links, forms, form fields, other tables, etc.
-- into rows and columns of cells."

http://www.w3.org/TR/html4/struct/tables.html#h-11.1

The myth that tables go counter to the spirit of CSS is precisely that -
a myth.

--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
http://computerbookshelf.com


Reply With Quote
  #6  
Old   
Osgood
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:41 AM



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:

Quote:
I disagree. Forms are quite simple to layout using CSS.

See, for example, this page -

http://www.practicalcomponents.com/n.../amkor_rfq.htm



Reply With Quote
  #7  
Old   
irvin
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:53 AM



"Karl" <kthompson (AT) nospam (DOT) pine-grove.com> wrote in message

Quote:
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?

Because there's nothing wrong with using a table to lay out a form, when
necessary.


--
Irvin
-------------------------
http://www.pixel69.com




Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:56 AM



Oh, heck. I'll just specify the text size in pixels, then....

<ducking and running>

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
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





Reply With Quote
  #9  
Old   
.: Nadia :. *TMM*
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 06:59 AM



As already pointed out, there is no hard and fast rule. Nothing wrong at
all with using a table to layout a form.
I have a styled form here that uses a 2 column table:
http://www.dreamweaverresources.com/...tyled_form.htm


--
Nadia
--------------------------------------------
Templates | http://www.DreamweaverResources.com
Dropdown Menu Designs | SEO Articles |Tutorials
CSS Templates | http://www.dreamweaverresources.com/CSS-templates
---------------------------------------------
Team MM Volunteer for Dreamweaver
www.macromedia.com/go/team
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
---------------------------------------------
Skype ID: nadiaperre
---------------------------------------------

"Karl" <kthompson (AT) nospam (DOT) pine-grove.com> wrote


Quote:
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.



Reply With Quote
  #10  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: D. McLellan's CSS tutorial - why a table? - 05-02-2005 , 07:17 AM



Slightly longer than a moment, however.... 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"irvin" <noone (AT) none (DOT) com> wrote

Quote:
That was just a moment of weakness.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.