table cell background image - not movable

Discussion in 'HTML' started by Joe Butler, Oct 21, 2003.

  1. Joe Butler

    Joe Butler Guest

    I've seen sites with background images that don't scroll with the site's
    text etc.

    Is it possible to define a background image for a single table cell that
    does not scroll with the table.

    My site is layed out using a table, where the lower-right cell is the page's
    content. I want this cell only to have a non-scrolling background.

    Thanks.
     
    Joe Butler, Oct 21, 2003
    #1
    1. Advertising

  2. Joe Butler

    Sid Ismail Guest

    On Tue, 21 Oct 2003 00:09:02 +0100, "Joe Butler" <>
    wrote:

    : I've seen sites with background images that don't scroll with the site's
    : text etc.
    :
    : Is it possible to define a background image for a single table cell that
    : does not scroll with the table.
    :
    : My site is layed out using a table, where the lower-right cell is the page's
    : content. I want this cell only to have a non-scrolling background.


    For that cell,
    <td class="background: #00FF00 url(stars.gif)
    no-repeat fixed center center;">

    Sid
     
    Sid Ismail, Oct 21, 2003
    #2
    1. Advertising

  3. Joe Butler

    Joe Butler Guest

    Thanks...

    .... but that does not work. I get no background at all with it. Are you
    sure this is not malformed.
    I'm pretty inexperienced with html, so I'm not going to notice if you've
    missed obvious things out.

    <td class="background: #00FF00 url(stars.gif) no-repeat fixed center
    center;">


    "Sid Ismail" <> wrote in message
    news:p...
    > On Tue, 21 Oct 2003 00:09:02 +0100, "Joe Butler"

    <>
    > wrote:
    >
    > : I've seen sites with background images that don't scroll with the site's
    > : text etc.
    > :
    > : Is it possible to define a background image for a single table cell that
    > : does not scroll with the table.
    > :
    > : My site is layed out using a table, where the lower-right cell is the

    page's
    > : content. I want this cell only to have a non-scrolling background.
    >
    >
    > For that cell,
    > <td class="background: #00FF00 url(stars.gif)
    > no-repeat fixed center center;">
    >
    > Sid
    >
    >
     
    Joe Butler, Oct 21, 2003
    #3
  4. Joe Butler

    Joe Butler Guest

    .... and i did substitute the correct graphic !

    "Sid Ismail" <> wrote in message
    news:p...
    > On Tue, 21 Oct 2003 00:09:02 +0100, "Joe Butler"

    <>
    > wrote:
    >
    > : I've seen sites with background images that don't scroll with the site's
    > : text etc.
    > :
    > : Is it possible to define a background image for a single table cell that
    > : does not scroll with the table.
    > :
    > : My site is layed out using a table, where the lower-right cell is the

    page's
    > : content. I want this cell only to have a non-scrolling background.
    >
    >
    > For that cell,
    > <td class="background: #00FF00 url(stars.gif)
    > no-repeat fixed center center;">
    >
    > Sid
    >
    >
     
    Joe Butler, Oct 21, 2003
    #4
  5. Joe Butler pounced upon this pigeonhole and pronounced:
    > Thanks...
    >
    > ... but that does not work. I get no background at all with it. Are you
    > sure this is not malformed.
    > I'm pretty inexperienced with html, so I'm not going to notice if you've
    > missed obvious things out.
    >
    > <td class="background: #00FF00 url(stars.gif) no-repeat fixed center
    > center;">


    Needs to be style instead of class.

    <td style="background: #00FF00 url(stars.gif) no-repeat fixed center
    center;">

    ...or put it all in your stylesheet, and _then_ use class.

    --
    -bts
    -This space intentionally left blank.
     
    Beauregard T. Shagnasty, Oct 21, 2003
    #5
  6. Joe Butler

    Joe Butler Guest

    still does not work.

    background is fixed solid within the cell.


    "Beauregard T. Shagnasty" <> wrote in message
    news:iC_kb.40773$...
    > Joe Butler pounced upon this pigeonhole and pronounced:
    > > Thanks...
    > >
    > > ... but that does not work. I get no background at all with it. Are you
    > > sure this is not malformed.
    > > I'm pretty inexperienced with html, so I'm not going to notice if you've
    > > missed obvious things out.
    > >
    > > <td class="background: #00FF00 url(stars.gif) no-repeat fixed center
    > > center;">

    >
    > Needs to be style instead of class.
    >
    > <td style="background: #00FF00 url(stars.gif) no-repeat fixed center
    > center;">
    >
    > ..or put it all in your stylesheet, and _then_ use class.
    >
    > --
    > -bts
    > -This space intentionally left blank.
     
    Joe Butler, Oct 21, 2003
    #6
  7. Joe Butler

    Sid Ismail Guest

    On Mon, 20 Oct 2003 23:55:58 GMT, Beauregard T. Shagnasty
    <> wrote:

    : Needs to be style instead of class.
    :
    : <td style="background: #00FF00 url(stars.gif) no-repeat fixed center
    : center;">


    right - apologies... braindead here...

    Sid
     
    Sid Ismail, Oct 21, 2003
    #7
  8. Leif K-Brooks, Oct 21, 2003
    #8
  9. Sid Ismail wrote:

    > For that cell,
    > <td class="background: #00FF00 url(stars.gif)
    > no-repeat fixed center center;">


    * Should be style not class
    * Internet Explorer is broken and can't handle 'fixed' properly for anything
    other then the <body>

    --
    David Dorward http://dorward.me.uk/
     
    David Dorward, Oct 21, 2003
    #9
  10. Joe Butler wrote:

    > still does not work.
    >
    > background is fixed solid within the cell.


    Internet Explorer only supports fixed backgrounds on <body> -- not on
    table cells or anything else.

    Most other browsers should handle it fine though.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?id=132
     
    Toby A Inkster, Oct 21, 2003
    #10
  11. Joe Butler

    Sid Ismail Guest

    On Tue, 21 Oct 2003 07:24:29 +0100, David Dorward <> wrote:

    : * Internet Explorer is broken and can't handle 'fixed' properly for anything
    : other then the <body>

    Nice to know.. thanks! :)

    Sid
     
    Sid Ismail, Oct 21, 2003
    #11
  12. Joe Butler

    Barefoot Kid Guest

    Barefoot Kid, Oct 21, 2003
    #12
  13. Joe Butler

    Joe Butler Guest

    Thanks for all your help.

    Since I've only got IE installed and do not really want to install Netscape
    et al, I think that I'll leave this aspect as it is - even though I
    particularly like non-scrolling backgrounds - otherwise I'll only break it
    one day and never notice anything's gone wrong.

    Also...

    > My site is layed out using a table
    >>Don't do that. http://www.allmyfaqs.com/cgi-bin/wiki.pl?Tableless_layouts


    I've looked at the link, and will examine it in more detail at some time.
    Yet, I can't immediately see why I should not use tables. If I can achieve
    a particular task with one piece of multi-use knowledge, why should I bother
    to learn the alternative? Tables are more straightforward are they not?

    Simply because something was not designed for a particular task should not
    mean it is dismissed out of hand for that task. Take as an example, a
    lemonade bottle - you can store cleaning fluid, bleach and other chemicals
    in it. Put it in your kitchen cupboard, and bob's your uncle. Okay, bad
    example, but I'm sure no one here opens paint tins with an 'Acme Paint Tin
    Opener', we use a screwdriver.

    So, in a nutshell, what's wrong with using tables for layout?

    Thanks,

    Joe

    "Joe Butler" <> wrote in message
    news:bn1puk$8ud$...
    > I've seen sites with background images that don't scroll with the site's
    > text etc.
    >
    > Is it possible to define a background image for a single table cell that
    > does not scroll with the table.
    >
    > My site is layed out using a table, where the lower-right cell is the

    page's
    > content. I want this cell only to have a non-scrolling background.
    >
    > Thanks.
    >
    >
    >
     
    Joe Butler, Oct 21, 2003
    #13
  14. Joe Butler

    Mark Parnell Guest

    Mark Parnell, Oct 22, 2003
    #14
  15. Joe Butler

    Adrienne Guest

    Gazing into my crystal ball I observed "Joe Butler"
    <> writing in
    news:bn4d3n$e2k$:

    > Thanks for all your help.
    >
    > Since I've only got IE installed and do not really want to install
    > Netscape et al, I think that I'll leave this aspect as it is - even
    > though I particularly like non-scrolling backgrounds - otherwise I'll
    > only break it one day and never notice anything's gone wrong.
    >


    You should install different browsers for several reasons:
    1. Be able to see what a page is behaving in various browsers, for example,
    IE will still render <img src="\images\myimage.gif"> while other will not.
    By testing in another browser, you can catch errors like this.

    2. See what you're missing. For example, IE does not honor position:fixed,
    but other browsers do. Actually, there are a lot of things that IE doesn't
    do.

    3. Other browsers have more features that do not require plugins, for
    example, Opera has built in pop-up stopper, and Google search already comes
    with it.

    > Also...
    >
    >> My site is layed out using a table
    >>>Don't do that.
    >>>http://www.allmyfaqs.com/cgi-bin/wiki.pl?Tableless_layouts

    >
    > I've looked at the link, and will examine it in more detail at some
    > time. Yet, I can't immediately see why I should not use tables. If I
    > can achieve a particular task with one piece of multi-use knowledge,
    > why should I bother to learn the alternative?


    It's always a good thing to learn. Why are you sticking your head in the
    sand?

    > Tables are more
    > straightforward are they not?
    >


    Tables are a PITA to debug. When I switched from table layouts to CSS
    positioning, I was thrilled.

    > Simply because something was not designed for a particular task should
    > not mean it is dismissed out of hand for that task. Take as an
    > example, a lemonade bottle - you can store cleaning fluid, bleach and
    > other chemicals in it. Put it in your kitchen cupboard, and bob's your
    > uncle. Okay, bad example, but I'm sure no one here opens paint tins
    > with an 'Acme Paint Tin Opener', we use a screwdriver.
    >
    > So, in a nutshell, what's wrong with using tables for layout?


    Use the right tool for the job. If you have an ACME Paint Tin Opener, then
    use it. If you don't, use a screwdriver. Point is, you DO have an ACME
    Paint Tin Opener, and you refuse to learn how to use it.

    >
    > Thanks,
    >
    > Joe
    >
    > "Joe Butler" <> wrote in message
    > news:bn1puk$8ud$...
    >> I've seen sites with background images that don't scroll with the
    >> site's text etc.
    >>
    >> Is it possible to define a background image for a single table cell
    >> that does not scroll with the table.
    >>
    >> My site is layed out using a table, where the lower-right cell is the
    >> page's content. I want this cell only to have a non-scrolling
    >> background.
    >>
    >> Thanks.
    >>
    >>
    >>

    >
    >
    >




    --
    Adrienne Boswell
    Please respond to the group so others can share
    http://www.arbpen.com
     
    Adrienne, Oct 22, 2003
    #15
  16. Joe Butler

    Barefoot Kid Guest

    | Adrienne Boswell
    | Please respond to the group so others can share
    | http://www.arbpen.com

    http://www.arbpen.com

    i remember when i was doing a course called new media new business we had to analyse a bunch of
    sites, and this was 1 of em :)
    ---------------------------------------------------
    Hung Diep
    New Media Designer
    www.intro-spect.co.uk
    0795 6576 319
     
    Barefoot Kid, Oct 22, 2003
    #16
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Water Cooler v2
    Replies:
    3
    Views:
    36,926
    Water Cooler v2
    Jul 12, 2006
  2. =?Utf-8?B?TWljaGFlbA==?=

    themeable table cell background-image

    =?Utf-8?B?TWljaGFlbA==?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    431
    =?Utf-8?B?TWljaGFlbA==?=
    Oct 11, 2006
  3. TAM
    Replies:
    1
    Views:
    386
    David Dorward
    Apr 30, 2004
  4. Water Cooler v2
    Replies:
    1
    Views:
    167
    David Dorward
    Jul 12, 2006
  5. Jim
    Replies:
    2
    Views:
    157
Loading...

Share This Page