HighDots Forums  

Moving text fields

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Moving text fields in the Macromedia Dreamweaver forum.



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

Default Moving text fields - 11-07-2005 , 12:27 AM






Ive stumbled across a rather anoying problem in dreamweaver. I have some text
in a layer. Beside the text to the right is a text field for users to enter a
user name. Underneith the text and text field is another line of text and
another text field for users to enter a password. Because the words 'User Name'
are longer than the word 'Password', it means that the two text fields arn't in
line with each other vertically: eg.

User Name: |_____|
Password: |_____|

The little blank areas represent the text fields if you didnt realise

Anyway, i cant move the text fields so they are inline with each other. I cant
just put a space between the word 'Password' and the text field for some
reason. Dreamweaver just wont let me. I also cant find any code so i can adjust
the text field's position anywhere either.

Any help would be appreciated. Thanks in advance.


Reply With Quote
  #2  
Old   
DaCrashster
 
Posts: n/a

Default Re: Moving text fields - 11-07-2005 , 12:42 AM






use a table to lay out your form in columns. or use ctr+shit+space to add
the spaces you wanted (&nbsp


"vinnie roe" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Ive stumbled across a rather anoying problem in dreamweaver. I have some
text
in a layer. Beside the text to the right is a text field for users to
enter a
user name. Underneith the text and text field is another line of text and
another text field for users to enter a password. Because the words 'User
Name'
are longer than the word 'Password', it means that the two text fields
arn't in
line with each other vertically: eg.

User Name: |_____|
Password: |_____|

The little blank areas represent the text fields if you didnt realise

Anyway, i cant move the text fields so they are inline with each other. I
cant
just put a space between the word 'Password' and the text field for some
reason. Dreamweaver just wont let me. I also cant find any code so i can
adjust
the text field's position anywhere either.

Any help would be appreciated. Thanks in advance.




Reply With Quote
  #3  
Old   
(_seb_)
 
Posts: n/a

Default Re: Moving text fields - 11-07-2005 , 01:50 AM



vinnie roe wrote:
Quote:
Ive stumbled across a rather anoying problem in dreamweaver. I have some text
in a layer. Beside the text to the right is a text field for users to enter a
user name. Underneith the text and text field is another line of text and
another text field for users to enter a password. Because the words 'User Name'
are longer than the word 'Password', it means that the two text fields arn't in
line with each other vertically: eg.

User Name: |_____|
Password: |_____|

The little blank areas represent the text fields if you didnt realise

Anyway, i cant move the text fields so they are inline with each other. I cant
just put a space between the word 'Password' and the text field for some
reason. Dreamweaver just wont let me. I also cant find any code so i can adjust
the text field's position anywhere either.

Any help would be appreciated. Thanks in advance.

use a table:

____________________________
Quote:
| __________ |
user Name: | |_________| |
______________|_____________|
| __________ |
Password: | |_________| |
______________|_____________|
--
seb ( --- (AT) webtrans1 (DOT) com)
http://webtrans1.com | high-end web design
Downloads: Slide Show, Directory Browser, Mailing List


Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Moving text fields - 11-07-2005 , 07:36 AM



..oO(vinnie roe)

Quote:
User Name: |_____|
Password: |_____|

The little blank areas represent the text fields if you didnt realise

Anyway, i cant move the text fields so they are inline with each other. I cant
just put a space between the word 'Password' and the text field for some
reason.
Wouldn't help at all. With a different font it will be out of alignment
again.

Quote:
Any help would be appreciated. Thanks in advance.
<table><tr>
<td><label for="name">User Name:</label></td>
<td><input id="name" name="name"></td>
</tr><tr>
<td><label for="pw">Password:</label></td>
<td><input id="pw" name="pw"></td>
</tr></table>

Micha


Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: Moving text fields - 11-07-2005 , 01:10 PM



On Mon, 07 Nov 2005 12:28:23 -0500, "(_seb_)" <seb (AT) webtrans1 (DOT) com> wrote:

Quote:
but you have to set a width for your label (8em).
So what if you later add a label that needs more space?
With a table, no need to set any width.

Set a width that works for your labels. If the actual label text is
wider than the width, it will wrap, just like a table will if the
content is too wide for the cell.

Note that I never said this method was better than a table. I just
offered it as another alternative.

Gary


Reply With Quote
  #6  
Old   
(_seb_)
 
Posts: n/a

Default Re: Moving text fields - 11-07-2005 , 03:20 PM



Gary White wrote:
Quote:
On Mon, 07 Nov 2005 12:28:23 -0500, "(_seb_)" <seb (AT) webtrans1 (DOT) com> wrote:


but you have to set a width for your label (8em).
So what if you later add a label that needs more space?
With a table, no need to set any width.



Set a width that works for your labels. If the actual label text is
wider than the width, it will wrap, just like a table will if the
content is too wide for the cell.

Note that I never said this method was better than a table. I just
offered it as another alternative.

Gary
I know. I was just addressing what I consider as an inconvenience of the
css option compared to the table option in this case: that you have to
set a width for a floating element, therefore fixing the size of a
container that should not need to be fixed.
That's just my take on it (I think the css vs. table discussion is
healthy and legitimate, not frivolous)

--
seb ( --- (AT) webtrans1 (DOT) com)
http://webtrans1.com | high-end web design
Downloads: Slide Show, Directory Browser, Mailing List


Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: Moving text fields - 11-07-2005 , 07:09 PM



On Mon, 07 Nov 2005 15:20:59 -0500, "(_seb_)" <seb (AT) webtrans1 (DOT) com> wrote:

Quote:
I know. I was just addressing what I consider as an inconvenience of the
css option compared to the table option in this case: that you have to
set a width for a floating element, therefore fixing the size of a
container that should not need to be fixed.
That's just my take on it (I think the css vs. table discussion is
healthy and legitimate, not frivolous)

Both are good tools to have in your toolbox. Both are useful at times.

Gary


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 - 2009, Jelsoft Enterprises Ltd.