SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    Can I add a background image to a php webpage? I know when I use html I would use something like<body background="Logo/0.jpg" bgproperties="fixed">
    but whats the code for php?
    Thanks



  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP is merely server side code mixed with HTML so it would be the same <body background="someimage.jpg">. Does that clear it up for you.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    Fluffy Kitten Programmer~ Elledan's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    1,356
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A 'PHP webpage' consists out of HTML code with PHP mixed in it to 'fill in the blanks', i.e. the dynamic parts of the site, like articles you pull out of a database etc.

    It's recommended to use a 'pageheader.php' and a pagefooter.php' page for the upper and lower part of the page, so that you don't have to update all of the pages when you decide to change the design.

    Summarizing: you just use HTML for the main part of the site, including the <body> tag.

    Hope this clears things up. Don't hesitate to ask questions
    <Edited by Elledan on 01-30-2001 at 11:38 AM>
    www.nyanko.ws - My web-, software- and game development company.
    www.mayaposch.com - My personal site and blog.


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
  •