473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

align a textarea box to the right of the page

1
I don't know how to right align a textarea box. I can use the center tag and the textarea box centers, but when I use the align=right attribute, the table stays at the left. How do I right align a textarea box?
Oct 10 '06 #1
7 38624
kestrel
1,071 Expert 1GB
you'd have to put the <textarea> tag into a <p> tag.

Expand|Select|Wrap|Line Numbers
  1. <p align="right"><textarea></textarea></p>
that works perfectly


hope this helps!

Devin Keogh
TheJetPage.com
Oct 10 '06 #2
drhowarddrfine
7,435 Expert 4TB
Since all of that was deprecated years ago it would be better to use CSS and do this:
Expand|Select|Wrap|Line Numbers
  1. <textarea style="float:right">hello</textarea>
Oct 11 '06 #3
kestrel
1,071 Expert 1GB
yeah thats better, disregard my first post
Oct 11 '06 #4
you can try this code i hope so it will help for you:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Right the textarea</title>
  5.     </head>
  6.     <body>
  7.     <div align = "right">
  8.     <textarea placeholder="noticeboard" cols="25" rows="15">
  9.  
  10.     </textarea> <br />
  11.     </div>
  12.     </body>
  13. </html>
Apr 1 '19 #5
gits
5,390 Expert Mod 4TB
thats really an old thread and the css solution shown by drhowarddrfine above is much preferable
Apr 1 '19 #6
AjayGohil
83 64KB
Try to this Style for align right
Expand|Select|Wrap|Line Numbers
  1. <textarea style="float: right;">Right Textarea</textarea>
Jun 14 '19 #7
gits
5,390 Expert Mod 4TB
yea - that solution was already provided in post #3 in 2011.
Jun 14 '19 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ben | last post by:
The page below isn't picking up details or location. What have I missed? Thanks in advance, Ben ____________________________________________ <?PHP
8
by: André Hänsel | last post by:
Hi! When I put a table into a table and try to align it right, it works in IE but not in Firefox. Simplest code to reproduce: <html> <body> <table style="width: 100%"> <tr>
14
by: jlemay | last post by:
if you look at http://www.emrose.net/contact1.html the last field is a textarea field and I can't make it align with the other text fields. it's pretty close, but this comes from trial and...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
1
by: Martin | last post by:
Dear group, I have a list in an access97 database that causes me trouble. The problem is that as default all the columns in the (multiselect) list are aligned to the left. I guess the trick...
8
by: ALI-R | last post by:
How do I allign all my content in aspx page in the middle of page like a lot of websites ? Dose it work with differnet screen resolutions? Thanks for your help.
5
by: Raj | last post by:
Hi, I have a ASP.NET project which is working fine and I need to align controls in a .aspx page. The webform( .aspx page) has variety of controls (labels, textboxes, radio buttons etc) and when...
0
by: Alex A. | last post by:
I have an html frameset page called index.htm. I have a frame that points to ae.aspx, I've changed the frame to point now at default.aspx. Yet when I run in debug mode I'm still opening ae.aspx,...
8
by: itsmenarwal | last post by:
HI Everyone I am using flowplayer for uploading videos so that client can play them.I am working on localhost.Now problem is that by default flowplayer comes in left hand side of the page.I want...
3
by: taurus89 | last post by:
halo!! when i login for the user it cannot go to the user page but go to admin page... plz help me... if(isset($_POST)) { if($_POST!='' && $_POST!='') { //Use the input username and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.