Computing.Net > Forums > Web Development > PHP calling CSS design

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP calling CSS design

Reply to Message Icon

Name: jus71n742
Date: January 20, 2009 at 00:24:53 Pacific
OS: Window XP x64
CPU/Ram: 2.31 /4GB
Product: Amd / kingston / Opteron 2356/4gb
Subcategory: PHP
Comment:

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>



Sponsored Link
Ads by Google

Response Number 1
Name: uptoeleven
Date: February 9, 2009 at 17:00:34 Pacific
Reply:

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.


0

Response Number 2
Name: jus71n742
Date: February 9, 2009 at 18:43:01 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP calling CSS design

CSS Question www.computing.net/answers/webdevel/css-question/481.html

FrontPage and PHP Files www.computing.net/answers/webdevel/frontpage-and-php-files/2908.html

Is there a php / mySQL editor? www.computing.net/answers/webdevel/is-there-a-php-mysql-editor/3335.html