General fitness, health and nutrition · Public discussion

OT: little snip of html?

Started by Peewiglet · · Last activity · 20 posts · 492 views

Thread navigation

Jump through the discussion

Go to the original post, the replies on this page, or the latest preserved contribution.

Thread details

What we know about this thread

Original section
General fitness, health and nutrition
Published
18 September 2004
Last activity
20 September 2004
Original author
Peewiglet
Posts
20
Discussion status
Public discussion
Total views
492
Views / 30 days
0

The navigation and discussion metadata provide context. Posts remain in their original chronological order.

Showing posts 1–20 of 20
Posts remain in their original chronological order.

Text size
  1. Sorry for asking something so OT, but I reckon someone here will know
    the answer.

    I've got a page with a table on it. The table's a fixed width, and the
    idea is that the size of the rest of the page will be determined by
    the size of the monitor on which people are looking at the page.

    I'd like to have a background image in the table, and a background
    colour in the larger page. However, I find that if I include a
    background colour in the body (for the larger page) then the
    background image doesn't show up in the table.

    Can anyone tell me what I'm doing wrong. I'm sure there must be a
    simple answer to this but so far my efforts have failed to uncover it.

    Many thanks for any help.

    Best wishes,
    --
    Peewiglet

  2. "Peewiglet" <[email hidden]> wrote in message
    news:[email hidden]...

    Quoted message said:

    Sorry for asking something so OT, but I reckon someone here will know
    the answer.

    I've got a page with a table on it. The table's a fixed width, and the
    idea is that the size of the rest of the page will be determined by
    the size of the monitor on which people are looking at the page.

    I'd like to have a background image in the table, and a background
    colour in the larger page. However, I find that if I include a
    background colour in the body (for the larger page) then the
    background image doesn't show up in the table.

    Can anyone tell me what I'm doing wrong. I'm sure there must be a
    simple answer to this but so far my efforts have failed to uncover it.

    Many thanks for any help.

    Best wishes,
    --
    Peewiglet

    The background colour of the page won't affect your ability to display a
    background image in the table (unless the colour of the image is the same as
    the page's background colour!)

    The code for your table probably looks something like this:

    <body bgcolor="#000000">

    <table width="100" height="2" background="backgroundimage.jpg">
    <tr>
    <td height="30">Table content text</td>
    </tr>
    </table>

    </body>

    Don't forget that if the image is larger than the table, then parts of the
    image will get cut off, unless the content within the table (your text,
    etc.) expands the table sufficiently to display the full image. This is
    because you have set an absolute pixel size for the table.

    It's not normally necessary to set an absolute pixel size for a table.
    Percentages normally work better, and are more flexible regarding screen
    resolutions, monitor sizes, etc.

    Pete

  3. Peewiglet wrote on Sat, 18 Sep 2004 19:01:39 +0100....

    Quoted message said:


    I've got a page with a table on it. The table's a fixed width, and the
    idea is that the size of the rest of the page will be determined by
    the size of the monitor on which people are looking at the page.

    I'd like to have a background image in the table, and a background
    colour in the larger page. However, I find that if I include a
    background colour in the body (for the larger page) then the
    background image doesn't show up in the table.

    Can anyone tell me what I'm doing wrong. I'm sure there must be a
    simple answer to this but so far my efforts have failed to uncover it.

    Can you give us a URL so we can look at it?

    --
    Tim Jackson
    [email hidden]
    (Change '.invalid' to '.co.uk' to reply direct)
    Absurd patents: visit http://www.patent.freeserve.co.uk

  4. On Sat, 18 Sep 2004 18:58:21 GMT, "Pete" <[email hidden]>
    wrote:

    Many thanks indeed for replying!

    I thought my .html was the same as yours, but when I worked it through
    I realised (blush) that I'd left out the <td> and </td>. When I put
    them in the problem was solved. Thank you :-)

    Quoted message said:

    It's not normally necessary to set an absolute pixel size for a table.
    Percentages normally work better, and are more flexible regarding screen
    resolutions, monitor sizes, etc.

    I'd heard this but I'm not sure what percentage to go for, or how to
    express it. Is there a standard recommendation?

    Many thanks again!

    Best wishes,
    --
    Peewiglet

  5. Tim Jackson said:

    Can you give us a URL so we can look at it?

    It's not really done yet, and looks pretty scruffy. I'm still writing
    up the text, but also I'm still playing around with the formatting.
    That particular problem is now solved, though, so hopefully I can put
    it up tomorrow 🙂

    Best wishes,
    --
    Peewiglet

  6. [email hidden] said...

    Quoted message said:
    Quoted message said:

    It's not normally necessary to set an absolute pixel size for a table.
    Percentages normally work better, and are more flexible regarding screen
    resolutions, monitor sizes, etc.

    I'd heard this but I'm not sure what percentage to go for, or how to
    express it. Is there a standard recommendation?


    If the table's to take up the whole width of the screen go for
    something like 98% rather than 100%, and then make sure all your
    cell widths add up to 98. If it's to just take up a small
    proportion of the page then go for whatever size you think best,
    always ensuring that the total across all the cells adds up
    correctly. Tim Jackson's our resident HTML expert.
    --
    I try to be a good example to my children, but they just see me
    as a dire warning.

  7. Fran wrote on Sat, 18 Sep 2004 20:53:54 +0100....

    Quoted message said:

    Tim Jackson's our resident HTML expert.

    <splutter> Er.. I think that's going a bit far...

    --
    Tim Jackson
    [email hidden]
    (Change '.invalid' to '.co.uk' to reply direct)
    Absurd patents: visit http://www.patent.freeserve.co.uk

  8. "Peewiglet" <[email hidden]> wrote in message
    news:[email hidden]...

    Quoted message said:

    On Sat, 18 Sep 2004 18:58:21 GMT, "Pete" <[email hidden]>
    wrote:

    Many thanks indeed for replying!

    I thought my .html was the same as yours, but when I worked it through
    I realised (blush) that I'd left out the <td> and </td>. When I put
    them in the problem was solved. Thank you :-)

    Quoted message said:

    It's not normally necessary to set an absolute pixel size for a table.
    Percentages normally work better, and are more flexible regarding screen
    resolutions, monitor sizes, etc.

    But on the other hand useful if you don't want the table to exceed the size
    of the background image so it starts repeating itself, it would be better to
    set an absolute pixel size for the table.

    If you look at the code of
    http://www.mountaineering-scotland.org.uk/index.html
    the collage graphic near the top is a table background with an animated gif
    playing on top of it.

    A word of warning, Netscape Navigator treats background images differently
    from MSIE, and will repeat the image in each cell of the table if there is
    more than one.

    --
    Duncan Gray

    www.duncolm.co.uk
    also The Mountaineering Council of Scotland
    www.mountaineering-scotland.org.uk

  9. [email hidden] said...

    Quoted message said:

    Fran wrote on Sat, 18 Sep 2004 20:53:54 +0100....

    Quoted message said:

    Tim Jackson's our resident HTML expert.

    <splutter> Er.. I think that's going a bit far...


    Oh really? Who was it who used to give me the occasional hint in
    fwa when I was struggling with a handcoded page? Who was it I
    used to see there as a regular poster? And <narrows down the
    field somewhat> who is it who's here now? Mind, I've also seen
    Trendy Tone here occasionally here as well, so if he's lurking
    he'd be able to give advice an' all.
    --
    I try to be a good example to my children, but they just see me
    as a dire warning.

  10. Fran wrote on Sat, 18 Sep 2004 22:29:17 +0100....

    Quoted message said:

    [email hidden] said...

    Quoted message said:

    Fran wrote on Sat, 18 Sep 2004 20:53:54 +0100....

    Quoted message said:

    Tim Jackson's our resident HTML expert.

    <splutter> Er.. I think that's going a bit far...


    Oh really? Who was it who used to give me the occasional hint in
    fwa when I was struggling with a handcoded page? Who was it I
    used to see there as a regular poster? And <narrows down the
    field somewhat> who is it who's here now? Mind, I've also seen
    Trendy Tone here occasionally here as well, so if he's lurking
    he'd be able to give advice an' all.

    You fail to realise that at the time I'd only just learned what little
    I know about this stuff from Trendy Tone (when not actually having
    flame wars with him, before he quietened down). Also from Pedt, who
    incidentally is or was also a walker; I believe he used to drop
    in here at one time too. And I've not actually learned very much more
    since, as I don't really do very much of it.

    --
    Tim Jackson
    [email hidden]
    (Change '.invalid' to '.co.uk' to reply direct)
    Absurd patents: visit http://www.patent.freeserve.co.uk

  11. [email hidden] said...

    Quoted message said:

    Fran wrote on Sat, 18 Sep 2004 22:29:17 +0100....

    Quoted message said:

    [email hidden] said...

    Quoted message said:

    Fran wrote on Sat, 18 Sep 2004 20:53:54 +0100....
    > Tim Jackson's our resident HTML expert.

    <splutter> Er.. I think that's going a bit far...


    Oh really? Who was it who used to give me the occasional hint in
    fwa when I was struggling with a handcoded page? Who was it I
    used to see there as a regular poster? And <narrows down the
    field somewhat> who is it who's here now? Mind, I've also seen
    Trendy Tone here occasionally here as well, so if he's lurking
    he'd be able to give advice an' all.

    You fail to realise that at the time I'd only just learned what little
    I know about this stuff from Trendy Tone (when not actually having
    flame wars with him, before he quietened down).

    Got to be honest, I always found him pompous and a right PITA,
    even if he did know his stuff.

    Quoted message said:

    Also from Pedt, who
    incidentally is or was also a walker; I believe he used to drop
    in here at one time too.

    Pedt is the sort of walker who considers a stroll in the
    Himalayas a thing to do before breakfast. He used to be seen
    around these parts, complete with hat, but life has caught up
    with him of late and he's working for a living whilst learning
    obscure languages. Did you know, incidentally, that he's due to
    get married next month?

    Quoted message said:

    nd I've not actually learned very much more
    since, as I don't really do very much of it.

    Tut, tut. Then again, neither have I, and for much the same
    reason :-)
    --
    I try to be a good example to my children, but they just see me
    as a dire warning.

  12. I noticed that Message-ID: <[email hidden]> from
    Pete contained the following:

    Quoted message said:


    <body bgcolor="#000000">

    <table width="100" height="2" background="backgroundimage.jpg">

    Of course, the modern way would be to use CSS...

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

  13. Fran wrote on Sun, 19 Sep 2004 00:46:28 +0100....

    Quoted message said:

    Pedt is the sort of walker who considers a stroll in the
    Himalayas a thing to do before breakfast. He used to be seen
    around these parts, complete with hat, but life has caught up
    with him of late and he's working for a living whilst learning
    obscure languages. Did you know, incidentally, that he's due to
    get married next month?

    No. Are you in touch with him then, or do you just inhabit the same
    newsgroups? I recall that he lived with a lady whose name escapes me
    - same person presumably?

    --
    Tim Jackson
    [email hidden]
    (Change '.invalid' to '.co.uk' to reply direct)
    Absurd patents: visit http://www.patent.freeserve.co.uk

  14. Peewiglet said:

    Sorry for asking something so OT, but I reckon someone here will know
    the answer.

    I've got a page with a table on it. The table's a fixed width, and the
    idea is that the size of the rest of the page will be determined by
    the size of the monitor on which people are looking at the page.

    I'd like to have a background image in the table, and a background
    colour in the larger page. However, I find that if I include a
    background colour in the body (for the larger page) then the
    background image doesn't show up in the table.

    Can anyone tell me what I'm doing wrong. I'm sure there must be a
    simple answer to this but so far my efforts have failed to uncover it.

    Many thanks for any help.

    Best wishes,


    This seems to work ok

    <body bgcolor="#00FF00">
    <table width="400" background="image.jpg">
    <tr>
    <td>xyz</td>
    </tr>
    </table>
    </body>

  15. Peewiglet said:
    Tim Jackson said:

    Can you give us a URL so we can look at it?

    It's not really done yet, and looks pretty scruffy. I'm still writing
    up the text, but also I'm still playing around with the formatting.
    That particular problem is now solved, though, so hopefully I can put
    it up tomorrow 🙂

    Best wishes,

    You might find something to help here.

    http://htmlgoodies.earthweb.com/tutors/tbl.html

    --

    Don`t Worry, Be Happy

    Sandy
    --

    E-Mail:- [email hidden]
    Website:- http://www.ftscotland.co.uk
    Looking for a webhost? Try http://www.1and1.co.uk/?k_id=2966019

  16. [email hidden] said...

    Quoted message said:

    Fran wrote on Sun, 19 Sep 2004 00:46:28 +0100....

    Quoted message said:

    Pedt is the sort of walker who considers a stroll in the
    Himalayas a thing to do before breakfast. He used to be seen
    around these parts, complete with hat, but life has caught up
    with him of late and he's working for a living whilst learning
    obscure languages. Did you know, incidentally, that he's due to
    get married next month?

    No. Are you in touch with him then,

    Yes.

    Quoted message said:

    or do you just inhabit the same
    newsgroups?

    Also yes - occasionally he pops into the shed when life isn't
    threatening to take over.

    Quoted message said:

    I recall that he lived with a lady whose name escapes me
    - same person presumably?

    Ah. Long story. That one went away to work, taking one of the
    dogs; found someone else... Meanwhile, our hero meets a lady of
    Ukrainian origin to whom he's been teaching English; previous
    lady turns up to meeting, unannounced and unappreciated; new
    acquaintance objects to this treatment of a friend; kisses him in
    public just to get a reaction from previous lady; instead gets
    reaction from our hero and indeed herself, surprising everyone.
    This was, IIRC, well over a year ago, could be two years now, in
    fact probably is about that... The rest you can fill in for
    yourself. As soon as her passport and emigration papers are
    sorted out I'm looking forward to meeting a lady with the most
    amazing (read that as you will) command of English of anyone I've
    ever encountered. Thankfully in Pedt she has a walking talking
    dictionary and translation service. Against all the odds
    and common sense (trust me on this, it's another long story and
    not necessarily one to be shared without permission[1]) they seem
    very happy together - which is all that matters, innit.

    [1] Most of the rest has appeared in at least one other NG, and
    for all I know in fwa too.
    --
    I try to be a good example to my children, but they just see me
    as a dire warning.

  17. "Geoff Berrow" <[email hidden]> wrote in message
    news:[email hidden]...

    Quoted message said:

    I noticed that Message-ID: <[email hidden]> from
    Pete contained the following:

    Quoted message said:


    <body bgcolor="#000000">

    <table width="100" height="2" background="backgroundimage.jpg">

    Of course, the modern way would be to use CSS...

    --

    Agreed, but I didn't think the OP was quite ready for that. I could be
    wrong though

    Pete

  18. "Duncan Gray" <[email hidden]> wrote in message
    news:[email hidden]...

    Quoted message said:


    "Peewiglet" <[email hidden]> wrote in message
    news:[email hidden]...

    Quoted message said:

    On Sat, 18 Sep 2004 18:58:21 GMT, "Pete" <[email hidden]>
    wrote:

    Many thanks indeed for replying!

    I thought my .html was the same as yours, but when I worked it through
    I realised (blush) that I'd left out the <td> and </td>. When I put
    them in the problem was solved. Thank you :-)

    Quoted message said:

    It's not normally necessary to set an absolute pixel size for a table.
    Percentages normally work better, and are more flexible regarding


    screen

    Quoted message said:
    Quoted message said:
    Quoted message said:

    resolutions, monitor sizes, etc.

    But on the other hand useful if you don't want the table to exceed the


    size

    Quoted message said:

    of the background image so it starts repeating itself, it would be better


    to

    Quoted message said:

    set an absolute pixel size for the table.

    I would normally use CSS to avoid the image repeat, but yes, you are quite
    right

    Pete

  19. On Sun, 19 Sep 2004 20:41:55 GMT, "Pete" <[email hidden]>

    Quoted message said:
    Quoted message said:
    Quoted message said:

    <body bgcolor="#000000">

    <table width="100" height="2" background="backgroundimage.jpg">

    Of course, the modern way would be to use CSS...

    Quoted message said:

    Agreed, but I didn't think the OP was quite ready for that. I could be
    wrong though

    Next time, perhaps 🙂

    Best wishes,
    --
    Peewiglet

  20. Sandy Birrell said:

    You might find something to help here.

    http://htmlgoodies.earthweb.com/tutors/tbl.html

    Thanks for that 🙂

    Best wishes,
    --
    Peewiglet

Active in the last 60 minutes

Active in this thread

0 users · 0 guests ·0 bots ·0 total

No signed-in users are active right now.

No known search crawlers active right now.