Jump to content
Sign in to follow this  
jarvis101

vh and calc() in chrome

Recommended Posts

So I'm trying to size a bar which has size and position relative to the browser window, and so I wrote a piece of code which achieved this :

 

 

/* 25 pixel hieght, 100% browser width, fixed position at the bottom of the browser */#element{    height: 25px;    margin-top : calc(100vh - 25px); //Issue here with chrome    position : fixed;    background-color : #c8c8c8;    width : 10%;}

 

My issue is that there's a bug with google chrome, where viewpoints don't work inside calc(). Apparently the developer who wrote the code to support viewpoints in chrome hasn't worked at google for almost a year now, so according to bug reports there's no fix in sight.

 

Any suggestions on how to work around this issue?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...