LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2003, 03:43 AM   #1
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
alignment justified in HTML


Hello,

I have a HTML page which has a table on it. I would like to align the text in the table justified.

When I tried

<table>
<tr>
<td align="justify">some long text</td>
</tr>
</table>

it didn't work. So I had to solve it this way:

<table>
<tr>
<td>
<p align="justify">some long text</p>
</td>
</tr>
</table>

Isn't there a way of alinging the table cells instead of using a paragraph? Maybe with CSS?

Last edited by nephilim; 10-31-2003 at 03:46 AM.
 
Old 10-31-2003, 07:12 AM   #2
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Original Poster
Rep: Reputation: 30
Well, I found the solution using CSS. Just a simple

text-align: justify;

did the trick. I don't know why I didn't think of that before.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alignment of text in C pritchardtom Programming 3 11-21-2005 04:06 PM
Firewalls for home networks, is separate justified? setiDude Linux - Security 12 10-18-2004 08:55 PM
about alignment eshwar_ind Programming 5 10-18-2004 08:27 AM
glabels alignment Spaz17 Linux - Software 1 11-28-2003 01:17 PM
Printer Alignment Looking_Lost Linux - Hardware 2 04-26-2003 08:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration