How to override default CSS in cakePHP 1.3?


Tags: css,cakephp,cakephp-1.3

Problem :

I'm running into a bit of a problem with my search plugin CSS. It doesn't apply some of the CSS rules I placed on /plugin/searchable/webroot/css/searchable_style. I think it is being overridden by the cakephp default CSS which I used with my application. Should I edit the generic css for my application or there's a way to bypass the generic CSS then apply what's on /plugin/searchable/webroot/css/searchable_style? I also tried css('/searchable/css/searchable_style'); ?> and put it on every view and it worked but not all.

Thank you, Lyman



Solution :

Place your css file *searchable_style* to webroot/css folder: then use it in app/views/layouts/default.ctp (if you have) OR include this line to your home or landing layout

echo $this->Html->css('/searchable/css/searchable_style');

This will definitely work. but if you rename the plugins folder to plugin as your question, then it will cause problem. Please check all folder naming and retry.


    CSS Howto..

    How to indent text like in a table, but without a table?

    How can i change background image opacity without changing on div content? [duplicate]

    How to show hidden div in the same line as the paragraph text?

    JqueryUi Autocomplete shown in wrong place when using input field in div with position:fixed

    How to select elements using CSS selector who's attribute can have multiple values

    How to change the color of table rows once ng-repeat executed

    How to prevent default title behavior with CSS or JavaScript [duplicate]

    How to create that background on my page with css [duplicate]

    how to align div's horizontally in CSS

    Scroll to next and previous div using scrollTop, how do I accomplish this?

    CSS: How to force DIV to maintain aspect ratio the same way IMG does

    How can I use dropdowns in a masonry layout?

    How to apply gradient color in css?

    How to display last div at top using CSS?

    Show text underneath image while hovering without disrupting other elements

    How to have different table styles in CSS

    How to force Dojo TitlePane to overlap with CSS?

    How to serve css files in djangos's flatpages?

    how to align editor-label with editor-field in css

    How can I include a CSS stylesheet in an XSL document for Internet Explorer?

    How to change image size when nested in

    tag

    How to prevent ALT text showing on cursor hover over image?

    In how many ways and places we can place comment in CSS?

    How to change font size of the first option tag in a dropdown menu (select)?

    How to style diff implementation for PHP with CSS

    CSS HTML how to remove whole cell links in tables?

    how to override user agent CSS

    How do I set the width and height of a textarea using CSS?

    How to Show Menu after full size window in responsive Design

    How to include SASS into CSS