473,796 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html table rules=all, css border:none Mozilla1.6- incl draws stillnasty interiour border

When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interiour border, which doesnt go away though I have
on TD's css border:none set.

Is it something wrong with my stylehseet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.

<style>
table.calendar{
width:492px;
margin-bottom:10px;
border:none;
font:10px Verdana;
background:#cdd efc;
}

table.calendar tbody th{
padding:3px 0px;
vertical-align:middle;
border:none;
color:#5d71a5;
font-weight:normal;
}
table.calendar tbody td{
padding:2px 5px 2px 5px;
vertical-align:middle;
text-align:right;
border:none;
border-top:1px solid white;
color:#000;
}

</style>

<table class="calendar " border="1" cellspacing="0" cellpadding="5"
frame="void" rules="all">
<thead>
<tr>
<td><a href="handlefor m?go=prev_month ">&laquo;</a></td>
<td colspan="5"> jaanuar 2004 </td>
<td><a href="handlefor m?go=next_month ">&raquo;</a></td>
</tr>
</thead>
<tbody>
<tr><!-- esimene nädal -->
<td></td>
<td></td>
<td></td>
<td><a href="handlefor m?go=1">1</a></td>
<td><a href="handlefor m?go=1">2</a></td>
<td><a href="handlefor m?go=1">3</a></td>
<td><a href="handlefor m?go=1">4</a></td>
</tr>
<tbody>
</table>
Jul 20 '05 #1
7 18919
On Tue, 03 Feb 2004 02:40:07 +0200, Marek Mänd <ca********@mai l.ee>
wrote:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interiour border, which doesnt go away though I have
on TD's css border:none set.

Is it something wrong with my stylehseet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.


If you try to define presentation using both HTML and CSS, the result is
undefined, and so likely to vary from browser to browser. Ditch the
rules attribute and stick to CSS.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2
Stephen Poley wrote:
On Tue, 03 Feb 2004 02:40:07 +0200, Marek Mänd <ca********@mai l.ee>
wrote:

When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interiour border, which doesnt go away though I have
on TD's css border:none set.

Is it something wrong with my stylehseet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.

If you try to define presentation using both HTML and CSS, the result is
undefined, and so likely to vary from browser to browser. Ditch the
rules attribute and stick to CSS.


No, the result is not undefined. frame and rules are valid table
attributes. It's just that some browsers have never handled them correctly.
Matthias

Jul 20 '05 #3
DU
Marek Mänd wrote:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interiour border, which doesnt go away though I have
on TD's css border:none set.

Is it something wrong with my stylehseet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.

<style>
<style type="text/css"> is needed to avoid a validation error.
table.calendar{
width:492px;
margin-bottom:10px;
border:none;
FWIW, I think it should be
border:0px none;
because none applies to border-style.
font:10px Verdana;
background:#cdd efc;
}

table.calendar tbody th{
padding:3px 0px;
vertical-align:middle;
border:none;
color:#5d71a5;
font-weight:normal;
}
table.calendar tbody td{
padding:2px 5px 2px 5px;
vertical-align:middle;
text-align:right;
border:none;
border-top:1px solid white;
color:#000;
}

</style>

<table class="calendar " border="1" cellspacing="0" cellpadding="5"
frame="void" rules="all">
<thead>
<tr>
<td><a href="handlefor m?go=prev_month ">&laquo;</a></td>
<td colspan="5"> jaanuar 2004 </td>
<td><a href="handlefor m?go=next_month ">&raquo;</a></td>
</tr>
</thead>
<tbody>
<tr><!-- esimene nädal -->
<td></td>
<td></td>
<td></td>
<td><a href="handlefor m?go=1">1</a></td>
<td><a href="handlefor m?go=1">2</a></td>
<td><a href="handlefor m?go=1">3</a></td>
<td><a href="handlefor m?go=1">4</a></td>
</tr>
<tbody>
</table>

