Saturday, September 27, 2008

Re: Blueprint CSS + Cakephp

no reason why it should not work unless your css is not found blueprint has a llib directory and plugins (perhaps not any more) which I suppose your storeing inside app/webroot/css/

on that assumption
echo $html->css(array('root', 'screen', 'fancy-type'), null,
array('media' => 'screen, projection'), false);

fancy type may be in either lib or plugin.  I think you supposed to custom the screen file, thine it may be better for you to put fancy type before screen - but then I know not what is in root

2008/9/27 Rudolf <rudolflai@gmail.com>

Dear All,

Have anyone tried using Blueprint CSS or other CSS resets/frameworks
with CakePHP? I am trying to do so, but the typography does not follow
what I defined in CSS: I want to use Lucida Grande but Helvetica (the
default font) was used instead. Anyway,
here is my code:

views/layouts/default.ctp
------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <title><?php echo $title_for_layout?></title>
 <?php echo $scripts_for_layout ?>
</head>
------------------

views/elements/scripts.ctp
------------------
<?php
echo $html->css(array('root', 'screen', 'fancy-type'), null,
array('media' => 'screen, projection'), false);
echo $html->css('print', null, array('media' => 'print'), false);
echo $javascript->link(array('sifr', 'jquery'), false);
?>
------------------

views/projects/index.ctp
------------------
<?php echo $this->element('scripts'); ?>
<div class="span-24" id="intro">
------------------

Thanks
Rudolf




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: