| Author |
CSS alternative for simple table?
|
|
| typingcat@gmail.com 2005-10-11, 3:25 am |
| 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.
| |
|
| typingcat@XXXXXXXXXX wrote:
> 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.
[snip]
http://glish.com/css/home.asp
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Squeeze - Jumping
| |
|
|
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |