SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru tombempty's Avatar
    Join Date
    Oct 2001
    Location
    New York
    Posts
    688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    body function will not change

    Hello,

    At this site I am trying to develop, Paul Squillace: Design, Devleop, Deploy!, the body element that I set up originally does not seem to want to change when I look at it in Firebug.

    The local style.css file has this for a body

    background:url(../images/bg.jpg) no-repeat;

    but when I use firebug on 2 different machines, the body shows this

    background: url("../images/bg.jpg") no-repeat scroll 0 0 transparent;

    whcih is an older one I was using.

    I have refreshed and cleard my cashe a few times and used 2 different machines.

    What am I doing wrong here?

    Thanks for any help or adivce on this,

    Paul
    ********
    Regards,

    P

  2. #2
    SitePoint Addict EarlyOut's Avatar
    Join Date
    Mar 2011
    Location
    Sector R
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you use shorthand, Firebug "fills in" the default values for the things you haven't explicitly specified. So, "scroll" is the default value for background-attachment, "0 0" is the default for background-position, and "transparent" is the default for background-color. You haven't specified any values for those attributes, so Firebug is telling you that the defaults apply, and is showing you what those defaults are.

  3. #3
    SitePoint Guru tombempty's Avatar
    Join Date
    Oct 2001
    Location
    New York
    Posts
    688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh.... Thanks for that explaination. That helped me a ton to understand what was going on.

    I thought I was going bonkers there for a min.

    Paul
    ********
    Regards,

    P

  4. #4
    SitePoint Addict EarlyOut's Avatar
    Join Date
    Mar 2011
    Location
    Sector R
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tombempty View Post
    I thought I was going bonkers there for a min.
    Well, that's still a possibility that we can't definitively rule out.

  5. #5
    SitePoint Guru tombempty's Avatar
    Join Date
    Oct 2001
    Location
    New York
    Posts
    688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ha ha Ha.... what a card!!!

    lol
    ********
    Regards,

    P


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
  •