Solved

Table consisten with Netscape and Ie

Posted on 2004-09-03
3
193 Views
Last Modified: 2010-04-09
how do I make a table that has 2 rows of 2 collumns of equal distance, preferably the collumn divide should be in the center in IE and netscape 6.0+
in CSS please,

it should look something like this:

_________________________
|                    |                    |
|--------------- |----------------|
|___________|____________|
0
Comment
Question by:rpong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 11978049
Hi

Er... a table would be like this:

<table width="100%" style="text-align:center;margin:0px auto;">
<tr><td width="50%" style="border-right:1px solid black;">Some stuff</td>
    <td width="50%" style="border-left:1px solid black;">Some more stuff</td>
</tr>
<tr><td width="50%" style="border-right:1px solid black;">Some stuff</td>
    <td width="50%" style="border-left:1px solid black;">Some more stuff</td>
</tr>
</table>


That would be a table, or do you prefer it totally in CSS?

Regards,
Zyloch
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 500 total points
ID: 11978354
Just in case you were asking for pure CSS, this is the basic structure:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<title></title>
<style type="text/css">

body
{
      margin:0;
      padding:0;
      text-align:center;
}

#holder
{
      width:760px;
      margin:0 auto;
      text-align:left;
}

.cell
{
      width:378px;
      float:left;
      border:1px solid #000000;
}


</style>

</head>
<body>

<div id="holder">
      <div class="cell">Column 1</div>
      <div class="cell">Column 2</div>
      <div class="cell">Column 3</div>
      <div class="cell">Column 4</div>          
</div>

</body>
</html>

Thanks,
Sean
0
 
LVL 4

Expert Comment

by:mrdilliard
ID: 12072042
Consistency in Netscape...HAHAHAHA...sorry.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

726 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