How do you view other people's css in multiply?

My WAMP server is installed correctly, however I cannot view my CSS in the web page. How can I fix this?

  • I am a Freelance Web Designer and I'm having a few issues when I upload my website to my WAMP server. Everything is installed correctly, however once I go to the WAMP server to view the web site, all the CSS is gone and nothing seems to be working. I can't even access my header/navigation because it's a PHP included file. How can I fix this? Please help! I need to show the client something by the end of next week. :(

  • Answer:

    When working with PHP you need to work in templates. This means that you write your css in a HTML page. You can name this file layout.html. After which your split into two files. Create a new file and copy half of the code from the layout.html. For example: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-… <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title> Elliott Smith Fan Club! </title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="title" content="" /> <meta name="author" content="" /> <meta name="description" content="" /> <meta name="language" content="en" /> <meta name="keywords" content="" /> <style type="text/css" > body {margin: 0px 0px 0px; background: #9F9; } #leftcontent { float: left; width: 67%; background: #fff; border-right: 2px solid #003300; border-bottom: 2px solid #003300; margin-right: 15px; padding-bottom: 20px; } p, h1, pre { margin: 0px 30px 10px 30px; } h1 { font-size: 12px; padding-top:10px; } #rightcontent p { font-size: 12px; margin-left: opx; } </style> </head> <body > <div id="leftcontent"> <!-- BEGIN CHANGEABLE CONTENT. --> Name this file header.html After that create a new file and copy the other half the code <!-- END CHANGEABLE CONTENT. --> </div> <div id="righcontent"> <!-- BEGIN CHANGEABLE CONTENT. --> <h1>Navigation</h1> <p><a href="index1.php">Home</a></p> <p><a href="albums.php">Discography</a></p> <p><a href="lonin.php">Login</a></p> <p><a href="register.php">Register</a></p> </div> </body> </html> Name the file footer.html. Then your PHP FILEs you would use the require() function and the include() function <?php // Include the header: requre('header.html'); ?> html stufff here.... <?php // include the footer: include('footer'); ?> GOOD LUCKY!!! HOPE IT HELPS :)

Teena at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.