html - How to access a css file and its styles from another php file? -


i looking include or gain access of css file using php. know it's possible don't know how it, following css file:

 <style type="text/css">         .titlestyle         {             color:black;             text-align: center;             font-family: stencil std;          } </style> 

i planning use file , style within in php or html script. heard word include or require might needed, please me situation? thanks!

consider having separate header file header.php.

header.php

<html>  <head>     <title>title</title>     <link rel="stylesheet" type="text/css" href="layout.css"/> </head> 

and include file wish

<?php include 'header.php'; ?> 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -