SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Background image with php?
-
Jan 29, 2001, 23:33 #1
- 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
-
Jan 29, 2001, 23:38 #2
- 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.
-
Jan 30, 2001, 11:33 #3
- 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