I want to do something like fixed position, except for all mobile phones.
Like this:
Desktop:
#sidebar{
position:fixed;
width: 200px;
height: auto;
...
And mobile:
#sidebar{
position:absolute;
width: 200px;
height: auto;
...
So i'm wondering, if I use jquery or javascript, something like if mobile: use position absolute, if desktop: use position fixed, it might work.
But I'm not very good at programming javascript etc. I just know html and css. Could anyone help me with what codes I have to use?