PostCSS and CSSNext

Custom selectors and properties

by Tìm ở đây Khoá học CNTT

HTML

<h2>Tính toán tổng độ rộng:</h2>

<img src="https://timoday.edu.vn/wp-content/uploads/2019/11/hoalon.jpg" width="350" height="263" alt="timoday.edu.vn">
<div>Picture ở trên có độ rộng là 350px. Tổng độ rộng của phần tử này cũng là 350px.</div>

CSS

div {
  width: 320px;
  padding: 10px;
  border: 5px solid gray;
  margin: 0;
}