473,568 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Replicating a table in IE, whats the best solution?

Hi,

I have an HTML structure where each page area is a <div> and identifies
with a unique 'id'. Below is the code:

<html>
<head>
<style>

#wrap {
margin: 0 auto;
width: 800px;
background: #000;
}

#logo {
background: #f00;
padding: 5px;
}
#mainNav {
background: #0f0;
padding: 5px;
}
#subNav {
background: #00f;
padding: 5px;
width: 200px;
display: table-cell;
}
#content {
background: #0ff;
padding: 5px;
width: 590px;
display: table-cell;
}
#footer {
background: #f0f;
padding: 5px;
}

</style>
</head>

<body>
<div id="wrap">
<div id="logo">logo </div>

<div id="mainNav">ma inNav</div>

<div id="subNav">sub Nav</div>

<div id="content">co ntent</div>

<div id="footer">foo ter</div>
</div>
</body>
</html>

Aslo found at -
http://www.martynbissett.co.uk/_test.../test_div3.php (works in FF
but not IE)

Please note, the div's 'logo', 'mainNav' and 'footer' I am happy with
the default 'block' for display. However, 'subNav' and 'content' I
would like to display as two columns side by side. This works fine in
Firefox but not in IE. Reading through this newsgroup I have come to
understand that IE's support of display: table* is practically non
existant.

I have tried various assortments of altering display, float and width
for subNav and content div's as well as wrapping the both within a
<div> but no results that I am confident will hold up in most
scenarios.

Can someone please direct me in the right way of creating columns using
CSS? Please explain in detail as I am currently beginning to look into
using CSS instead of tables for layout and yet have alot to learn.
Also, any additional tips / examples would be much appreciated.

Thanks

Burnsy

Jan 19 '06 #1
2 1418
bi******@yahoo. co.uk wrote:
width: 800px;
Wrong approach. You're making the page very difficult to use in a
reasonably-sized browser window (including a maximized window on many
devices). Design for any resolution instead.
background: #000;
Wrong approach. Never set one color without setting other colors (here,
text color and link colors).
display: table-cell;
Poorly supported, as you have noticed.
Please note, the div's 'logo', 'mainNav' and 'footer' I am happy with
the default 'block' for display. However, 'subNav' and 'content' I
would like to display as two columns side by side.
Simply leave the widths unspecified, defaulting them to auto (=
available width), except - in your case - 'subNav', for which you could
set the width using the em unit, together with float: left.
I have tried various assortments of altering display, float and width
for subNav and content div's as well as wrapping the both within a
<div> but no results that I am confident will hold up in most
scenarios.


What's your best attempt with float? There are problems in that approach
as well, but the solutions depend on the page as a whole.
Jan 19 '06 #2
Any resolution, no probs. Ill get to that later.

Is there a reason that I need to specify every element? I have noticed
that CSS validators do frown upon not specifying every color. Not
looked too much into it though.

For my best attempt with float, I get good results in IE but a slight
glitch in FF. There seems to be no padding on the content div before
the text appears.

http://www.martynbissett.co.uk/_test.../test_div5.php

When I remove the color from subNav it appears that the content div is
sitting underneath the subNav div.

http://www.martynbissett.co.uk/_test.../test_div6.php

Hope these links help and you can tell me if Im going about this the
proper way. Thanks

Burnsy

Jan 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10517
by: imani_technology_spam | last post by:
We were trying to remove duplicates and came up with two solutions. One solution is similar to the one found in a book called "Advanced Transact-SQL for SQL Server 2000" by Ben-Gan & Moreau. This solution uses temp tables for removing duplicates. A co-worker created a different solution that also removes duplicates, but the other solution...
0
1062
by: nwiebe | last post by:
Hi, does anyone know how to avoid replicating delete statements? I have a table in a source database. This table is pruned occasionally. I'd like to have a copy of this table in a second database, containing every row that ever existed in the source table. So, when a "delete from srouce where ..." is execute, that delete is not...
5
2178
by: Derickson | last post by:
I am working with a production runtime Access 2000 db, split front-end and back-end. Running on a network, I need a nightly copy of the backend transferred to a laptop with a temporary network connection so as to be able to run a locally linked version of the database outside of the production environment. No data will be modified; it will be...
3
1598
by: jodyblau | last post by:
I'm fairly new to access, so I hope this question isn't too elementary. I'm putting together a database for my office. I want the database to be accessible to 5 or 6 users on our network and so itt may be used by more than one person at the same time. I am hoping that someone can give me an idea of some of my options in facilitating...
3
1334
by: ANDY AIYER | last post by:
Guru's! Your time and guidance is much appreciated in this task that i am trying to get done. Background I have a SQL Server 2000 database table which contains 2 Fields (RecordID, XMLData (datatype=TEXT). There are about 10,000 records in this table. The Data in the field (XMLData) is a XML formatted string. (where F1,F2... are
2
1626
by: Bob | last post by:
I got three related datagrid views one parent and two children of the same. The two child tables contain many thousands of records and some of the contents are bitmap files in a sql server database. The default behaviour of loading all the contents of the parent data table and also all the related data is not acceptable, its takes too long to...
5
4300
by: Radek | last post by:
Hi I'm in need of creating reporting database. What I have to do it is to replicate only half of tables to next database so reports could query only that second database. Unfortunately there is too many inserts in existing database so simple master/slave solution won't give me much. I was wondering if there is a way to replicate just few...
4
3075
by: LoneHunter01 | last post by:
Basically, I just need a general direction on where to go for this. Yes, this is for a school project, though it's strictly an optional one (and I have tried many solutions, one in-depth). We've only covered a few types of data struct (vectors, heaps, stacks, queues, deques, lists, linked lists, priority queues, trees, etc.). I need to be able...
1
1318
by: war_wheelan | last post by:
I am replicating an 80GB database between NY can CT and would like to know why table sizes are different between the two. Here is an example of sp_spaceused:: NY IOI_2007_04_23 rows(279,664) reserved(464,832) data(439,960) index_size(24,624) CT IOI_2007_04_23 rows(279,666) reserved(542,232) data(493,232) index_size(48,784) ...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6275
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5498
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.