Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
HOW?! I have a whole site up and going in html no problem but I have a php script I wish to use for a photo gallery and I am having a hard time figuring out how to apply my CSS design. here is the .php script, also a little confused as to how to call the directories that contain the images.
<?php include("./include/sfpg.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="your_own.css">
<?php sfpg_css_link(); ?>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Existing page</title>
</head>
<body bgcolor="#8090a0">
<h2></h2>
<table border=2 cellpadding=20 width=600>
<tr>
<th colspan=3>Chose the Galleries</th>
</tr>
<tr>
<td>My Personal Build</td>
<td>Full Upgrade
<?php sfpg(); ?>
</td>
<td>Parts for Sale</td>
</tr>
</table>
<h2></h2>
</body>
</html>

you have downloaded the fully working version which doesn't have documentation. There's a smaller version which is the "single file image gallery" - that has a readme.txt that explains what config you need to do to make it work.
Your CSS should be in a separate CSS file. Change the line that reads:
<link rel="stylesheet" type="text/css" href="your_own.css">to have the link to whatever your css file is - for example in my site I have a file called "site_styles.css" in the css directory under root, so mine would read:
<link rel="stylesheet" type="text/css" href="/css/site_styles.css">You also need to read the readme to configure the directories and images and what have you.

I have this error corrected.. Thank you for replying though. I do have another error in a post where I can't get the php to call the files correctly

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |