html5 - How to write HTML code of main. -


code necessary place layer "main" left edge 33.3% left edge plus 7 pixels? . im not sure how write code.

use css calc function element want position way.

left:calc(33.3% + 7px); 

example

div{    width:100px;    height:100px;    position:absolute;    background:blue;    left:calc(33.3% + 7px);  }
<div></div>


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -