Aligning text on a web page (justifying it)

Posted on 2000-03-14
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?

Question by:dinosaurus
  • 2

Expert Comment

ID: 2615256
<table cellpadding="0" cellspacing="0" border="0" width="100%">
   <td align="left"><a href="">Company1</td>
   <td align="right"><a href="">Company2</td>


Accepted Solution

wizcool earned 100 total points
ID: 2615291
Using a table you can align them like this :

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

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

Author Comment

ID: 2623230
wizcool has already answered...

Expert Comment

ID: 2623346
My answer was right, and I was the first to answer the question, so what is the problem?


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bootstrap 3 and Angular 2 12 55
Printing a Google Form 2 25
Adding a Li to a UL after a specified Li contents 2 46
iframe detection of parent window scale 20 60
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 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

16 Experts available now in Live!

Get 1:1 Help Now