html export tip

[expired user #7454]'s profile image [expired user #7454] posted 10 years ago in General Permalink
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
<table caption="notes (29 rows)">

with this
<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's profile image BubikolRamios posted 10 years ago Permalink
Is this even valid ? As far as I can se caption is standard tag, not attribute.
TTSneko's profile image TTSneko posted 10 years ago Permalink
BubikolRamios, you are right, Anse has two errors in his HTML header. Even in XHTML Transitional, this:

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

should be:

<meta name="GENERATOR" content="HeidiSQL" />[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.