PHP calling CSS design

Amd / kingston / Opteron 2356/4gb
January 20, 2009 at 00:24:53
Specs: Window XP x64, 2.31 /4GB
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">
<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>
<body bgcolor="#8090a0">
<table border=2 cellpadding=20 width=600>
<th colspan=3>Chose the Galleries</th>
<td>My Personal Build</td>
<td>Full Upgrade

<?php sfpg(); ?>

<td>Parts for Sale</td>


See More: PHP calling CSS design

Report •

February 9, 2009 at 17:00:34
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.

Report •

February 9, 2009 at 18:43:01
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

Report •

Related Solutions

Ask Question