Solved

Using <DIV> to position paragraphs

Posted on 1998-06-04
1
164 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spacing 5 57
Printing a Google Form 2 25
Bootstrap on PLNKR 3 14
Why my select dropdown does not work? 8 27
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now