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 stylesheet file:
..formContentTa ble
{
padding: 10px 10px 10px 10px;
border: solid 1px #D1CFCF;
background: #F2F2F2;
}
and applied it to a <table> tag. Works fine in Firefox, Netscape,
Opera... but not IE6 - no padding at all. I just want the my form in a
'box' with padding just around the edges of the content.
To get around the problem, I has to bin the padding line and add the
following to my html page:
to my top table cells...
style="padding-left:10px;paddi ng-top:10px;"
to my bottom table cells...
style="padding-left:10px;paddi ng-bottom:10px;"
and that worked ok - not ideal though.
If anyone else has run into the problem or if it's something
ridiculous I've done in my code, let me know? Any help much
appreciated,
Andrew 2 19185 an*********@ars enalnews.co.uk (Knoxy) wrote: .formContentTa ble { padding: 10px 10px 10px 10px; }
and applied it to a <table> tag. Works fine in Firefox, Netscape, Opera... but not IE6 - no padding at all. I just want the my form in a 'box' with padding just around the edges of the content.
Where do you think the padding should go in a table element? Between
the border and the outermost set of cells? Inside all the cells?
Inside some of the cells?
Whilst CSS 2.1 does explcitly allow padding to be set on tables
"Applies to: all elements except elements with table display types
other than table, inline-table, and table-cell"
<url: http://www.w3.org/TR/CSS21/box.html#propde f-padding>
it is totally vague about how the padding is actually applied. In some
places it states that the table is a normal block element:
"In terms of the visual formatting model, a table may behave like a
block-level or inline-level element. Tables have content, padding,
borders, and margins." but in other places it seems to totally ignore
the possiblity of padding on the table itself.
To get around the problem, I has to bin the padding line and add the following to my html page:
to my top table cells... style="paddi ng-left:10px;paddi ng-top:10px;"
to my bottom table cells... style="paddi ng-left:10px;paddi ng-bottom:10px;"
and that worked ok - not ideal though.
Using a class rather than inline styles would be an improvement. If
you want to add padding to certain cells then this is the correct way
to do so.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
My experience with padding, and CSS, is that some browsers seem to redefine
the rules as to where the padding goes.... inside the table, around the
table.... whatever.
It's a web design nightmare sometimes!
--
Rob Collyer - www.webforumz.com
Web design and development forums for Free help, advice,
tips, and website critique by professional designers and developers.
"Steve Pugh" <st***@pugh.net > wrote in message
news:8h******** *************** *********@4ax.c om... an*********@ars enalnews.co.uk (Knoxy) wrote:
.formContentTa ble { padding: 10px 10px 10px 10px; }
and applied it to a <table> tag. Works fine in Firefox, Netscape, Opera... but not IE6 - no padding at all. I just want the my form in a 'box' with padding just around the edges of the content.
Where do you think the padding should go in a table element? Between the border and the outermost set of cells? Inside all the cells? Inside some of the cells?
Whilst CSS 2.1 does explcitly allow padding to be set on tables "Applies to: all elements except elements with table display types other than table, inline-table, and table-cell" <url: http://www.w3.org/TR/CSS21/box.html#propde f-padding> it is totally vague about how the padding is actually applied. In some places it states that the table is a normal block element: "In terms of the visual formatting model, a table may behave like a block-level or inline-level element. Tables have content, padding, borders, and margins." but in other places it seems to totally ignore the possiblity of padding on the table itself.
To get around the problem, I has to bin the padding line and add the following to my html page:
to my top table cells... style="paddi ng-left:10px;paddi ng-top:10px;"
to my bottom table cells... style="paddi ng-left:10px;paddi ng-bottom:10px;"
and that worked ok - not ideal though.
Using a class rather than inline styles would be an improvement. If you want to add padding to certain cells then this is the correct way to do so.
Steve
-- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joseph Haig |
last post by:
I have a style sheet containing the following definitions:
#leftcontent {
position: absolute;
left:20px;
top:60px;
width:180px;
border:1px solid #000;
padding-top: 15px;
}
|
by: A.Translator |
last post by:
I have an unordered list as menu and want some space at the bottom,
underneath the last <li>.
I have tried:
setting bottom-margin to ul
setting bottom-margin to containing <div>
setting padding to ul and <div>
and all combinations of the above I could think of.
None seems to work.
|
by: Red |
last post by:
See http://reenie.org/test9.php
There are two examples each with three nested divs.
The only difference between the two is that the first example has no
padding in the inner div, the second has 10px padding in the inner div.
The middle div has no padding and its black background should not show
up at all.
|
by: Cezar |
last post by:
Hi!
I'm styling my table with following CSS code:
table.results{
border-collapse:collapse;
}
table.results td{
border:1px solid #a7a7a7;
margin:0;
|
by: Martin Doyle |
last post by:
Ok, I'm building a JS-based limitless-sublevel dynamic menu and am
making it cross browser as well - 3 packs of aspirin so far and
counting ;)
I'm having a weird rendering problem using Opera 7.51, even though it
displays fine in Mozilla 1.6, Firefox 0.9, Netscape 7.1 and Internet
Explorer 6.0
Hope someone can help!
| |
by: daveland |
last post by:
I am working on some JavaScript that dynamically adds rows to a table
in response to a button click. A new row does appear on the screen
when the button is clicked. However, that table to which a row has
been added is itself contained within an outer table (to handle the
desired screen layout). That outer table does not properly grow to
contain the new size of the table to which the row was added. (More
specifically, I have...
|
by: Becky Carter Hickman-Jones |
last post by:
Hi,
I have a simple script that opens an image in a new window which is sized to
the image. The script is as follows: <a title="xxx"
onclick="window.open('http://www..com/photos/xxx.jpg','height=xxx,
width=xxx');return false" href="#">link text</a>
This script works very well for my needs, however, in IE6, the resulting
opened window has unnecessary padding on the top and left sides of the
image, which pushes the image down and to the...
|
by: gubbachchi |
last post by:
Hi all,
I have a problem with css table. The code below works fine with firefox but the problem is with Internet explorer.
This code actually fetches data from mysql database and display it in the form of table for which I have used CSS. In firefox the fetched are aligned properly but in Internet explorer, the width alignment is messed up.
Here is the code I am using
main.php
<html>
<head>
<link href="main.css" rel="stylesheet"...
|
by: Stepheno |
last post by:
Hi,
I am a recently converted Iseries (AS/400) RPG programmer trying to learn HTML/CSS/JavsScript all at the same time (not fun). My problem deals mostly with CSS. I will be reveiving a table, for which number of rows/columns i will not know, and I have to pretty up the table, including a verical scroll bar. This has to work in IE6, IE7, and FireFox 3.5.
The CSS I currently have will give me a scrollable table, but only if I hard code...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |