Solved

Table consisten with Netscape and Ie

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now