Background image using CSS

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Background image using CSS

    I'm trying to get a background image on my page using background-image: and I'm having a hard time referencing the location on my hosting server. The image has been uploaded to this server folder:
    D:\Lotus\Domino\Data\domino\html\michael\kids\imag es\

    and my style code says this: <style type="text/css">

    BODY{
    background-image :
    url(file:///D:/Lotus/Domino/Data/domino/html/michael/kids/images/background.jpg);
    background-repeat: no-repeat;
    background-color : "#697299";
    }
    </style>


    But I'm only getting the backgound COLOR, not image. Am I using the wrong source code?



    MDG webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Background Image
      Hi! I would like to insert an Image as background of mydatagrid. The image will be inserted between rows as separator line. Could anyone help...
    2. How Can I Put An Image Background ?
      How Can I Put An Image Background ? If somebody know, pls reply me. 10x
    3. Background image in CSS
      Hi, I was wondering if someone could tell me how to see my background image in my site when after I make a CSS with a background image. I made a...
    4. Image as background
      just make the jpeg the size of the document, put it at 0,0 lock the layer, then hide the layer, that should work fine.. just unlock it when yer all...
    5. background image vs. insert image?
      The height of a table is defined by its content. This does not include background images, so there's no assurance that your entire image will be...
  3. #2

    Default Re: Background image using CSS

    MDG:

    The file must be local to the site. DMX will not render images that are
    externally derived.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "MDG" <webforumsuser@macromedia.com> wrote in message
    news:bheape$roa$1@forums.macromedia.com...
    > I'm trying to get a background image on my page using background-image:
    and I'm having a hard time referencing the location on my hosting server.
    The image has been uploaded to this server folder:
    > D:\Lotus\Domino\Data\domino\html\michael\kids\imag es\
    >
    > and my style code says this: <style type="text/css">
    >
    > BODY{
    > background-image :
    >
    url(file:///D:/Lotus/Domino/Data/domino/html/michael/kids/images/background.
    jpg);
    > background-repeat: no-repeat;
    > background-color : "#697299";
    > }
    > </style>
    >
    >
    > But I'm only getting the backgound COLOR, not image. Am I using the wrong
    source code?
    >
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Background image using CSS

    It was upload from my C drive to our web server. I can't reference that folder??


    MDG webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Background image using CSS

    MDG:

    You can reference it, but DW will not show it. And what would happen after
    you publish the page, anyhow?

    The best bet would be to keep that image in the local site.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "MDG" <webforumsuser@macromedia.com> wrote in message
    news:bhece1$rj$1@forums.macromedia.com...
    > It was upload from my C drive to our web server. I can't reference that
    folder??
    >
    >

    Murray *TMM* Guest

  6. #5

    Default Re: Background image using CSS

    MDG:

    By copying the image into the local site, and making your CSS reference it
    in that location.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "MDG" <webforumsuser@macromedia.com> wrote in message
    news:bhegmg$6fj$1@forums.macromedia.com...
    > How would I do that, by insert the image as an html body background?
    >
    >

    Murray *TMM* Guest

  7. #6

    Default Background Image using CSS

    I am tiling a small page background image and it keeps showing the "joins". How do I stop this?


    kizzy webforumsuser@macromedia.com Guest

  8. #7

    Default Re: Background Image using CSS

    If generally means that you image doesn't repeat sufficiently to create a
    seamless tile. Or if you did it in Fireworks and exported the image as a
    slice, it could could very well mean that you slice is one or two pixels too
    large along the x or y axis. Do you have a sample web page posted
    someplace?

    Cheers,
    Sam

    "kizzy" <webforumsuser@macromedia.com> wrote in message
    news:bhl9be$dl5$1@forums.macromedia.com...
    > I am tiling a small page background image and it keeps showing the
    "joins". How do I stop this?
    >
    >

    Sam Poikail Guest

  9. #8

    Default Re: Background Image using CSS

    Hi Sam

    Version2: [url]http://www.gerardmartin.com/dreamweaver/version2/index.htm[/url]

    Version1: [url]http://www.gerardmartin.com/dreamweaver/images/index.htm[/url]

    in both the page background image sits behind the top image. I have tried version2 with a plain colour and get the same result.

    I have also checked the image size, they are both 44 x 100

    Kiz



    kizzy webforumsuser@macromedia.com Guest

  10. #9

    Default Re: Background Image using CSS

    The reason it does not match up is that each and every pixel on the left
    side must be the same color as the pixel that is the same distance from the
    top as the one on the right side. It usually takes a bit of doing to get a
    tileable texture, but I think there are tools out there that will help you.

    HTH;

    Amy

    "kizzy" <webforumsuser@macromedia.com> wrote in message
    news:bhm7o0$j6j$1@forums.macromedia.com...
    > Hi Sam
    >
    > Version2: [url]http://www.gerardmartin.com/dreamweaver/version2/index.htm[/url]
    >
    > Version1: [url]http://www.gerardmartin.com/dreamweaver/images/index.htm[/url]
    >
    > in both the page background image sits behind the top image. I have tried
    version2 with a plain colour and get the same result.
    >
    > I have also checked the image size, they are both 44 x 100
    >
    > Kiz
    >
    >

    Amy Blankenship Guest

  11. #10

    Default Re: Background Image using CSS

    Success!

    Thanks Sam, Amy

    I used Ily's tiler... took a little bit of working out as I'm using Fireworks MX.

    Kiz


    kizzy webforumsuser@macromedia.com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139