width issue: 50% at border! = none
take a look at http://jsfiddle.net/5nYSf/
the result should be like this
You can put two elements next to each other that are 50% wide, then you can put in every other element that should have a border and a border: http://jsfiddle.net/5nYSf/47/
, /. , 100px, 2px 10px, 114px . ( : .) IIRC, , .
. width:49% width:50% , - ., div. divs /margin/padding 50% , .
width:49%
width:50%
div
:http://jsfiddle.net/5nYSf/35/
, , calc() CSS.
.attachments { height:80px; background-color:#E4E4E4; } .attachments span { float:left; height:100%; width:calc(50% - 6px); background-color:#9FB9CA; border:3px #879AA8 solid; }
http://jsfiddle.net/5nYSf/277/
: add {box-sizing: border-box; } .attachments 50%
, 50% + 50% + 3px ( ) 100% + 12 , 12 , (100%). 49% , 12 .
( - ), : 100% : 50% ( )
.
50% + a > 50%
:
.attachments { height:80px; background-color:#E4E4E4; } .attachments span { display:inline-block; height:100%; width:48%; background-color:#9FB9CA; border:3px #879AA8 solid; }
Source: https://habr.com/ru/post/1766056/More articles:C ++: automatic initialization - c ++цикл через многочисленные инструкции "if exist update, else insert"? - sqlHow to convert hex VARCHAR to VARBINARY in SQL Server - sql-serverStreamline random number generation for Monte Carlo integration - multithreadingASP.NET MVC Routing Naming Conventions - asp.netCucumbers: how to switch sessions in Rails (multi-session) - ruby-on-rails/ session instead of / login if login failed - ruby-on-rails-3Перенос данных (и индекса) Oracle в SQL-Server - капитализация данных - oracleВставка с Linq-to-SQL объекта, определенного путем отражения - reflectionWPF: How to go to the visual tree to find Model3DGroup, 3d model pressed? - c #All Articles