/* To avoid writing the same line several times
You can use multiple lines in the css function*/
$('.selector').css({
'font-size' : '10px',
'width' : '30px',
'height' : '10px'
});
/* Obviously you can store these value in a variable too */
var style = {
'font-size' : '10px',
'width' : '30px',
'height' : '10px'
}
$('.selector').css(style);
Code Example |
---|
Css :: adding shadow to a div |
Css :: jquery add css |
Css :: media max height css |
Css :: why tr border not showing |
Css :: symfony version check |
Css :: round button css |
Css :: how to set media query for both width and height in css |
Css :: background color in css |
Css :: flexbox center and space between |
Css :: css animation loop |
Css :: responsive container css |
Css :: how to center items in css |
Css :: css center in grid |
Css :: position absolute center |
Css :: how to use bulma in gatsby |
Css :: css animation image up and down |
Css :: how to include one css file in another |
Css :: sticky header |
Css :: css unlock scroll |
Css :: scss watch command |
Css :: add border to table css |
Css :: ovale css |
Css :: shadow on top for scroll |
Css :: how to center an item without flex |
Css :: open applications bat start |
Css :: css grid reverse column order |
Css :: line break inside content css |
Css :: css regions |
Css :: styling radio input |
Css :: css transition slide up |