Solved

Aligning text on a web page (justifying it)

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 88
Accordion won't close correctly 5 17
Need advice on an App idea......but who do I ask? 2 69
send html form with multipe immages as buttons 2 37
Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

732 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