Solved

Aligning text on a web page (justifying it)

Posted on 2000-03-14
4
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

627 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