F*ckin’ background images…

Finally muddling through my template design — surprisingly enough, with the help of the Nuclear Moose’s Wordpress template tutorial, I’ve actually managed to learn a few things. Things are starting to look somewhat like I’d prefer them to look. The problem is, if you’re looking at this blog in 1024×768 resolution — like I am now — you are treated to a hella sweet background image of Mt. Baekdu. If you are using a higher resolution, however, not only does the image repeat, but it repeats in a really bad spot. I might go with a solid color later, or perhaps a repeating background image that lends itself better to this kind of thing. I’m going to leave it as it is for tonight, just in case any of you nice techie folk out there can give me some hints on to how to possibly get the background image to streeeeeetch to fit browsers of different resolutions. As I understand it, this is theoretically impossible, but hell, if you know better, please let me know.

12 Comments

  1. Posted July 8, 2004 at 5:24 am | Permalink

    I miss your fantastic photo of the Korean police in riot gear. Any way you can transplant it? It is so….Korea.

  2. Posted July 8, 2004 at 9:41 am | Permalink

    Click here to see how to repeat
    images vertically or horizontally with the Body Background tag in CSS.

    You may also want to trim the width of this “Your Comment” block - as I’m typing, some text is disappearing
    under the right column.

    Steve

  3. dda your flag
    Posted July 8, 2004 at 10:21 am | Permalink

    background-image: url(’xxxxxxxxxx.jpg’);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top left;

    I’ll explain all that on Saturday.

  4. dda your flag
    Posted July 8, 2004 at 10:23 am | Permalink

    It won’t stretch the image, but at least prevent it from repeating

  5. Posted July 8, 2004 at 11:28 am | Permalink

    But the answer to your question is to fix it via JavaScript. Make a few copies of the picture for each of the browser
    resolutions you want to support. Remove the Body Background Img tag from your CSS. Not familiar with WordPress’ interface,
    so can’t really tell you how to insert a javascript into index.php, but it would look something like this:

    SCRIPT LANGUAGE=”JavaScript”
    !– start
    document.write(”STYLE type=”text/css”")
    document.write(”!–”)
    document.write(”BODY { background-image:url”)
    if ((screen.width == 640) (screen.height == 480))
    document.write(”the_name_of_your_640×480_image.jpg; }”)
    else if ((screen.width == 800) (screen.height == 600))
    document.write(”the_name_of_your_800×600_image.jpg; }”)
    else if ((screen.width == 1024) (screen.height == 768))
    document.write(”the_name_of_your_1024×768_image.jpg; }”)
    else document.write(”the_name_of_your_default_image.jpg; }”)
    document.write(”– /STYLE”)

    // End –>
    /SCRIPT

  6. Posted July 8, 2004 at 11:31 am | Permalink

    Well, it looks like some a couple of the extra dashes were deleted.
    Anywhere there’s a (dash) there should be a (dash)(dash),
    likewise, when there’s a (dash) it should read (dash)(dash)

  7. Posted July 9, 2004 at 12:43 am | Permalink

    hey this is a great design. congratulations, nice work.

  8. Dave your flag
    Posted July 9, 2004 at 9:23 am | Permalink

    Leave the background image. Love it. Ignore the silly nonconformists who aren’t running at 1024×768.

  9. The King of Kwangju your flag
    Posted July 10, 2004 at 3:45 am | Permalink

    Are you joking? This background image is 630752 bytes! Your entire website shouldn’t be that heavy.

    Come to your senses and dump it - those on dialup with thank you.

  10. hardyandtiny your flag
    Posted July 11, 2004 at 9:25 am | Permalink

    I prefer a white background wherever you have text.

  11. Posted July 20, 2004 at 6:52 am | Permalink

    You could put a wrapper around the graphic so that it takes up the extra space by framing it? And if you ran the image thru photoshjop you could probably reduce the file size by 75% without losing any noticeable quality. Just my 2c. Nice looking blog.

  12. Posted April 22, 2005 at 1:39 pm | Permalink

    Please check the pages in the field of prvgl

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*