inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Apr 18, 2022 9:25:06 GMT -8
I want to position a div in jquery but I'm not sure how to do it. My example would look like this: $('.hope').css({ position: absolute, top:100px, left:65px, }); I have tried it but it doesn't work. Can anybody help me with this please? Thanks in advance
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,022
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 18, 2022 14:30:46 GMT -8
I want to position a div in jquery but I'm not sure how to do it. My example would look like this: $('.hope').css({ position: absolute, top:100px, left:65px, }); I have tried it but it doesn't work. Can anybody help me with this please? Thanks in advance Try surrounding those propertyValues with quotes: 'absolute' instead of absolute '100px' instead of 100px '65px' instead of 65px
|
|
inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Apr 18, 2022 14:57:43 GMT -8
|
|