Charlie (electriccharlie) wrote in component_help,
Charlie
electriccharlie
component_help

  • Mood:
I hate to ask this question, since I know someone's going to embarass me with an incredibly simple answer. . . .

How do I make my background image fit my journal, no matter what screen resolution the viewer has?




function Page::print_custom_head() {
"""
< style media="screen" type="text/css">
body { background-color: #222222;

background-image: url("http://home.kc.rr.com/vandalin/LiveJournal/utility/solitude.jpg");
background-repeat: repeat;
background-position: center;
background-attachment: fixed;
</style>
""";
}



I have no problems with my code working, it's just getting the image to scale correctly. I dont know what exactly to insert, or where. It is possible, though, right?

Edit: Last night I was über tired, and didnt include the escape code, so that my code would actually display. That's been changed
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 6 comments