[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Scott Sauyet


Lord Gustavo Miguel Angel wrote:

my question. How i do to used this .css file in  my .html with jQuery¿


You can see a working sample here:

http://scott.sauyet.com/issues/2009-01-11a/

(Choose test.html.)

The key is this:



This points to the CSS file style.css in the same directory as the HTML 
page.  Once that's working you can play with other possible locations 
for the CSS, such as


href = "../../stylesheets/style.css"

which finds the CSS in the directory called "stylesheets" which sits in 
a directory parallel to the parent of the directory holding the HTML 
(because "../" means in essense, "up one level".


Or you could try it with a location such as

href = "/css/style.css"

which points to the root directory for your web content (because it 
starts with "/", then to the directory "css" inside that, and finally to 
the file "style.css" inside that directory.


This question, though, is not at all related to jQuery.  It has to do 
with the basics of CSS.  A great list for CSS is available at


http://www.css-discuss.org/

Good luck,

  -- Scott


[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Lord Gustavo Miguel Angel
no problem. 
don´t work
thank´s
  - Original Message - 
  From: Varun Khatri 
  To: jquery-en@googlegroups.com 
  Sent: Sunday, January 11, 2009 9:58 PM
  Subject: [jQuery] Re: [ definition css in other file ]


  
// remove this line from your code
 
   
   Parte del contenido

  Escoger del menu
  

  check your file is in css folder as you are writing :  css/estilos.css

  estilos.css should be in folder name css...
  I tried your code and it works fine...

 
  


  On Sun, Jan 11, 2009 at 5:18 PM, Lord Gustavo Miguel Angel 
 wrote:

no work sorry i write in spanish.
but in file that i send you can see this lines:

but when i use this:



   
 
 Parte del contenido

Escoger del menu


   

it no work

  - Original Message - 
  From: Varun Khatri 
  To: jquery-en@googlegroups.com 
  Sent: Sunday, January 11, 2009 9:03 PM
  Subject: [jQuery] Re: [ definition css in other file ]


  u can try like :

 




  2009/1/11 Lord Gustavo Miguel Angel 

ok. i trade explaint problem.

i have 2 file:
index.html( i send file with name html.txt)
style.css( i send file with name style.txt)

my problem:
how i do to use index.html and style.css and jQuery?



- Original Message - 
  From: Varun Khatri 
  To: jquery-en@googlegroups.com 
  Sent: Sunday, January 11, 2009 8:45 PM
  Subject: [jQuery] Re: [ definition css in other file ]


  i dint get you ?
  tell what is the problem?


  On Sun, Jan 11, 2009 at 3:05 PM, goosfancito  
wrote:


thank´s but i before do this

   

but don´t...




On 11 ene, 19:59, "Varun Khatri"  wrote:
> make a .css file like test.css and use it like:
> 
> hope this helps!!
>
> On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
>

> goosfanc...@gmail.com> wrote:
> >  Hello all!
>
> > I have this .html
> > -
> > 
>
> > 
> > $(document).ready(function(){
>
> > $("p").click(function(event){
> > alert("Thanks for visiting!");
> > });
> > });
> > 
>
> > 
>
> > 
> > 
> > Escoger del menu
> > 
>
> > 
>
> > 
>
> > --- eof 8< 
>
> > and i have this other .css:
>
> > -
> > #contenidos{
> > float:left;
> > width:480px;
> > min-height: 250px;
> > border: 3px solid grey;
> > margin-left: 10px;
> > padding: 5px;
> > padding-bottom: 8px;
> > background-color: #fff;
> > }
>
> > -EOF 8<-
>
> > my question. How i do to used this .css file in  my .html with 
jQuery¿
>
> > Thank´s







[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Varun Khatri

   *   // remove this line from your code*

 
 Parte del contenido
Escoger del menu


check your file is in css folder as you are writing :  *css/estilos.css*

*estilos.css should be in folder name css...
I tried your code and it works fine...
*



On Sun, Jan 11, 2009 at 5:18 PM, Lord Gustavo Miguel Angel <
goosfanc...@gmail.com> wrote:

>  no work sorry i write in spanish.
> but in file that i send you can see this lines:
> 
> but when i use this:
>
> 
> 
>
>  
>  Parte del contenido
> Escoger del menu
> 
>
>
> 
> it no work
>
>
> - Original Message -
> *From:* Varun Khatri 
> *To:* jquery-en@googlegroups.com
> *Sent:* Sunday, January 11, 2009 9:03 PM
> *Subject:* [jQuery] Re: [ definition css in other file ]
>
> u can try like :
>   
>
>
>
>
> 2009/1/11 Lord Gustavo Miguel Angel 
>
>>  ok. i trade explaint problem.
>>
>> i have 2 file:
>> index.html( i send file with name html.txt)
>> style.css( i send file with name style.txt)
>>
>> my problem:
>> how i do to use index.html and style.css and jQuery?
>>
>>
>>
>> ----- Original Message -
>>
>> *From:* Varun Khatri 
>> *To:* jquery-en@googlegroups.com
>> *Sent:* Sunday, January 11, 2009 8:45 PM
>> *Subject:* [jQuery] Re: [ definition css in other file ]
>>
>> i dint get you ?
>> tell what is the problem?
>>
>> On Sun, Jan 11, 2009 at 3:05 PM, goosfancito wrote:
>>
>>>
>>> thank´s but i before do this
>>>
>>> but don´t...
>>>
>>>
>>>
>>> On 11 ene, 19:59, "Varun Khatri"  wrote:
>>> > make a .css file like test.css and use it like:
>>> > 
>>> > hope this helps!!
>>> >
>>> > On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
>>> >
>>>  > goosfanc...@gmail.com> wrote:
>>> > >  Hello all!
>>> >
>>> > > I have this .html
>>> > > -
>>> > > 
>>> >
>>> > > 
>>> > > $(document).ready(function(){
>>> >
>>> > > $("p").click(function(event){
>>> > > alert("Thanks for visiting!");
>>> > > });
>>> > > });
>>> > > 
>>> >
>>> > > 
>>> >
>>> > > 
>>> > > 
>>> > > Escoger del menu
>>> > > 
>>> >
>>> > > 
>>> >
>>> > > 
>>> >
>>> > > --- eof 8< 
>>> >
>>> > > and i have this other .css:
>>> >
>>> > > -
>>> > > #contenidos{
>>> > > float:left;
>>> > > width:480px;
>>> > > min-height: 250px;
>>> > > border: 3px solid grey;
>>> > > margin-left: 10px;
>>> > > padding: 5px;
>>> > > padding-bottom: 8px;
>>> > > background-color: #fff;
>>> > > }
>>> >
>>> > > -EOF 8<-
>>> >
>>> > > my question. How i do to used this .css file in  my .html with
>>> jQuery¿
>>> >
>>> > > Thank´s
>>>
>>
>>
>


[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Lord Gustavo Miguel Angel
no work sorry i write in spanish.
but in file that i send you can see this lines:

but when i use this:



   
 
 Parte del contenido
Escoger del menu


   

it no work

  - Original Message - 
  From: Varun Khatri 
  To: jquery-en@googlegroups.com 
  Sent: Sunday, January 11, 2009 9:03 PM
  Subject: [jQuery] Re: [ definition css in other file ]


  u can try like :

 




  2009/1/11 Lord Gustavo Miguel Angel 

ok. i trade explaint problem.

i have 2 file:
index.html( i send file with name html.txt)
style.css( i send file with name style.txt)

my problem:
how i do to use index.html and style.css and jQuery?



- Original Message - 
  From: Varun Khatri 
  To: jquery-en@googlegroups.com 
  Sent: Sunday, January 11, 2009 8:45 PM
  Subject: [jQuery] Re: [ definition css in other file ]


  i dint get you ?
  tell what is the problem?


  On Sun, Jan 11, 2009 at 3:05 PM, goosfancito  
wrote:


thank´s but i before do this

   

but don´t...




On 11 ene, 19:59, "Varun Khatri"  wrote:
> make a .css file like test.css and use it like:
> 
> hope this helps!!
>
> On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
>

> goosfanc...@gmail.com> wrote:
> >  Hello all!
>
> > I have this .html
> > -
> > 
>
> > 
> > $(document).ready(function(){
>
> > $("p").click(function(event){
> > alert("Thanks for visiting!");
> > });
> > });
> > 
>
> > 
>
> > 
> > 
> > Escoger del menu
> > 
>
> > 
>
> > 
>
> > --- eof 8< 
>
> > and i have this other .css:
>
> > -
> > #contenidos{
> > float:left;
> > width:480px;
> > min-height: 250px;
> > border: 3px solid grey;
> > margin-left: 10px;
> > padding: 5px;
> > padding-bottom: 8px;
> > background-color: #fff;
> > }
>
> > -EOF 8<-
>
> > my question. How i do to used this .css file in  my .html with 
jQuery¿
>
> > Thank´s





[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Varun Khatri
u can try like :
  
   



2009/1/11 Lord Gustavo Miguel Angel 

>  ok. i trade explaint problem.
>
> i have 2 file:
> index.html( i send file with name html.txt)
> style.css( i send file with name style.txt)
>
> my problem:
> how i do to use index.html and style.css and jQuery?
>
>
>
> - Original Message -
>
> *From:* Varun Khatri 
> *To:* jquery-en@googlegroups.com
> *Sent:* Sunday, January 11, 2009 8:45 PM
> *Subject:* [jQuery] Re: [ definition css in other file ]
>
> i dint get you ?
> tell what is the problem?
>
> On Sun, Jan 11, 2009 at 3:05 PM, goosfancito wrote:
>
>>
>> thank´s but i before do this
>>
>> but don´t...
>>
>>
>>
>> On 11 ene, 19:59, "Varun Khatri"  wrote:
>> > make a .css file like test.css and use it like:
>> > 
>> > hope this helps!!
>> >
>> > On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
>> >
>>  > goosfanc...@gmail.com> wrote:
>> > >  Hello all!
>> >
>> > > I have this .html
>> > > -
>> > > 
>> >
>> > > 
>> > > $(document).ready(function(){
>> >
>> > > $("p").click(function(event){
>> > > alert("Thanks for visiting!");
>> > > });
>> > > });
>> > > 
>> >
>> > > 
>> >
>> > > 
>> > > 
>> > > Escoger del menu
>> > > 
>> >
>> > > 
>> >
>> > > 
>> >
>> > > --- eof 8< 
>> >
>> > > and i have this other .css:
>> >
>> > > -
>> > > #contenidos{
>> > > float:left;
>> > > width:480px;
>> > > min-height: 250px;
>> > > border: 3px solid grey;
>> > > margin-left: 10px;
>> > > padding: 5px;
>> > > padding-bottom: 8px;
>> > > background-color: #fff;
>> > > }
>> >
>> > > -EOF 8<-
>> >
>> > > my question. How i do to used this .css file in  my .html with jQuery¿
>> >
>> > > Thank´s
>>
>
>


[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Lord Gustavo Miguel Angel
ok. i trade explaint problem.

i have 2 file:
index.html( i send file with name html.txt)
style.css( i send file with name style.txt)

my problem:
how i do to use index.html and style.css and jQuery?



- Original Message - 
  From: Varun Khatri 
  To: jquery-en@googlegroups.com 
  Sent: Sunday, January 11, 2009 8:45 PM
  Subject: [jQuery] Re: [ definition css in other file ]


  i dint get you ?
  tell what is the problem?


  On Sun, Jan 11, 2009 at 3:05 PM, goosfancito  wrote:


thank´s but i before do this

   

but don´t...




On 11 ene, 19:59, "Varun Khatri"  wrote:
> make a .css file like test.css and use it like:
> 
> hope this helps!!
>
> On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
>

> goosfanc...@gmail.com> wrote:
> >  Hello all!
>
> > I have this .html
> > -
> > 
>
> > 
> > $(document).ready(function(){
>
> > $("p").click(function(event){
> > alert("Thanks for visiting!");
> > });
> > });
> > 
>
> > 
>
> > 
> > 
> > Escoger del menu
> > 
>
> > 
>
> > 
>
> > --- eof 8< 
>
> > and i have this other .css:
>
> > -
> > #contenidos{
> > float:left;
> > width:480px;
> > min-height: 250px;
> > border: 3px solid grey;
> > margin-left: 10px;
> > padding: 5px;
> > padding-bottom: 8px;
> > background-color: #fff;
> > }
>
> > -EOF 8<-
>
> > my question. How i do to used this .css file in  my .html with jQuery¿
>
> > Thank´s

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>



ejemplo de AJAX






$(document).ready(function(){   

$("p").click(function(event){
alert("Thanks for visiting!");
 });
});


 



   

Parte del contenido
Escoger del menu






#contenidos{
float:left;
width:480px;
min-height: 250px;
border: 3px solid grey;
margin-left: 10px;
padding: 5px;
padding-bottom: 8px;
background-color: #fff;
}


[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Varun Khatri
i dint get you ?
tell what is the problem?

On Sun, Jan 11, 2009 at 3:05 PM, goosfancito  wrote:

>
> thank´s but i before do this
> 
> but don´t...
>
>
>
> On 11 ene, 19:59, "Varun Khatri"  wrote:
> > make a .css file like test.css and use it like:
> > 
> > hope this helps!!
> >
> > On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
> >
> > goosfanc...@gmail.com> wrote:
> > >  Hello all!
> >
> > > I have this .html
> > > -
> > > 
> >
> > > 
> > > $(document).ready(function(){
> >
> > > $("p").click(function(event){
> > > alert("Thanks for visiting!");
> > > });
> > > });
> > > 
> >
> > > 
> >
> > > 
> > > 
> > > Escoger del menu
> > > 
> >
> > > 
> >
> > > 
> >
> > > --- eof 8< 
> >
> > > and i have this other .css:
> >
> > > -
> > > #contenidos{
> > > float:left;
> > > width:480px;
> > > min-height: 250px;
> > > border: 3px solid grey;
> > > margin-left: 10px;
> > > padding: 5px;
> > > padding-bottom: 8px;
> > > background-color: #fff;
> > > }
> >
> > > -EOF 8<-
> >
> > > my question. How i do to used this .css file in  my .html with jQuery¿
> >
> > > Thank´s
>


[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread goosfancito

thank´s but i before do this

but don´t...



On 11 ene, 19:59, "Varun Khatri"  wrote:
> make a .css file like test.css and use it like:
>     
> hope this helps!!
>
> On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
>
> goosfanc...@gmail.com> wrote:
> >  Hello all!
>
> > I have this .html
> > -
> >     
>
> > 
> > $(document).ready(function(){
>
> > $("p").click(function(event){
> > alert("Thanks for visiting!");
> > });
> > });
> >     
>
> > 
>
> > 
> > 
> >         Escoger del menu
> >     
>
> > 
>
> > 
>
> > --- eof 8< 
>
> > and i have this other .css:
>
> > -
> > #contenidos{
> >     float:left;
> >     width:480px;
> >     min-height: 250px;
> >     border: 3px solid grey;
> >     margin-left: 10px;
> >     padding: 5px;
> >     padding-bottom: 8px;
> >     background-color: #fff;
> > }
>
> > -EOF 8<-
>
> > my question. How i do to used this .css file in  my .html with jQuery¿
>
> > Thank´s


[jQuery] Re: [ definition css in other file ]

2009-01-11 Thread Varun Khatri
make a .css file like test.css and use it like:

hope this helps!!

On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel <
goosfanc...@gmail.com> wrote:

>  Hello all!
>
> I have this .html
> -
> 
>
> 
> $(document).ready(function(){
>
> $("p").click(function(event){
> alert("Thanks for visiting!");
> });
> });
> 
>
> 
>
> 
> 
> Escoger del menu
> 
>
> 
>
> 
>
> --- eof 8< 
>
> and i have this other .css:
>
> -
> #contenidos{
> float:left;
> width:480px;
> min-height: 250px;
> border: 3px solid grey;
> margin-left: 10px;
> padding: 5px;
> padding-bottom: 8px;
> background-color: #fff;
> }
>
> -EOF 8<-
>
> my question. How i do to used this .css file in  my .html with jQuery¿
>
> Thank´s
>