473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Padding Attribute for Tables and IE Problems

Art
Not sure whether the question is appropriate to the .html and/or
..stylesheets ng so I'm posting to both.

I have been trying to find a solution to a problem regarding adding of
the padding attribute to an HTML table (not the cells).

I created a very simple page (both manually and via Front Page) with a
table border and padding to demonstrate the problem. The basic style
code is as follows:
table { padding:20px ; border:1px ; border-color:brown ;
border-style:solid ; background-color:gray ;}
When the page is rendered on the latest versions of browsers on MacOS X
(Safari, Firefox, SeaMonkey, IE 5.2.3), the table border and the table
padding appears as expected around the perimeter of the cell grouping.

However, with IE6 on Windows, the table border is always next to the
cells and the padding attribute never appears.

I am aware that IE has had issues with the box model in revisions prior
to IE6, but my understanding is that these were related to how IE
calculated the size of the box around an element (cell widths, cell
spacing, table padding and borders).

I've tried both strict and transitional and get the same results. Coding
up a padding attribute in a "div" style and wrapping a <DIVaround the
HTML <tablehas no effect either.

Is this a known issue with IE/Windows ? Is anyone aware of any
workarounds for this ?

TIA.

Art
Sep 6 '06 #1
1 2178
Art <me@nowhere.comwrote:
>Not sure whether the question is appropriate to the .html and/or
.stylesheets ng so I'm posting to both.
After first having posted in alt.html a few hours ago, not getting an
immediate answer is no excuse to then multi post.

--
Spartanicus
Sep 6 '06 #2

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

Similar topics

2
by: Knoxy | last post by:
Hello, I've noticed one or two people post on this before but nobody seems to have replied so raising the issue again... is this a known IE6 CSS bug? I have placed the following in my...
3
by: Steve Sabljak | last post by:
I seem to having a little trouble getting a table to display correctly in both msie and firefox. I want to set the table and column widths in pixels, and have some cell padding too. The table...
5
by: Mel | last post by:
try the following code in IE and Mozila and you get 2 different padding <fieldset> <legend>This is a test</legend> <div style=padding:10px>hello</div> </fieldset> HOW CAN I AVOID THIS ? ...
2
by: Remi Villatel | last post by:
Hi there, I have following CSS definitions: div.limits { margin: 0 20px 0 20px; } div.halfleft { float: left; left: 0; width: 50%;
2
by: JohnR | last post by:
When creating an msAccess db within the Access UI itself the fields that are text are NOT padded with blanks. For example, if I have a 10 char field and put in "HI" and then when I come back to...
36
by: phil-news-nospam | last post by:
Here is a simpler (no drop shadows) example of the padding bug I see: http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html So far I find nothing in the CSS2 document that says I should...
5
by: Tom | last post by:
I am having a problem where an extra gap (whitespace, padding) appears in a table cell where I don't want it. The data fed in the table is via dynamic HTML, so the amount in the middle cell may...
0
by: Art | last post by:
Not sure whether the question is appropriate to the .html and/or ..stylesheets ng so I'm posting to both. I have been trying to find a solution to a problem regarding adding of the padding...
2
by: shapper | last post by:
Hello, I created a div with margin and padding and a fixed width. It seems the behavior is different in Firefox and IE. I am not sure but it seems: True width = width + paddingORmargin OR...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.