473,387 Members | 1,504 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,387 software developers and data experts.

Table troubles

Hi, it it possible to have 2 tables on one line side by side ?

This is the code I am using, as you can see it places the tables one under the other, I am not sure what I need to change.Do I need to combine the 2 into one table, and if so how do I work both sets of top and bottom images in?

Thanks in advance.

<table width="300"cellpadding="0"cellspacing="0"border="0 "><tr><td align="center"bgcolor="#c5b48c"><img

src="images/1.gif" /></td></tr>
<tr><td align="center"bgcolor="#c5b48c">
Blah blah blah blah blah blah
</td></tr><tr><td align="center"><img src="images/2.gif" /></td></tr></table>




<table width="300"cellpadding="0"cellspacing="0"border="0 "><tr><td align="center"bgcolor="#e4d9c0"><img

src="images/1a.gif" /></td></tr>
<tr><td align="center"bgcolor="#e4d9c0">
Blah blah blah blah blah blah
</td></tr><tr><td align="center"><img src="images/2a.gif" /></td></tr></table>
Aug 1 '07 #1
7 1079
drhowarddrfine
7,435 Expert 4TB
In css:
table{float:left}

Never use tables to layout pages.
Aug 1 '07 #2
Thanks but I dont know how to do it any other way could you give me a more detailed description ( or point me in the direction of where I could get some more information)

Thanks.
Aug 1 '07 #3
drhowarddrfine
7,435 Expert 4TB
Go to W3Schools and read about CSS.
Aug 1 '07 #4
Andelys
47
Hi, it it possible to have 2 tables on one line side by side ?

This is the code I am using, as you can see it places the tables one under the other, I am not sure what I need to change.Do I need to combine the 2 into one table, and if so how do I work both sets of top and bottom images in?

Thanks in advance.

<table width="300"cellpadding="0"cellspacing="0"border="0 "><tr><td align="center"bgcolor="#c5b48c"><img

src="images/1.gif" /></td></tr>
<tr><td align="center"bgcolor="#c5b48c">
Blah blah blah blah blah blah
</td></tr><tr><td align="center"><img src="images/2.gif" /></td></tr></table>




<table width="300"cellpadding="0"cellspacing="0"border="0 "><tr><td align="center"bgcolor="#e4d9c0"><img

src="images/1a.gif" /></td></tr>
<tr><td align="center"bgcolor="#e4d9c0">
Blah blah blah blah blah blah
</td></tr><tr><td align="center"><img src="images/2a.gif" /></td></tr></table>
Yes it is, But if you wonna be sure that they are on the same line would i suggest that you put the 2 tables inside a main table.
I can show you an example:

[HTML]
<table>
<tr>
<td>[here goes code for table 1]</td>
<td>[here goes code for table 2]</td>
</tr>
</table>

[/HTML]
Aug 2 '07 #5
drhowarddrfine
7,435 Expert 4TB
No. Never use tables for layout.
Aug 2 '07 #6
Andelys
47
Why?
.....................
Aug 2 '07 #7
drhowarddrfine
7,435 Expert 4TB
Tables are for tabular data only not for page layout. At one time, years ago, it was the best method for arranging elements on a page. But now we have CSS which is more flexible, easier to control, faster to download, more SEO friendly works with XML and the DOM and a host of other advantages. Tables are now relegated to their original use.
From the guy who first created the idea of tables for page layout: The Web is Ruined and I Ruined it
also
Tables for layout is stupid.
Aug 3 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: lmckaha | last post by:
Hi, Mysql version: 3.23.49 Solaris version: 2.7 gcc compiler version: 2.95.2 Python : 2.2.2 I'm evaluating the C and C++ API to decide which one to bye but I have many troubles.
2
by: Marek Mänd | last post by:
I have problems with table row height by Internet Explorer6 in xhtml1 css1compat mode document. The table has fixed height and on one TFOOT row the height is set to 'auto' to make it have...
3
by: I Are Confused | last post by:
I am trying to open Database #2 while in Database #1 and delete a table that is in #2 so that I can copy a table from #1 into #2 - all through a function. My Database #2, as part of the start up,...
0
by: Michal | last post by:
I have troubles with instaling .Net Framework 2.0 (Beta 2 - 2.0.50215). The main instalation went just fine, troubles begin with my attemt to run aspnet_regiss.exe -i. Asp.Net is instaled into IIS...
0
by: BlueSky | last post by:
Hi All, I am taking a word document and displaying it on an aspx page using c#. I am having troubles printing the table layout -- How do I control the width of the entire table and of the cells?...
41
by: Andy Dingley | last post by:
http://thedailywtf.com/forums/thread/74148.aspx
2
by: travhale | last post by:
in a new project using .net 2005, c#. getting err message "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." source RDBMS is oracle 8i. I add a new...
0
by: NasirMunir | last post by:
I am trying to compare records from oracle table with a table in access. With oraDynaset, I have the option of .findNext function. I can use that to look for matching records from access to oracle....
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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...

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.