Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Browser defined background color?

  1. #1
    Join Date
    Aug 2006
    Location
    The land of vikings
    Posts
    37
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Browser defined background color?

    Hi,

    Is it possible to make the background color change, if a user got a certain browser? Like, an IE user get #131313, a Firefox user get #FFFFFF.

    Im asking because for some reason, IE shows a darker color than the one i designed my site with... This shows the outline of my design in IE. I gave my entire website #131313 as bg color in Photoshop, and as my bgcolor on the site, but IE shows the designpart, as a darker color.

    Any help would be greatly appreciated!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you are using a stylesheet to set these colors, it is fairly easy. Are you?

    However, there is no real good reason I can think of why this should be the case (though there might be some browser bug or quirk causing it) so, the better question would be, "Why is this even happening and how can I stop it?"

    Even if it is a quirk, perhaps just forcing the browser out of quirks mode would fix it. The best method, if possible, would be to stop it from happening, rather than add to code to change things for certain browsers.

    Can you supply a link to your page?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    Default

    I gave my entire website #131313 as bg color in Photoshop
    Hm? How? Photoshop is an image-editing suite.
    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!

  4. #4
    Join Date
    Aug 2006
    Location
    The land of vikings
    Posts
    37
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    Hm? How? Photoshop is an image-editing suite.
    Yup, but I made my design in Photoshop, and then cut it up in pieces. It is the background color on these pieces, that get darker in IE, but its the exact same color i put as background color in my code. This also works perfect in Firefox, but not in IE.

    jscheuer1 - It is a portfolio site, so its very fast to load, and got a low amount of code. Some extra strings to make sure this dont happen, would not be a problem.

    I have tested it on several computers, its the same prob. I would be very happy for some code to fix it.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by jscheuer1 View Post
    If you are using a stylesheet to set these colors, it is fairly easy. Are you?
    Are you?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Aug 2006
    Location
    The land of vikings
    Posts
    37
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    Are you?
    Oops sorry, yes I am.

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

    Default

    Yup, but I made my design in Photoshop, and then cut it up in pieces.
    That's a very bad way to design a site. Nevertheless, what image format are you using?
    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!

  8. #8
    Join Date
    Aug 2006
    Location
    The land of vikings
    Posts
    37
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    This shows the problem:

    Firefox: http://img167.imageshack.us/img167/9...versionuj0.jpg

    IE: http://img403.imageshack.us/img403/7...versionms6.jpg Notice the change in color, at each side.

  9. #9
    Join Date
    Aug 2006
    Location
    The land of vikings
    Posts
    37
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    That's a very bad way to design a site. Nevertheless, what image format are you using?
    Why is it bad? In this case, I only got 3 main graphics; a top, content, and bottom. They are .png files.

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

    Default

    As I suspected -- gamma correction. Don't save gamma information with the file. You can read more about the problem of gamma correction here.
    Why is it bad?
    It doesn't allow text to be resized, and makes for a fixed-width site that looks bad in resolutions other than those for which it was designed.
    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!

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
  •