Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-08-2009
Member
 
Join Date: Apr 2009
Posts: 69
How to Align text inserted in html table format

I have number of tables designed in my web pages, I have entered lot of text messages as paragraphs as well as list of table content, but when I try to align the text as per requirement it does not allow me to do so, How should I do that, do i need to insert any tags to the paragraphs or content.
Reply With Quote
  #2  
Old 11-08-2009
Member
 
Join Date: Apr 2008
Posts: 117
Re: How to Align text inserted in html table format

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. The value for each attribute inside the tag is enclosed in quotation marks, only around the value and not around the attribute. <TABLE attribute="value">. <TABLE WIDTH="250" BORDER="2" BORDERCOLOR="blue" CELLPADDING="7" CELLSPACING="3" VALIGN="top" ALIGN="right">
Reply With Quote
  #3  
Old 11-08-2009
Member
 
Join Date: Jan 2009
Posts: 163
Re: How to Align text inserted in html table format

To align the text or objects in a cell to the left side of the cell, the line ALIGN="left" needs to be added to the <TD> tag, so the final result looks, Add the border attribute to the table tag, setting it equal to 1, and a sentence between the <td></td> tags as shown:
<table border="1">
<tr>
<td>My Table</td>
</tr>
</table>
Reply With Quote
  #4  
Old 11-08-2009
Member
 
Join Date: Feb 2006
Posts: 185
Re: How to Align text inserted in html table format

ALIGN values of left | center | right have been defined by the HTML 3.2 specification. The default value is "left". Add the attribute 'align' and set it equal to 'right' to the beginning <div> tag 'as shown:
<div align="right"> Save and upload the document to your server. If you do not specify a border attribute the table will be displayed without any borders. If you do not code the align attribute the browser will assume that the table is aligned to the left. User agents may exploit the head/body/foot division to support scrolling of body sections independently of the head and foot sections.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Align text inserted in html table format"
Thread Thread Starter Forum Replies Last Post
How to convert math text PDF format to Kindle readable format The#Gaelic Portable Devices 7 23-02-2012 12:09 PM
How to convert HTML to TEXT format ? Custidio Windows Software 5 09-02-2010 02:22 AM
How can I convert text data into table format? Ram Bharose Windows Software 7 30-12-2009 02:58 PM
problem with vertical text align Vicious Software Development 4 27-08-2008 12:56 PM
In HTML table how can I wrap the text ? Matellis Software Development 5 20-05-2008 07:48 PM


All times are GMT +5.5. The time now is 01:54 PM.