Copying .CSS logins into .PHP

How do you re-create a source from a .CSS login, to .PHP. When your try and copy the source from the .CSS login, and save it as .PHP, .HTML or what ever, it doesnt look the same as the original, why is that?
bhumpwkxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
what is a ".CSS login" for you?
LinuxNubbCommented:
You have to add <style> tags in your header to the page that has the css data in it.  Are you talking about copying the css code from a css file, and placing it in a normal php/html page?
bhumpwkxAuthor Commented:
Yes, I want to copy .CSS code to a .php page, so how do I do that?
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

LinuxNubbCommented:
You will add this type of info to the <head> section of your html:

<head>
<style  type='text/css'>
table{
border-style:solid;
border-color:#444444;
border-width:1px 1px 1px 1px;
width:800px;
}
</style>
</head>

instead of :
<head>

You aren't really adding it to php exactly, but more to the html output that php is echoing.
<link href="style.css" rel="stylesheet" type="text/css">
</head>
bhumpwkxAuthor Commented:
Not sure how to add that code in, ill give you an example of a .css page. Could you visit this page and post the source code, so that it will work with php/html

http://www.sjhigh.ca/phpbb/login.php
LinuxNubbCommented:
Are you sure you know what .css is?  The css that page you posted is loaded with this:

<link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css">

This is in the source of that login.php file.
bhumpwkxAuthor Commented:
ya can you convert that into .php
LinuxNubbCommented:
Do you know what php is?  Php just automates html.  You don't need anything special in php to output html text.

this could be an example php page:
<?php
echo "<html><head></head><body></body></html>\n";
?>

This would be a valid page, but quite useless for use in php.  What are you ultimately trying to accomplish?  Are you trying to build the php code that would build that site you posted?  2 Problems:

1.  Web sites are generally copyrighted
2.  You don' need php to make that page.  Copy the text and place it on your own web server.
bhumpwkxAuthor Commented:
I know what .php is, but i save the source as .php the login everything is different, font, etc, could post that source as .php?
LinuxNubbCommented:
that's because you didn't copy the .css file.  

This text:
<link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css">

indicates that they are using subSilver.css for their stylesheet.  You need to copy this stylesheet to your computer, and then modify the path to the file in the href= part.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.