Thread: CSS question
View Single Post
Old 12-31-2011, 12:04 AM  
barcodes
Confirmed User
 
barcodes's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Florida
Posts: 2,040
Here is a very simple example. I would out the css in my main stylesheet but put it on the main page for simplicity.

Lets say you have mainpage.php and textpage.php.

Your mainpage.php could be something like this:
Code:
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test page</title>
<style type="text/css">
#frameStyle .titles {
	font-weight:bold:
	color: #F00;
}
#frameStyle .copy{
	color: #cc0;
}
</style>
</head>

<body>

<?php include 'test.php'?>

</body>
</html>
And the textpage.php could be something like this:
Code:
<div id="frameStyle">
<div class="titles">title for your page</div>
<div class="copy">copy for the page</div>
</div>
If you dont want to make classes for everything you can do it by the format tags, #framestyle h1 or #framestyle p for example. The example is done on php but you could do it with coldfusion
Code:
<cfinclude template="textpage.cfm">
asp
Code:
<!--#include file="textpage.inc"-->
etc...

This is assuming you can add the proper ids and classes to the content page you want to include in your various sites.
Best of luck

Last edited by barcodes; 12-31-2011 at 12:07 AM..
barcodes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote