Reply
Adding CSS to a custom built CMS
Old 03-19-2007, 01:20 PM Adding CSS to a custom built CMS
Average Talker

Posts: 15
Name: Bradley
I am trying to add css to a skin file of a custom CMS I am having alot of trouble with this. Is there any info on CSS and CMS out there ive already used google with no help. My skin is enclosed at the bottom

would I put my pages that are used ie... {%body%} inside a div

<div id="MyDiv">
{%body%}
</div>

would this be the right way to apply CSS to a page within my CMS?





<?




$_skin = '<html>
<head>
<title>{%title%}</title>
<meta type="description" content="{%description%}">
<meta type="keywords" content="{%keywords%}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="styles.php">


<style type="text/css">

.textButton{
border-style:none;
background-color:transparent;
font-weight:bold;
cursorointer;
}
.heading{
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight:bold;
}
</style>


</head>
<body {%background%}{%onload%}">
<script type="text/javascript" src="wz_dragdrop.js"></script>
<div align="center">
<table width="774" border="0" cellspacing="0" cellpadding="2" style="border:#000000 1px solid;"><tr><td>
<table width="774" border="0" cellspacing="0" cellpadding="0" style="border:#000000 1px solid;">
<tr>
<td colspan="2" class="header" id="header_bg">{%logo%}</td>
</tr>
<tr>
<td colspan="2" class="navbar" id="navbar">{%navbar%}&nbsp</td>
</tr>


<tr valign="top">


<td id="pagebg"{%pagepref%}>
<div class="heading">{%pagetitle%}</div>
<div style="padding:6px;">{%body%}</div></td>
</div>
</tr>
</table>
</td></tr></table>
</div>

<div align="right" style="width:774px;">{%adminbox%}</div>
<div align="center" id="footer">{%footer%}</div>

</div>

</body>
</html>';

$_blockwrapper = '
<div align="center">{%block%}</div>

';
?>
bean1620 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-19-2007, 02:05 PM Re: Adding CSS to a custom built CMS
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
Each template should have its own associated css file to go with it. Your better off going to that cms community forums to find the answer you need. I'm sure each cms has its own way of doing things, and you didn't even specify which cms you have.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 03-19-2007, 02:34 PM Re: Adding CSS to a custom built CMS
Average Talker

Posts: 15
Name: Bradley
I wish i new, the CMS i am using was built by a programmer that moved away so there is no forums, documentation, or help of any kind. My bosses paid alot for it so they want to continue to use it.
bean1620 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Adding CSS to a custom built CMS
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12481 seconds with 12 queries