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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -