Solved

Using <DIV> to position paragraphs

Posted on 1998-06-04
1
196 Views
Last Modified: 2006-11-17
What I would like to do is create columns with each para and I thought I could do it using a <DIV> tag which specifies the positioning. I want the left and right to appear next to each other, not above/below each other. I have the following code;

<body>
<div id="left" style="positioning:absolute; top:100; left:10; width:200">

<p>left left left left left left left left left left left left left left left left left
left </p>
</div><div id="right" style="positioning:absolute; top:100; left:210; width:200">

<p>right right right right right right right right right right right right right right
right </p>
</div>
</body>
0
Comment
Question by:jcorbin
[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
1 Comment
 
LVL 1

Accepted Solution

by:
Tuff earned 50 total points
ID: 1844090
jcorbin,

The <div> tag is the same as the <p> tag all it does is create a new paragraph...there is only 2 ways that I know of to create text the way you want...one is by using tables or you can use the <multicol> tag, here is an example.....

P.S. The only draw back of this tag is it only works in Netscape browsers.

<html>
<head>
<title>LLL</title>
</head>
<body>
<multicol cols=2>

<!-- NOTE: You can do as many cols=# as you like -->

left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left left
<p>
right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right right

</multicol>


</body>
</html>

The only other way to create text next to each other is to put them into tables.

I hope this helps.

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

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 to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

635 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