Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using <DIV> to position paragraphs

Posted on 1998-06-04
1
Medium Priority
?
200 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
1 Comment
 
LVL 1

Accepted Solution

by:
Tuff earned 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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…

824 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