What's the best method of applying a repeating background image in Dreamweaver CS3?

Discussion in 'Web Design and Development' started by macaddict23, Nov 24, 2008.

  1. macaddict23 macrumors 6502

    macaddict23

    Joined:
    Jun 20, 2006
    Location:
    MacVille, USA
    #1
    I want to apply a horizontally repeating background graphic throughout my entire Website. Which of the two is "correct"?

    Method 1:
    Apply the settings in the Page Properties dialog box (Modify>Page Properties)

    Method 2:
    Apply via the CSS dialog box

    Thanks in advance for the help.
     
  2. 66217 Guest

    Joined:
    Jan 30, 2006
    #2
    Are you hand-coding?

    I always make it like this:

    body { background-repeat: repeat-x; background-color: white; background-image:url(Images/Photoshop/background_content.png); }

    In my opinion this is the best way of doing it. Tho I don't really know what you mean with Page Properties.:eek:
     
  3. macaddict23 thread starter macrumors 6502

    macaddict23

    Joined:
    Jun 20, 2006
    Location:
    MacVille, USA
    #3
    Thanks Roco. I know how to hand-code it. I'm putting together a quick tutorial for people who are not comfortable working in code. Thanks.
     
  4. memco macrumors 6502

    Joined:
    May 1, 2008
    #4
    I recommend using the CSS panel that way you ensure avoiding nasty inline styles. However, if properties does add the bg to the external CSS it would be ok to use that too I suppose.
     
  5. design-is macrumors 65816

    design-is

    Joined:
    Oct 17, 2007
    Location:
    London / U.K.
    #5
    I agree with memco :)

    I would say the CSS panel would be best though, as it would introduce people to an asset which will become very useful as they progress.
     
  6. macaddict23 thread starter macrumors 6502

    macaddict23

    Joined:
    Jun 20, 2006
    Location:
    MacVille, USA

Share This Page