Solved

Table consisten with Netscape and Ie

Posted on 2004-09-03
3
178 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create CSS Animation for Page Transitions 4 39
Obtaining data on ASP 8 29
multiple selects 23 49
Button function on table is in trouble 3 22
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

829 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