Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Adding a background and have it tile

  1. #1
    Join Date
    Jun 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding a background and have it tile

    IN Dreamweaver, I created a new css called mainbackground.css .. here is what inside:

    .background {
    background-image: url(images/background/mainback.gif);
    background-repeat: repeat;
    }

    in my main page I call the .css
    it displays the image but only at the stop of the page in one little strip.
    tried to upload the gif but got .

    mainback.gif:
    The Dimension limits for this filetype are 620 x 280. We were unable to resize your file so you will need to do so manually and upload it again. Your file is currently 5 x 944.

    Does this have something to do with the reason its not covering the whole screen
    Last edited by DreamGirlB; 06-18-2006 at 07:22 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    There's nothing wrong with that. Is the element big enough to tile it vertically?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jun 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default This is happening to every image I get

    Even using the gradient tool throught dynamic Drive

    The image is the background of www.space.com. (The gradient blue color)

    when I save as it is very tiny... but I can right click and make it my background on windows without any problem..

    But its every image i pick its just puts a thick stripe of the color across the page

  4. #4
    Join Date
    Jun 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone have any ideas about how I can get ANY image to work.. sigh... even just adding regular backgroun does the same thing!! just a color..I must be calling the background.css in a weird place in my body.

    This is the code dreamweaver is putting in my body..

    <p class="background">&nbsp;</p>

    Twey I think my navigation bar, might be screwing itup, is there something I have to do to make it a another layer, so that the navigation bar doesnt matter?
    Last edited by DreamGirlB; 06-18-2006 at 09:06 PM.

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Er.... I wouldn't think that paragraph tags can have backgrounds.

    Use <div class="background">...</div>

    paragraph tags are fairly limited... basically just sectioning of chunks of text.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Er.... I wouldn't think that paragraph tags can have backgrounds.
    They can.
    paragraph tags are fairly limited... basically just sectioning of chunks of text.
    Wrong... they're block-level elements, and can have the same style applied to them as any other block-level element.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please post a link to a demonstration of what you've attempted so far.

    Mike

  8. #8
    Join Date
    Jun 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Background is working fine.. I think it ended up I did use the div background and it worked..

  9. #9
    Join Date
    Jun 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Having this same problem again.. and I'm using the DIV command.. what am I doing wrong!! www.provisionshomecare.com

  10. #10
    Join Date
    Jun 2006
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Quote Originally Posted by DreamGirlB
    Having this same problem again.. and I'm using the DIV command.. what am I doing wrong!! www.provisionshomecare.com
    looking at your source code whats up with the several
    <html><head></head><body></body></html> tags isnt one enough? why do you have three+ just trying to help this could be where some of your troubles are coming from.

Bookmarks

Posting Permissions

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