Click to See Complete Forum and Search --> : Positioning Question


Audioz
12-08-2004, 09:46 AM
Hello

Im having a little problem with CSS,to try and put a left and right box either side of a table,but having some trouble doing this,im also unsure of what type of positioning to choose,the top section I have positioned Absolute,but I don’t know if this is correct or ideal,what positioning type should I be using for each section of this?.
Theres an example of what im doing here,please ignore the color, its just while I experiment to get things correct.Any help at all will be great.

http://ringtonesbase.com

Audioz :)

NogDog
12-08-2004, 09:56 AM
If I understand your desire correctly, the simplest solution would probably be to float the left and right boxes. You could add to your CSS style (adjusting to desired width, adding margins, padding, etc. as desired):

div.left {
float: left;
width: 100px;
}
div.right {
float: right;
width: 100px;
}

Then in your HTML:

<div class=left>
<p>Text in the left box...</p>
</div>
<div class=right>
<p>Text in the right box...</p>
</div>
<table>
...
</table>

Audioz
12-08-2004, 11:01 AM
Hello NogDog

Thanks very much for that,il give it a try later on,hopefully its just what im looking for,greatly appreciatted.

Audioz :)