Your code is contradictory and incoherent.
- You set border:none everywhere for table-cell and rules="all".
- You define border="1" and frame="void". If you don't want a table
frame, then why do you define a border for such frame?
- There is no <th> in your <tbody>: so why do you create a css rule for it?
- Vertical-align:middle is the default css declaration for table cells;
so there is no need to declare it.
- You define a cellpadding="5" and then redefine a padding for specific
cells: all this can only make the parsing and rendering longer, more
complex and subject to bugs.
You should either just use CSS properties or just define table
attributes when there is an opposition. Best is to use only CSS
properties since these are formating attributes.
Just eliminate sources of contradictions and confusion in your code by
restricting to css properties when their equivalent table attributes are
formating ones.

DU

Jul 20 '05 #4
Stephen Poley wrote:
On Tue, 03 Feb 2004 02:40:07 +0200, Marek Mänd <ca********@mai l.ee>
wrote:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interior border, which doesn't go away though I have
on TD's css border:none set.
Can't help wondering why people do such things? Make sure the
"border-collapse" property is set for the table as well as "border"
for the cell.
Is it something wrong with my stylesheet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.
If you try to define presentation using both HTML and CSS, the result is
undefined, and so likely to vary from browser to browser.


Would be nice if it were so, it would be a good argument to use. The
browser is supposed to convert HTML attributes to their equivalent CSS
rules and add them to the cascade with the lowest level of precedence,
thus an author's <FONT color="blue"> loses to a user styleheet with
font {color: black} even if the user stylesheet doesn't include
!important. (IIRC)

Of course it's up the browser makers what they consider the equivalent
of any particular attribute specification to be. What to make of
rubbish like <TABLE rules="all"> is anyone's guess. (Vague
recollection turns to wild speculation here) Mine would be:
TABLE {border-collapse: collapse} TD, TH {border: thin solid}
To undo the damage you'd need to reset the border-collapse to
"seperate", "separate" "apart" "no" or whatever it is???
Ditch the rules attribute and stick to CSS.


You still have the knack for a concise turn of phrase, I see.

--
Heard on television:
"kilommitte es"
(trying to say "kilometres " while apparently thinking "committee" )
Jul 20 '05 #5
DU <dr*******@hotW IPETHISmail.com > writes:
border:none;


FWIW, I think it should be
border:0px none;
because none applies to border-style.


FWIW, section 8.5.3 (border-style) of CSS 2 states:

| none
| No border. This value forces the computed value of 'border-width' to be '0'.

I vaguely recall problems with Konqueror 2 though when a border is set
for a simple selector and overridden by a class with 'border: none;'
without declaring an explicit width of zero as well.
--
| ) 111010111011 | http://bednarz.nl/
-(
| ) Distribute me: http://binaries.bednarz.nl/mp3/aisha
Jul 20 '05 #6
On Tue, 03 Feb 2004 10:46:13 +0100, Matthias Gutfeldt wrote:
Stephen Poley wrote:
On Tue, 03 Feb 2004 02:40:07 +0200, Marek Mänd <ca********@mai l.ee>
wrote:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interiour border, which doesnt go away though I have
on TD's css border:none set.

Is it something wrong with my stylehseet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.
If you try to define presentation using both HTML and CSS, the result is
undefined, and so likely to vary from browser to browser. Ditch the
rules attribute and stick to CSS.
No, the result is not undefined. frame and rules are valid table
attributes. It's just that some browsers have never handled them correctly.


Well OK, I suppose one could quibble about the word "undefined" . What
the definition actually says is:

"6.4.4 Precedence of non-CSS presentational hints

"The UA may choose to honor presentational hints from other sources than
style sheets, for example the FONT element or the "align" attribute in
HTML."

Note the "may". It seems to me that this means the result is undefined
for all practical purposes.

I'll accept that in this particular case, if reported correctly, the
behaviour of Mozilla looks doubtful, as it appears to be honouring the
HTML and not the CSS. But whether an attribute on the TABLE element
truly corresponds to a TD rule seems to me the sort of pointless
argument that could keep lawyers (and even c.i.w.a.* regulars) going for
a while.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #7
DU
Stephen Poley wrote:
On Tue, 03 Feb 2004 10:46:13 +0100, Matthias Gutfeldt wrote:

