Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Aligning text on a web page (justifying it)

Posted on 2000-03-14
4
Medium Priority
?
161 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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

715 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