Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 08-07-2009, 03:41 PM   #1
Azure
Had an idea!
 
Azure's Avatar
 
Join Date: Oct 2005
Exp:
Default Dreamweaver question

Okay, I've searched all over for this, and can't find anything.

I'm making a HTML form with Dreamweaver. I've already put in all the text boxes, check boxes, etc, etc....and I want them to line up.

And I have no idea how to make them do that.

Help???
Azure is offline   Reply With Quote
Old 08-07-2009, 04:16 PM   #2
maverickstruth
Backup Goalie
 
maverickstruth's Avatar
 
Join Date: Mar 2006
Location: Calgary
Exp:
Default

I presume that the length of your labels is what's causing the issue. If so, there are a couple of ways you can tackle this, depending on your comfort with HTML and/or CSS.

The quick and dirty way is to use a table with the borders turned off. Labels go left, fields go right. But when I say 'dirty', I mean it. Folks who rely on screenreaders will hate you

Next option, is to just put the fields under the labels. This is clean, and if you format it nicely, it can look just as nice as having the labels side-by-side with the fields.

Finally, if you're comfortable mucking around with the CSS and HTML, there's a whole variety of techniques you can use. This post from Smashing Magazine has some fantastic options.

Personally, if you want the best of all worlds and don't want to fight too much with it, I'd just put the labels above the fields and call it good. Use lots of whitespace to separate different items, and you'll be golden.
maverickstruth is offline   Reply With Quote
Old 08-07-2009, 04:22 PM   #3
Azure
Had an idea!
 
Azure's Avatar
 
Join Date: Oct 2005
Exp:
Default

I'm out of thanks, but thanks!

I never actually thought about putting the labels above the fields. That would work perfectly.

Azure is offline   Reply With Quote
Old 08-07-2009, 07:34 PM   #4
Yeah_Baby
Franchise Player
 
Yeah_Baby's Avatar
 
Join Date: Oct 2007
Location: still in edmonton
Exp:
Default

Dreamweaver, I believe it can get me through the night.
__________________
Quote:
Originally Posted by Locke View Post
Thats why Flames fans make ideal Star Trek fans. We've really been taught to embrace the self-loathing and extreme criticism.
Check out The Pod-Wraiths: A Star Trek Deep Space Nine Podcast
Yeah_Baby is offline   Reply With Quote
Old 08-08-2009, 01:26 AM   #5
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

Another option would be to wrap the form in a table. This would let you control the overall layout of the form and it's fields much easier then defining CSS styles for it.

But, as an overall best practice, follow the advice given in the link provided by maverickstruth. Also - stop using WYSIWYG editors, more trouble then it's worth. /soapbox
llama64 is offline   Reply With Quote
Reply


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

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

Forum Jump


All times are GMT -6. The time now is 03:17 AM.

Calgary Flames
2023-24




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021