Solved

Tables

Posted on 2009-05-05
3
217 Views
Last Modified: 2012-05-06
Experts,

I need two table next to each other and little space in-between the two tables with dark border in black. I am trying this with the following code, but not getting it completely.

<table  width="580" height="500" bordercolor="#000000">
 <tr>
          <td width="290">Cell 1</td>
          <td width="290">Cell 2</td>
     </tr>
</table>

Please correct the above code
<table  width="580" height="500" bordercolor="#000000">
 <tr>
          <td width="290">Cell 1</td>
          <td width="290">Cell 2</td>
     </tr>
</table>

Open in new window

0
Comment
Question by:Tpaul_10
  • 2
3 Comments
 
LVL 28

Expert Comment

by:gamebits
ID: 24306406
I see only one table in your code but anyway

<table border=0 cellpadding=0 cellspacing=2 width="100%">
<tr>
      <td><table border=1 bordercolor="black">
                 <tr>
                        <td>&nbsp;</td>
                  </tr>
               </table>
      <td><table border=1 bordercolor="black">
                 <tr>
                        <td>&nbsp;</td>
                  </tr>
               </table>
</table>
0
 
LVL 16

Expert Comment

by:hankknight
ID: 24312394

<table  width="580" height="500">
 <tr>
          <td width="290">Cell 1</td>
          <td width="290" style="border-left: 2px solid black; padding-left: 10px;">Cell 2</td>
     </tr>
</table>

Open in new window

0
 
LVL 16

Accepted Solution

by:
hankknight earned 250 total points
ID: 24312401
Or two tables:
<table width="580" height="500" style="float: left; border-right: 2px solid black;">
 <tr>
          <td width="290">Cell 1</td>
          <td width="290">Cell 2</td>
     </tr>
</table>
<table  width="580" height="500" style=" float: left; margin-left: 10px;">
 <tr>
          <td width="290">Cell 1</td>
          <td width="290">Cell 2</td>
     </tr>
</table>

Open in new window

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bootstrap footer centering and columns alignement 3 60
CSS Logo Problem. 2 21
Can't find PHP files on account that has WordPress 3 27
html Uncheck Checkbox 2 13
Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question