58 users online (0 members and 58 guests)  


  Results 1 to 2 of 2

Related

  1. myspace log in trouble.    Forum: Myspace Forum
    Replies: 3
  2. Perl Trouble    Forum: CGI Perl Forum
    Replies: 0
  3. onSubmit trouble    Forum: Javascript Forum
    Replies: 4
  4. Table Trouble    Forum: HTML Forum
    Replies: 19
  1. #1
    Desbaaz's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2003
    Location
    a redneck infested backwater town in northern Fl
    Posts
    5

    Question cosmetic trouble

    I feel kind of silly saying this, but if i could manage to center my background image, it would really make the new layout for my page look alot better. I would just make the background image fit to the screen, but then it wouldn't line up on different resolutions. anyone have any suggestions?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya.

    Code:
    <style type="text/css">
    body {
    background-image: url(yourbgpic.jpg);
    background-position: center;
    }
    </style>
    That code in your <head> will do the job.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread