CSS alternative for simple table?

Giganews Newsgroups
Subject: CSS alternative for simple table?
Posted by:  typingc…@gmail.com
Date: 10 Oct 2005

What I'm trying to show is very simeple like this
<table>
<tr>
  <td width=70%>LEFT CONTENTS</td>
  <td width=30%>RIGHT CONTENTS</td>
</tr>
</table>

But when I tried to use CSS instead of table,
it didn't go well. Is there any way to implement this?
I tried the following but all failed. Thanks.

#leftcontent
{
    background:red;
    width:70%;
}
#rightcontent
{
    left:70%;
    width:30%;
}
Made it look like
LEFT CONTENTS
RIGHT CONTENTS

#leftcontent
{
        position:relative;
    background:red;
    width:70%;
}
#rightcontent
{
        position:relative;
    left:70%;
    width:30%;
}
Made it look like
LEFT CONTENTS
              RIGHT CONTENTS

#leftcontent
{
        position:absolute;
    background:red;
    width:70%;
}
#rightcontent
{
        position:absolute;
    left:70%;
    width:30%;
}
Made it look like
LEFT CONTENTS RIGHT CONTENTS
but the follwing contents were put under left and right contents.

Replies