Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

CSS file how to?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


gmpatel001 at yahoo

May 9, 2008, 8:27 AM

Post #1 of 5 (240 views)
Permalink
CSS file how to?

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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


perimus at gmail

May 9, 2008, 10:26 AM

Post #2 of 5 (227 views)
Permalink
Re: CSS file how to? [In reply to]

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[at]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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


gmpatel001 at yahoo

May 9, 2008, 11:06 AM

Post #3 of 5 (228 views)
Permalink
Re: CSS file how to? [In reply to]

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[at]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[at]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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


perimus at gmail

May 9, 2008, 1:29 PM

Post #4 of 5 (227 views)
Permalink
Re: CSS file how to? [In reply to]

I'm not quite sure what you are asking.

Do you mean you wish to include the output of the CSS file into
another template when it is parsed? In this case, the PROCESS
statement should work.

You may wish to consule the documentation at template-toolkit.org

/Mitchell Jackson

On Fri, May 9, 2008 at 1:06 PM, gaurav001 <gmpatel001[at]yahoo.com> 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[at]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[at]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[at]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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


omega at palle

May 9, 2008, 10:18 PM

Post #5 of 5 (213 views)
Permalink
Re: CSS file how to? [In reply to]

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[at]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[at]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[at]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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.