Results 1 to 7 of 7

Thread: How do you create a background that is not layered?

  1. #1
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How do you create a background that is not layered?

    how do you create a background that is not tiled nd is centered using HTML?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Centering vertically and horizontally is difficult to do, but can be done with CSS. Are you using CSS on your site?

    You could also make a table I suppose and to a <td valign="center"><center>picname.jpg code here</center></td>

    Something like that...
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    I'd say: remake your background in PhotoShop and place it centered ..
    Easiest and you're always sure about it.

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

    Default

    I'd say: remake your background in PhotoShop and place it centered ..
    Er, who says s/he has Photoshop? That's some expensive software. Besides, it won't stay centred if the user's screen resolution (or window size) is something other than that for which s/he created the image.
    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!

  5. #5
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there dezii1,

    does this example help...
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <style type="text/css">
    <!--
    * {
        margin:0;
        padding:0;
     }
    html,body {
        height:100%;
        color:#fff;
        background-color:#003;
        background-image:url(http://mysite.orange.co.uk/azygous/images/buddha.jpg);
        background-repeat:no-repeat;
        background-position:center center;
     }
    -->
    </style>
    
    </head>
    <body>
    
    <div></div>
    
    </body>
    </html>
    coothead

  6. #6
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you guys for your help

  7. #7
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there dezii1,

    are you in Time Warp.

    There is a fourteen month time span between your original post and your second.

    coothead

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
  •