473,387 Members | 1,863 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.

Table Borders

In my <http://www.rossde.com/inflation.html>, I have a small table
in the middle of the page. This page is composed without a
DOCTYPE statement at the beginning. The table borders appear to
my browser (Mozilla) as raised with a slight shadow to the right
and below. The borders are specified with the "border" attribute
in the <table> tag:
<table border cellpadding=2 width="100%">
and not via a style sheet.

If I add a DOCTYPE statement to the page, the borders disappear.
There are various ways to make them reappear, but I can't
replicate the appearance. I want to do this via a style sheet.
Any suggestions?
--

David E. Ross
<http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <http://www.mozilla.org/>.
Jul 20 '05 #1
4 5486
"David Ross" <no****@nowhere.not> wrote in message
news:40***************@nowhere.not...
In my <http://www.rossde.com/inflation.html>, I have a small table
in the middle of the page. This page is composed without a
DOCTYPE statement at the beginning. The table borders appear to
my browser (Mozilla) as raised with a slight shadow to the right
and below. The borders are specified with the "border" attribute
in the <table> tag:
<table border cellpadding=2 width="100%">
and not via a style sheet.

If I add a DOCTYPE statement to the page, the borders disappear.
There are various ways to make them reappear, but I can't
replicate the appearance. I want to do this via a style sheet.
Any suggestions?


Your border attribute is missing a value.
My suggestion: write valid code and use a validator.

Regards,
Peter Foti
Jul 20 '05 #2
DU
David Ross wrote:
In my <http://www.rossde.com/inflation.html>, I have a small table
in the middle of the page. This page is composed without a
DOCTYPE statement at the beginning.
Bad. It is in your best interests (and in you visitors' interests) to
use a doctype declaration which will trigger standards compliant
rendering mode in browers (MSIE 6, Mozilla, Opera 7) so that the
layout/rendering is/will be the most consistent across W3C web standards
compliant browsers.

The table borders appear to my browser (Mozilla) as raised with a slight shadow
that's border-style: outset if I'm not wrong

to the right and below. The borders are specified with the "border" attribute
in the <table> tag:
<table border cellpadding=2 width="100%">
and not via a style sheet.

If I add a DOCTYPE statement to the page, the borders disappear.
I am almost 100% sure there is a bugfile on this. It's about attribute
minimization: I clearly remember that there is a bug on attribute
minimization... not sure if border also mentioned/included in it. Can
you try with
<table border="2" ...>

There are various ways to make them reappear, but I can't
replicate the appearance. I want to do this via a style sheet.
Any suggestions?


Nr 1 suggestion and solution: use a doctype with strict DTD, validate
your HTML 4.01 markup code and validate your CSS markup code. Just doing
that will eliminate 99% of browser quirks assuming your webpage is not
too complex. For more complex page, such suggestion will still eliminate
80%-90% of browser quirks in recent browsers.

List of Mozilla Quirks Mode Behavior
http://www.mozilla.org/docs/web-deve...quirklist.html

List of valid DTDs you can use in your document.
http://www.w3.org/QA/2002/04/valid-dtd-list.html

Activating the Right Layout Mode Using the Doctype Declaration
http://www.hut.fi/u/hsivonen/doctype.html

Mozilla Web Author FAQ
What are the Quirks mode and the Standards mode?
http://www.mozilla.org/docs/web-developer/faq.html

W3C Quality Assurance tutorial
My Web site is standard! And yours?
http://www.w3.org/QA/2002/04/Web-Quality

DOCTYPEs that will trigger standards compliant behavior in Opera 7, IE6
for Windows, and Netscape 7
http://www.opera.com/docs/specs/doctype/

DU
Jul 20 '05 #3
"Peter Foti" <pe***@Idontwantnostinkingemailfromyou.com> wrote:
Your border attribute is missing a value.
My suggestion: write valid code and use a validator.


Technically, <table border> is valid HTML, but it means
<table frame="border">. See the HTML spec for details.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #4
DU
DU wrote:
David Ross wrote:
In my <http://www.rossde.com/inflation.html>, I have a small table
in the middle of the page. This page is composed without a
DOCTYPE statement at the beginning.

Bad. It is in your best interests (and in you visitors' interests) to
use a doctype declaration which will trigger standards compliant
rendering mode in browers (MSIE 6, Mozilla, Opera 7) so that the
layout/rendering is/will be the most consistent across W3C web standards
compliant browsers.

The table borders appear to
my browser (Mozilla) as raised with a slight shadow

that's border-style: outset if I'm not wrong

to the right
and below. The borders are specified with the "border" attribute
in the <table> tag:
<table border cellpadding=2 width="100%">
and not via a style sheet.
If I add a DOCTYPE statement to the page, the borders disappear.

I am almost 100% sure there is a bugfile on this. It's about attribute
minimization: I clearly remember that there is a bug on attribute
minimization... not sure if border also mentioned/included in it.

Got it!

Bug 46805: minimized attributes not supported
http://bugzilla.mozilla.org/show_bug.cgi?id=46805

This testcase with <table border ...> works for me while using Mozilla 1.6:
http://bugzilla.mozilla.org/attachme...68&action=view

DU
Can you try with
<table border="2" ...>

There are various ways to make them reappear, but I can't
replicate the appearance. I want to do this via a style sheet. Any
suggestions?


Nr 1 suggestion and solution: use a doctype with strict DTD, validate
your HTML 4.01 markup code and validate your CSS markup code. Just doing
that will eliminate 99% of browser quirks assuming your webpage is not
too complex. For more complex page, such suggestion will still eliminate
80%-90% of browser quirks in recent browsers.

List of Mozilla Quirks Mode Behavior
http://www.mozilla.org/docs/web-deve...quirklist.html

List of valid DTDs you can use in your document.
http://www.w3.org/QA/2002/04/valid-dtd-list.html

Activating the Right Layout Mode Using the Doctype Declaration
http://www.hut.fi/u/hsivonen/doctype.html

Mozilla Web Author FAQ
What are the Quirks mode and the Standards mode?
http://www.mozilla.org/docs/web-developer/faq.html

W3C Quality Assurance tutorial
My Web site is standard! And yours?
http://www.w3.org/QA/2002/04/Web-Quality

DOCTYPEs that will trigger standards compliant behavior in Opera 7, IE6
for Windows, and Netscape 7
http://www.opera.com/docs/specs/doctype/

DU

Jul 20 '05 #5

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

Similar topics

61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
12
by: Rick DeBay | last post by:
I'm trying to create a layout table, where the spacing between rows varies. I've tried using setting margin-top and border-top for the rows I wan't spaced down from the one above, and I've also...
7
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
1
by: sam | last post by:
Hi, I want to use style on the grids of table. Currently it use default style of the html table, in which the grid size appeared very thick. How can I change the "thick" style of the default...
11
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
16
by: Barbara de Zoete | last post by:
Here's what I'm trying to do: Create a table with generic style property . Have a few table cells in the thead that 'have to' melt into eachother, so needing the style . Looking somthing...
10
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
0
by: LStewart | last post by:
Hi Guys, I am having some trouble with some tables. What I want to do is make it so that the table prints out on paper with the table borders. The borders are there on the web page in the...
5
by: sitko | last post by:
Hi, I'm done a little HTML here and there over the years...but nothing professionally. Now I'm working on a project which calls for some simple HTML. Here is my markup, for the life of me I can't...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.