SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Body background colour

    Is not defined....which means in any browser which has a preference other than white for this (I have a bespoke set-up in Opera), the site can look a little on the odd side

    Not a tough one to fix though
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    For your eyes only...

    ...and in a browser like IE, where you can't change bgColor (at least I have never found a menu called File/Edit | Preferences in IE...), how can you "fix" the background? (BTW, changing bgColor isn't enough, since the table with className="page" has white background)

    I've read that the white color was painful for some persons

    Simple solution; just write "your own" web browser...
    Here's a VB example, what to do on DocumentComplete:
    Code:
     	
    Me.WebBrowser1.Document.body.bgColor = "#cddeed"
    Set colTables = Me.WebBrowser1.Document.getElementsByTagName("table" )
    For Each objTable In colTables
      If objTable.className = "page" Then
    	objTable.Style.backgroundColor = "cddeed"
      End If
    Next
    Last edited by jofa; Feb 24, 2003 at 16:40.

  3. #3
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Preferences in IE are under Tools -> Internet Options. Or in your Control Panel.

    There is a background color defined:

    body {
    background: #FAFAFA;
    color: #333333;
    margin: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    }

    Not sure why your browser doesn't recognize it. Even Netscape 4.X recognizes it.
    Wayne Luke
    ------------


  4. #4
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops, found the button "Colors" in IE
    Going for the Stupid Member 2003 Award
    But it was a very small button, that's why it took me seven years to find it...

    Anyway, isn't fafafa almost equal to ffffff?
    And most of the page isn't the body, it's the table with class=page (and colour ffffff)

  5. #5
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    For what it's worth, there still is no background color defined. Would you like a screenshot?

    Here's the style I'm getting:

    body {
    color: #000;
    font: small verdana,arial,helvetica,sans-serif;
    margin: 0px;
    }

    No background or background color is defined.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  6. #6
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There are multiple style sheets just like on the main site.

    You will find a background color defined in either format.css or structure.css. However I am not sure why the SitePoint Designers broke it up like that.
    Wayne Luke
    ------------


  7. #7
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm referring to the forums. The forums are not using format.css or structure.css.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  8. #8
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well they were when I set them up three days ago. I guess it is the case of too many cooks in the kitchen and people not telling each other what they are doing. Shows why all the changes that I have been making to those style sheets aren't taking effect properly... Sure wish people would learn to communicate properly.
    Wayne Luke
    ------------



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
  •