Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: formatting data in text box


Message #1 by "Peter Duke" <peteydukie@y...> on Fri, 5 Apr 2002 20:20:55
I'm trying to get the data to align on the right side of a text box.  
i.e. "accounting" style.  My code is not working. <input type="text" 
name="txtReceipts" value="0" align="right">  Any ideas?  Thanks
Message #2 by Abdul Sami <abdul_sami_20@y...> on Fri, 5 Apr 2002 11:33:38 -0800 (PST)
try out this
<input type="text" style="text-align:right;" name="textfield" >.


--- Peter Duke <peteydukie@y...> wrote:
> I'm trying to get the data to align on the right side of a text
> box.  
> i.e. "accounting" style.  My code is not working. <input
> type="text" 
> name="txtReceipts" value="0" align="right">  Any ideas?  Thanks


=====
Abdul Sami

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
Message #3 by "Peter Duke" <peteydukie@y...> on Fri, 5 Apr 2002 20:55:55
I thought that would work too but it only aligns the text box to the right 
side of the cell. (this is in a table)

> try out this
<input type="text" style="text-align:right;" name="textfield" >.


--- Peter Duke <peteydukie@y...> wrote:
> I'm trying to get the data to align on the right side of a text
> box.  
> i.e. "accounting" style.  My code is not working. <input
> type="text" 
> name="txtReceipts" value="0" align="right">  Any ideas?  Thanks


=====
Abdul Sami

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
Message #4 by "Ethan Selzer" <ethanselzer@a...> on Fri, 5 Apr 2002 12:28:52 -0800
Hi Peter,

You can accomplish this with CSS for browsers that support it. 

<style type="text/css">
<!--
.alignRight {  text-align: right}
-->
</style>

<form name="form1" method="post" action="">
  <input type="text" name="textfield" class="alignRight">
</form>

Ethan

-----Original Message-----
From: Peter Duke [mailto:peteydukie@y...]
Sent: Friday, April 05, 2002 8:21 PM
To: Access ASP
Subject: [access_asp] formatting data in text box

I'm trying to get the data to align on the right side of a text box. 
i.e. "accounting" style.  My code is not working. <input type="text"
name="txtReceipts" value="0" align="right">  Any ideas?  Thanks

Message #5 by "Peter Duke" <peteydukie@y...> on Fri, 5 Apr 2002 21:58:52
Thanks, both ideas worked- at first I was only testing them in my html 
editor, not my browser.

> Hi Peter,

You can accomplish this with CSS for browsers that support it. 

<style type="text/css">
<!--
.alignRight {  text-align: right}
-->
</style>

<form name="form1" method="post" action="">
  <input type="text" name="textfield" class="alignRight">
</form>

Ethan

-----Original Message-----
From: Peter Duke [mailto:peteydukie@y...]
Sent: Friday, April 05, 2002 8:21 PM
To: Access ASP
Subject: [access_asp] formatting data in text box

I'm trying to get the data to align on the right side of a text box. 
i.e. "accounting" style.  My code is not working. <input type="text"
name="txtReceipts" value="0" align="right">  Any ideas?  Thanks


  Return to Index