I know the following is wrong but what’s the easier way to generate something similar?
.classhere{
width: 50px + 10%
}
So the div here has a minimun of 50px width +10% (let’s say the parent is 100px) so 55px and when the parent goes fullscreen e.g. 1800px the .classhere has a width of 50+180px.
Update:
javascript, jQuery and other solutions are welcome
You can do it like followed.
HTML
CSS
jQuery
If you want to see a demo of it, the jsfiddle is here