Page 2 of 2
Re: Merging today/yesterday and this month/year webpages
Posted: Tue 11 Jan 2022 10:24 am
by HansR
@apple8:
I think you could be in the right direction by setting the width of the three header fields to your liking. I would also not use caption but thead and remove the nbsp, use colspan instead. The data rows below should follow that.
Note the red coloured HTML tags when you look into the page source, there is an error with those tags somewhere (in this case the <th> in the caption).
Now you define width and cellpadding on table level, for the cell padding that would be a bit too high a level.
Hope this helps.
Re: Merging today/yesterday and this month/year webpages
Posted: Tue 11 Jan 2022 11:01 am
by Mapantz
You can set widths in the table data cells <td> themselves, or in the css
<td style="width:10%;">
etc
Re: Merging today/yesterday and this month/year webpages
Posted: Wed 12 Jan 2022 3:14 am
by apple8
Thanks for the help, the
<td style="width:10%;"> sorted the column spacing issue once I nutted it out, and I tidied up the caption line too.
If red text in source code are errors I'm not sure how to sort them out, but the end result on the
page is what I was looking for
Re: Merging today/yesterday and this month/year webpages
Posted: Wed 12 Jan 2022 6:12 pm
by Mapantz
apple8 wrote: ↑Wed 12 Jan 2022 3:14 am
Thanks for the help, the
<td style="width:10%;"> sorted the column spacing issue once I nutted it out, and I tidied up the caption line too.
If red text in source code are errors I'm not sure how to sort them out, but the end result on the
page is what I was looking for
That's just colour coding to help differentiate the html.
You can always use
https://validator.w3.org/nu/ top check for misplaced tags etc
Re: Merging today/yesterday and this month/year webpages
Posted: Wed 12 Jan 2022 6:50 pm
by HansR
Mapantz wrote: ↑Wed 12 Jan 2022 6:12 pm
That's just colour coding to help differentiate the html.
Not completely.
@apple8 has e.g. in the menu a line:
where the
<a href=> colours red. That is a different colour red than e.g. the
. And the difference is that the reference of the menu is empty (the <a>-tag) and the
is an escape code. Neither text nor tag and that helps to differentiate.
The validator helps indeed.
Re: Merging today/yesterday and this month/year webpages
Posted: Thu 13 Jan 2022 3:38 am
by apple8
The <a href=>Close Menu</a> was my solution to closing the menu on a mobile device as the menu would stay open if no selection was made on my iPad. I couldn't find any other method at the time.
Inserting quotation marks to read <a href="">Close Menu</a> fixes the error?
Re: Merging today/yesterday and this month/year webpages
Posted: Thu 13 Jan 2022 7:21 am
by HansR
apple8 wrote: ↑Thu 13 Jan 2022 3:38 am
The
<a href=>Close Menu</a> was my solution to closing the menu on a mobile device as the menu would stay open if no selection was made on my iPad. I couldn't find any other method at the time.
Inserting quotation marks to read
<a href="">Close Menu</a> fixes the error?
Could be, I have no idea, free to try
But it apparently is not fatal so you might as well leave it. I just mentioned it as an example for the meaning of the colour.
And btw, all those nbsp could be padding so maybe the red is not as meaningless as we think.