distal-attribute
distal-attribute
distal-attribute
distal-attribute

html export tip

kerry posted 10 months ago in General
I cant find anyplace that does this so
I did it this way. it works

if you export a table as html
befor you put it in your website do the following

just after the body tag
replace this
<body>
<table caption="notes (29 rows)">

with this
</head><body>
<table style="width: 100%;" caption="contacts (29 rows)">

so the table and text will srink and grow with changing computer
screen modes in any size window. but do not
change the number of rows

BubikolRamios posted 10 months ago
Is this even valid ? As far as I can se caption is standard tag, not attribute.
TTSneko posted 10 months ago
BubikolRamios, you are right, Anse has two errors in his HTML header. Even in XHTML Transitional, this:

<meta name="GENERATOR" content="HeidiSQL 8.2.0.4675">



should be:

<meta name="GENERATOR" content="HeidiSQL 8.2.0.4675" />[code]

(added ' /' as tag closer). And of course, the CAPTION tag is not part of the TABLE element, it should read:

[code]<table><caption>Notes (29 rows)</caption>



Kerry CAN use:

<table width="100%"><caption>Notes (29 rows)</caption>



, that is however a DEPRECATED use. As I noted before, the width addition should preferably be used in the line:

table {border-collapse: collapse;}



as in:

table {border-collapse: collapse; width:100%;}



But then you newer know, Kerry possibly copy/pasted the whole TABLE element into an own page, thus losing the original formatting (per STYLE) and was thus forced to imrovise. In that case, Kerry should use:

<table style="width:100%;"><caption>Notes (29 rows)</caption>



instead, as that is the W3C-valid declaration. Otherwise, different browsers may render different results.

Please login to leave a reply, or register at first.