I have a div with 70% width, and here’s what I want to do:
70%
Yes but I think you need to use JS(jQuery).
JS:
$(function(){ var box = $('.box'); var boxWith = box.width(); $('.box h1').css('font-size',boxWith); });
https://jsfiddle.net/moongod101/sdfaatp8/