The function css()
expects function arguments as comma separated. You are using css('top': '60px')
, notice that :
there which is incorrect.
$(document).ready(function() {
$('.rc-anchor-normal .rc-anchor-pt').css('position', 'absolute').css('top', '60px').css('right', '35px');
$('.rc-anchor-logo-img-portrait').css('position', 'absolute').css('right', '50px');
$('.rc-anchor-logo-text').css('position', 'absolute').css('right', '50px').css('top', '45px');
});
You should also keep habbit of looking at the browser console F12
in chrome to check the errors you get while running the code.
You can also combine the chained css()
into a single one using object representation:
$(document).ready(function() {
$('.rc-anchor-normal .rc-anchor-pt').css({
'position': 'absolute',
'top': '60px',
'right': '35px'
});
$('.rc-anchor-logo-img-portrait').css({
'position': 'absolute',
'right': '50px'
})
$('.rc-anchor-logo-text').css({
'position': 'absolute',
'right': '50px',
'top': '45px'
});
});