Stephen Poley wrote:
On Tue, 03 Feb 2004 02:40:07 +0200, Marek Mänd <ca********@mai l.ee>
wrote:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions
draw a nasty interiour border, which doesnt go away though I have
on TD's css border:none set.

Is it something wrong with my stylehseet or is it a bug of mozilla?
I am asking this because of IE and Opera work differently here.
If you try to define presentation using both HTML and CSS, the result is
undefined, and so likely to vary from browser to browser. Ditch the
rules attribute and stick to CSS.


No, the result is not undefined. frame and rules are valid table
attributes. It's just that some browsers have never handled them correctly.

Well OK, I suppose one could quibble about the word "undefined" . What
the definition actually says is:

"6.4.4 Precedence of non-CSS presentational hints

"The UA may choose to honor presentational hints from other sources than
style sheets, for example the FONT element or the "align" attribute in
HTML."

Note the "may". It seems to me that this means the result is undefined
for all practical purposes.

I'll accept that in this particular case, if reported correctly, the
behaviour of Mozilla looks doubtful, as it appears to be honouring the
HTML and not the CSS. But whether an attribute on the TABLE element
truly corresponds to a TD rule seems to me the sort of pointless
argument that could keep lawyers (and even c.i.w.a.* regulars) going for
a while.


All of this can be very easily avoided: just put coherence and
complementarity into the css declarations and the html attributes. Best
is to only use css properties when styling and/or formating are involved.

DU
Jul 20 '05 #8

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

Similar topics

9
43529
by: Harry | last post by:
Whats wrong with this? top.document.frmMain.tabMain.border = "1"; thanks
1
29467
by: Mike | last post by:
Is there a way to have a border around the outside of a table, but not around each cell in the table?
6
15934
by: Mr. Clean | last post by:
Apparently Mozilla/Firefox doesn't support the bordercolor attribute of the table tag. Here's what I do that works in IE: <table border="1" cellpadding="2" cellspacing="0" width="380" bordercolor="#CB0017"> Now, if I add this to my CSS:
3
1520
by: Amil Hanish | last post by:
Don't answer this if you don't know what you are talking about. I have lots of datagrids on many pages. I want to use a css stylesheet so color changes can be easily made via a single file. I can't figure out how to use the css to modify ALL the border colors of the datagrid. I DON'T WANT TO USE THE datagrid properties of the designer since it bypasses the css file. If I test things using the designer, it works fine. If I set the...
11
11361
by: Michael Mayo | last post by:
I have a simple html page that contains an image in a single table cell, surrounded by a border: <http://www.softrains.com/lc/test.html>. I would like to eliminate the space between the table border and the table contents. I have tried setting margin: 0 in CSS everywhere, as well as cellmargin/cellpadding in HTML. What is the best way to eliminate the extra space between a table border and its contents? Thanks,
5
2603
by: john | last post by:
In this single-user app I have a form with members. In the related table I have a field 'Select' with which the user can select a record. I have two buttons on the form (All and None) that select either all records or none. Those buttons both work with an edit query. It works except for the current record since that is locked. To avoid that I have added code that specifically changes the Select value of the current record by Select=-1 (or...
2
2284
by: spirit | last post by:
Hi friends, I created a table in my website.I apply border to that table throught CSS. It works fine in IE, but the borders doesn't appear in firefox. Can anyone help me to sort out this problem?
12
10234
by: coolminded | last post by:
plz urgent help needed i have one data grid in the form. i have to export the data from the datagrid to the word. i just exported the data in MS word into a table. but i want to remove the table border. but i am not able to do so till now can any one help me in this matter i am using vb6. TIA
1
1523
by: hsachdevah | last post by:
Hello, I have created a table layout container in a userform and each of its cells contains a label. I have set the table border property to 'single'. But the problem is when I Add this user form to relevant panel (group-box) in my main form, the borders do not show up. But I can see them if I Add->Remove->Add again this userform to the main form. can anybody suggest whats going on? -Hims
0
9527
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,...
0
10453
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10223
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
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...
1
7546
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
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...
1
4115
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
3
2924
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.