Results 1 to 21 of 21

Thread: Table background image no-repeat

  1. #1

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Table background image no-repeat

    I want to put an image in a particular cell in a table. the problem
    is if the cell gets resized to large the image gets repeated
    accross the cell. I have tried using the styles for the page, but
    then the image is not centered in the cell during any resizing.

    What is the correct syntax to accomplish this (if possible).

    Thanks for any assistance.
    Last edited by RobDog888; Jan 20th, 2004 at 02:57 PM.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  2. #2
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    I'm going to guess that you have the correct syntax. I'm not going to look to see what it should be. You can double check the documentation yourself (I have links in my sig if it will help).

    I am going to warn though, that IE's support of five-year-old CSS standards is questionable at best. Even if you get the correct CSS, it may only work in compliant browsers (try Mozilla).

    'Course, if you are having problems in Mozilla, then let us know, we'll look into it deeper. I'm just suspecting that IE is your problem since it is 99% of the problem.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  3. #3
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    I don't think Gecko is a good as everyone says... I'de made a lot of different rendering tests and Mosaic is always the winner... The only thing that bothers me is that M$ is setting their own standards instead of sticking to w3c - but otherwise, I can't see why I should use Gecko above Mosaic...
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Mosaic? Do you mean IE's engine?


    Given that the table cell has an id, this CSS should work, AFAIK in all browsers > 4.
    Code:
    #cellid {
      background-image: url(blabla);
      background-repeat: no-repeat;
      background-position: center center;
    }
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    Thanks guys for the replies.

    Corned Bee, I will try it out in a few hours.
    I will let you know how it goes.

    Thanks.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Originally posted by CornedBee
    Mosaic? Do you mean IE's engine?


    Given that the table cell has an id, this CSS should work, AFAIK in all browsers > 4.
    Code:
    #cellid {
      background-image: url(blabla);
      background-repeat: no-repeat;
      background-position: center center;
    }
    Yes... Mosaic... MoZilla was originally name
    Mosaic Killer, but it somehow got to be MoZilla in common speech
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Mozilla was an extremly early nickname of Netscape, older than IE.

    I don't think Gecko is a good as everyone says... I'de made a lot of different rendering tests and Mosaic is always the winner...
    What kind of tests? I don't think IE supports a single feature of the CSS and DOM standards that Moz doesn't, and very few if any in the HTML standard. Not to mention that IE doesn't support XHTML at all. It doesn't understand the application/xhtml+xml document type (download box pops up) and renders application/xml as XML tree even if the root element is <html> with a correct namespace. That is, unless you specify a XHTML 1.1 doctype which IE cannot parse.

    Just compare my page in Mozilla and IE.
    http://stud3.tuwien.ac.at/~e0226430/base.xml
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Mozilla is an open source project born of the Gecko project. The Gecko project came from Netscape. Netscape was built by the people who built the world's first graphical HTTP client: Mosaic.

    Mozilla's heritage is Mosaic. IE's engine may be Mosaic simply because MS has never innovated a day in its life. It takes what it can from other places just to save itself time. I think by IE 6 though, we've seen atleast one rewrite if not two. IE may still identify itself as a Mosaic-based browser, but I doubt it is.

    Don't think of Mozilla as something that wants to kill Mosaic, but as Mosaic on steriods, wanting to destroy or protect Tokyo, depending on which movie you watch.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594


    Thanks for clearing that up.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  10. #10
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Originally posted by CornedBee
    Just compare my page in Mozilla and IE.
    http://stud3.tuwien.ac.at/~e0226430/base.xml
    Some other ones to compare:

    http://www.meyerweb.com/eric/css/edge/
    http://garris.pointclark.net/ (sliding menus without any JavaScript)

    Don't abuse my site, please, it is an old machine on a cable modem.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  11. #11
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Unlike me and you, Eric actually went through the trouble to get his page working in IE.

    A nice page you've got there. I like the menu effect.

    But mine is still the largest difference.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  12. #12
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Originally posted by CornedBee
    Unlike me and you, Eric actually went through the trouble to get his page working in IE.
    Yeah, I can't be bothered to be held back by the those who refuse to acknowledge five-year-old standards. Cookie for Eric, though.

    A nice page you've got there. I like the menu effect.
    Thank you. It is accessible for aural browsers. I haven't tested enough for users with low vision who may crank the font up to 1000% or so, but if they select the basic style sheet (something Mozilla will let you do from the View menu), then they shouldn't have a problem.

    If I was any measure of a graphic artist, I would wrap everything a little better to give it a Art Deco/Streamline Modern look. I'm just tickled at what can be done without scripting.

    But mine is still the largest difference.
    Yes, yes it is. Wow.... I haven't made the move, yet, to XHTML, but I see you've jump ahead to the end of the book.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  13. #13
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You know, I'd love to use XHTML 2, XForms, SVG and all those gimmicks. But there's not a single browser supporting all of these natively...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  14. #14
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    well

    Wether It's 5 year old standards or not 90% of the worlds internet users use it, so one has to adapt to it, no matter what you think or say, nothing will change that... I myself use MoZilla(I like the interface better ) <-- but that's also the only reason...
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  15. #15
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218

    Re: well

    Originally posted by vbNeo
    Wether It's 5 year old standards or not 90% of the worlds internet users use it, so one has to adapt to it, no matter what you think or say, nothing will change that... I myself use MoZilla(I like the interface better ) <-- but that's also the only reason...
    I think that arguement is silly. We have to put up with second rate products because we are too lazy to demand better? I can't get into that. And what kind of person or company can tolerate the wide-spread knowledge, the open truth that they are too lazy and selfish and greedy to support standards that they themselves helped write five years ago?

    I actually like Opera's interface better, but use Mozilla since it supports the CSS Events that Opera doesn't.

    Opera does support the @media convention. Last I check, Mozilla didn't support that.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  16. #16
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    lol

    I'd like to see any of you change the fact that 90% of the internet users use IE - it can't be done, people won't understand why - and think IE is better because it's built into their favorite bunch of errors(windows)...
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  17. #17
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Don't know about @media, but Moz certainly allows both the media attribute on <link> and the media types on @import.

    I think that arguement is silly. We have to put up with second rate products because we are too lazy to demand better? I can't get into that. And what kind of person or company can tolerate the wide-spread knowledge, the open truth that they are too lazy and selfish and greedy to support standards that they themselves helped write five years ago?
    Wide-spread knowledge? Among the likes of you and me, yes. But we are learned computer users, even programmers. The 90% IE-users out there mostly know how to turn the computer on, start MSoffice and use it. And maybe a few other programs too. Most of them never heard of Mozilla and would be afraid to use it if they knew it existed.

    Of course, there's no reason for that. I installed it on my mother's PC and she hasn't got any problems.

    But it's the way it is.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  18. #18
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Originally posted by CornedBee
    Wide-spread knowledge?
    Well, true.

    I think there is something at Opera's website that demonstrates the @media thing. You can specify a different CSS for print, screen, projection, and I think aural.

    The thing that is neat is projection: this is basicly, how should the page look if it were to be projected onto a big screen (full-screen mode)? You can set up page breaks and the websites starts to look like a MS Powerpoint presentation.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  19. #19
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    the websites starts to look like a MS Powerpoint presentation.
    Ohh God no - please don't let that happen
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  20. #20
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Originally posted by vbNeo
    Ohh God no - please don't let that happen
    Yeah, there was a day when websites actually contained useful content. Funny that, we wouldn't want content, we just want flashy graphics and lots of links to things that are cool and equally hollow.

    Some content can actually be appropriately displayed in a presentation format.

    Me personally would just use it for making easy family slide shows. Opera is free and it is using an open standard, so no need to pirate PowerPoint.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  21. #21
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    OpenOffice is free too, and it's made for presentations, unlike HTML.

    But I agree, it can be a very nice feature. I'm not sure about Mozilla's support for "projection" (in particular I don't know if it ever uses it), but I know that the CSS Validator has a bug with it.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width