Jump to content

Fixed position does not work on my phone


newcoder1010
 Share

Recommended Posts

Hello, 

I have a phone number block. I applied the below css to have the phone number fixed. It works on my laptop when I make the screen less than 768px. However, when I visit the page on my galaxy phone, that phone no block not fixed. 

.PhoneNo {
    position: fixed;
    z-index: 2;
}

I have done that many times. I am not sure why it would not work now. Please advise. 

Link to comment
Share on other sites

Update -

The block I placed it at the header. So when I scroll down i do not see the block at all. I started seeing it fixed position only when I scroll back up. If you can provide any input, it would be great. But in laptop browser, block is always in fixed position.

Edited by newcoder1010
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...