Solved

Aligning text on a web page (justifying it)

Posted on 2000-03-14
4
153 Views
Last Modified: 2010-04-09
I have two links (e.g. CompanyA and CompanyB),

and I want to enter them in the top of my html page, the Company A aligned left (to the leftmost part of the screen) and the CompanyB at the rightmost part of the screen.

These two should be in the same line, i.e. the first line in my html, just after the body.

I thought that making a table with 1 row and two column would help, but how do I align the one to the left and the other to the right?

Thanx
0
Comment
Question by:dinosaurus
  • 2
4 Comments
 
LVL 8

Expert Comment

by:xabi
Comment Utility
<table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tr>
   <td align="left"><a href="http://www.company1.com">Company1</td>
   <td align="right"><a href="http://www.company2.com">Company2</td>
  </tr>
 </table>

xabi
0
 

Accepted Solution

by:
wizcool earned 100 total points
Comment Utility
Using a table you can align them like this :

<table width="100%">
  <tr>
    <td align=left width="50%">
      <a href=...>
    </td>
    <td align=right width="50%">
      <a href=...>
    </td>
  </tr>
</table>

You can change the values of table and td width as you like to suit your needs
0
 

Author Comment

by:dinosaurus
Comment Utility
wizcool has already answered...
0
 
LVL 8

Expert Comment

by:xabi
Comment Utility
My answer was right, and I was the first to answer the question, so what is the problem?

xabi
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now