Solved

Using <DIV> to position paragraphs

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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)

770 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