473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CSS alternative for simple table?

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.

Oct 11 '05 #1
3 2627
Els
ty*******@gmail.com 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
Oct 11 '05 #2
rf
Els wrote:
ty*******@gmail.com 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


or even
http://www.google.com.au/search?q=two+column+CSS+layout

--
Cheers
Richard.
Oct 11 '05 #3
Els
rf wrote:
Els wrote:
ty*******@gmail.com 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


or even
http://www.google.com.au/search?q=two+column+CSS+layout


That's the exact search term I used to find the url I gave <g>

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Oct 11 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dr. Laurence Leff | last post by:
I am having trouble with tables under docbook. I am using xmlto under Redhat Linux. When I process a simple table as below, I get an error message about the Unit of Measure. If I change the...
4
by: Daniel | last post by:
I'm having a tough time getting text and image to align in a table. When I add the image for some reason the text in that cell shifts to the bottom of the cell. Below is the code and the result. ...
18
by: Jeremy | last post by:
Can anyone point me to where I might find a simple example of coding to achieve the effect of a table row changing colour as the mouse moves over it? Presume the same effect may be possible for an...
0
by: Richard Fagen | last post by:
Hi Everyone, I'm trying to drag a table element and add a row. This sounds simple enough and I followed the steps in the "Web Matrix Guided Tour" ...
5
by: Jaybuffet | last post by:
a custom object. Similar to how I bind a collection of objects to a repeater. Is there a way to bind a single object to a Table? I could use a repeater, but seems over kill for a single object....
2
by: Lonnie | last post by:
It's been a while since I last did any programming in general, and VB in particular. All I want to do is create a simple table and populate it from user input. That's it. No more than that. ...
2
by: Aquila546 | last post by:
I am trying to input data from a .txt file into a table. I keep getting, the following message when I run this: Incorrect syntax near '155411287' Use Create Table .....
2
by: Swoozie Pellegrino | last post by:
Hi, all. I have a simple page that I want to creat that displays a table from a collection of objects that I have in memory. I'll need to set each row's background color on the fly, the color...
1
by: epilogue | last post by:
Hey guys Im pretty new to Java and while I am finding it enjoyable i am getting several errors!!! Do you think you could help me on this particular question of an Assignment im doing. I have to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.