[Catalyst] CSS file how to?

Andreas Marienborg omega at palle.net
Sat May 10 06:18:28 BST 2008


If what you want is to serve the css-file as an external css-file, and  
link it from your html with <link rel="stylesheet" />, then I would  
put it under /root/static/main.css

and serve it using Static::Simple (which is the default for /static/)

- andreas

On May 9, 2008, at 8:06 PM, gaurav001 wrote:

>
> THanks for quick reply...
> yes, i could see css file in text format in browser...
> but any how i made it using [% PROCESS course/static.css %] in tt2  
> file
> you have any better idea?
> thanks
>
>
> Mitch Jackson wrote:
>>
>> When you try to visit the css file in the browser, what kind of  
>> output
>> do you get?
>> http://localhost:3000/src/course/static.css
>>
>> /Mitchell Jackson
>>
>> On Fri, May 9, 2008 at 10:27 AM, gaurav001 <gmpatel001 at yahoo.com>  
>> wrote:
>>>
>>> Hello Gurus,
>>> I am facing problem defining CSS file.
>>> my view.fb file is
>>>
>>> name: Overview
>>> method: post
>>> stylesheet: 'http://localhost:3000/src/course/static.css',
>>>
>>> and CSS file is like this::::::::::
>>>
>>>
>>> .fb_menutitle{
>>> cursor:pointer;
>>> margin-bottom: 5px;
>>> background-color:#CCCC33;
>>> color:#000000;
>>> width:140px;
>>> padding:2px;
>>> text-align:center;
>>> font-weight:bold;
>>> /*/*/border:1px solid #000000;/* */
>>> }
>>>
>>> .fb_submenu{
>>> margin-bottom: 0.5em;
>>> background-color:#FFCC66;
>>> color:#000000;
>>> width:140px;
>>> padding:2px;
>>> }
>>>
>>> .fb_content{
>>> position: absolute;
>>> left: 200px;
>>> top: 50px;
>>> }
>>>
>>> .fb_rightcontent{
>>> position: absolute;
>>> left: 775px;
>>> top: 50px;
>>> }
>>>
>>> =====================================
>>> I defined correctly in HTML file...it doesnt call my static.css
>>> file...how
>>> can i ?
>>>
>>> Plz help me
>>> Thank you
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/CSS-file-how-to--tp17150479p17150479.html
>>> Sent from the Catalyst Web Framework mailing list archive at  
>>> Nabble.com.
>>>
>>>
>>> _______________________________________________
>>> List: Catalyst at lists.scsys.co.uk
>>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>>> Searchable archive:
>>> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>>> Dev site: http://dev.catalyst.perl.org/
>>>
>>
>> _______________________________________________
>> List: Catalyst at lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive:
>> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/CSS-file-how-to--tp17150479p17153401.html
> Sent from the Catalyst Web Framework mailing list archive at  
> Nabble.com.
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list