Solved

Aligning text on a web page (justifying it)

Posted on 2000-03-14
4
155 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
ID: 2615256
<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
ID: 2615291
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
ID: 2623230
wizcool has already answered...
0
 
LVL 8

Expert Comment

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

xabi
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

785 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