[jQuery] Re: i don´t know how add css to my html wit h jquery.

2009-01-11 Thread Ricardo Tomasi

An external CSS file has nothing to do with any script, just use a
link inside :



On Jan 11, 8:59 pm, goosfancito  wrote:
> Thank´s Mauricio but...
> i like that are declaration stay in other file, not in file (for
> example) index.html...
> how i do?
>
> On 11 ene, 19:52, Kean  wrote:
>
> > Do not use jQuery 1.2.5, use 1.2.6 instead.
>
> > On Jan 11, 2:19 pm, "Mauricio \(Maujor\) Samy Silva"
>
> >  wrote:
> > > The css() jQuery method has two sintaxes.
>
> > > For one css declaration use:
> > > $('#contenido').css('float', 'left');
>
> > > For multiple css declarations use:
> > > $('#contenido').css ({
> > >      float: 'left',
> > >     width: '480px',
> > >     min-height: '250px',
> > >     ...,
> > >     backgroundColor: '#fff'
> > >     });
>
> > > See:http://docs.jquery.com/CSS/css#properties
>
> > > Maurício
>
> > > -Mensagem Original-
> > > De: "goosfancito" 
> > > Para: "jQuery (English)" 
> > > Enviada em: domingo, 11 de janeiro de 2009 18:07
> > > Assunto: [jQuery] i don´t know how add css to my html with jquery.
>
> > > 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: i don´t know how add css to my html wit h jquery.

2009-01-11 Thread goosfancito

Thank´s Mauricio but...
i like that are declaration stay in other file, not in file (for
example) index.html...
how i do?


On 11 ene, 19:52, Kean  wrote:
> Do not use jQuery 1.2.5, use 1.2.6 instead.
>
> On Jan 11, 2:19 pm, "Mauricio \(Maujor\) Samy Silva"
>
>  wrote:
> > The css() jQuery method has two sintaxes.
>
> > For one css declaration use:
> > $('#contenido').css('float', 'left');
>
> > For multiple css declarations use:
> > $('#contenido').css ({
> >      float: 'left',
> >     width: '480px',
> >     min-height: '250px',
> >     ...,
> >     backgroundColor: '#fff'
> >     });
>
> > See:http://docs.jquery.com/CSS/css#properties
>
> > Maurício
>
> > -Mensagem Original-
> > De: "goosfancito" 
> > Para: "jQuery (English)" 
> > Enviada em: domingo, 11 de janeiro de 2009 18:07
> > Assunto: [jQuery] i don´t know how add css to my html with jquery.
>
> > 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: i don´t know how add css to my html wit h jquery.

2009-01-11 Thread Kean

Do not use jQuery 1.2.5, use 1.2.6 instead.

On Jan 11, 2:19 pm, "Mauricio \(Maujor\) Samy Silva"
 wrote:
> The css() jQuery method has two sintaxes.
>
> For one css declaration use:
> $('#contenido').css('float', 'left');
>
> For multiple css declarations use:
> $('#contenido').css ({
>      float: 'left',
>     width: '480px',
>     min-height: '250px',
>     ...,
>     backgroundColor: '#fff'
>     });
>
> See:http://docs.jquery.com/CSS/css#properties
>
> Maurício
>
> -Mensagem Original-
> De: "goosfancito" 
> Para: "jQuery (English)" 
> Enviada em: domingo, 11 de janeiro de 2009 18:07
> Assunto: [jQuery] i don´t know how add css to my html with jquery.
>
> 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: i don´t know how add css to my html wit h jquery.

2009-01-11 Thread Mauricio (Maujor) Samy Silva


The css() jQuery method has two sintaxes.

For one css declaration use:
$('#contenido').css('float', 'left');

For multiple css declarations use:
$('#contenido').css ({
float: 'left',
   width: '480px',
   min-height: '250px',
   ...,
   backgroundColor: '#fff'
   });

See: http://docs.jquery.com/CSS/css#properties

Maurício





-Mensagem Original- 
De: "goosfancito" 

Para: "jQuery (English)" 
Enviada em: domingo, 11 de janeiro de 2009 18:07
Assunto: [jQuery] i don´t know how add css to my html with jquery.



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