div
에 대해 margin
을 지정하려고 시도했지만 하나의 div
상자는 다음 줄로 이동합니다. 어떻게 해결할 수 있을까요? 768px 경계가 사라 아래 화면 픽셀을 갈 때가로 div 사이에 간격을 두는 방법은 무엇입니까?
https://jsfiddle.net/2h25xbna/
<!doctype html>
<html>
<head>
\t <title>assignment</title>
\t <meta charset="utf-8">
\t <meta name="viewport" content="width=width-device, initial-scale=1" >
\t <link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Trending Languages</h1>
<div class="row">
<div class="col-lg-4 col-md-6" ><p id="py">python</p><br><p>The computing industry progresses in two mostly independent cycles: financial and product cycles. There has been a lot of handwringing lately about where we are in the financial cycle. Financial markets get a lot of attention. </p></div>
<div class="col-lg-4 col-md-6 "><p id="js">Javascript</p><br><p>The computing industry progresses in two mostly independent cycles: financial and product cycles. There has been a lot of handwringing lately about where we are in the financial cycle. Financial markets get a lot of attention.</p></div>
<div class="col-lg-4 col-md-12" ><p id="ru">ruby</p><br><p>The computing industry progresses in two mostly independent cycles: financial and product cycles. There has been a lot of handwringing lately about where we are in the financial cycle. Financial markets get a lot of attention. </p></div>
</div>
</body>
</html>
처럼 원하는 이유는 무엇입니까? 그것을 해결하는 방법. 상자 안의 가장 오른쪽 텍스트에 테두리를주고 싶습니다. 나는 id를 사용하여주는 것을 시도했지만 작동하지 않았다. 이
.row {
display:flex;
// your extra css
}
같은
#py{
background-color: #ff9999;
float: right;
clear: left;
position: relative;
top: -15px
border-style: solid;
border-color: black;
border: 2px;
}
당신은 당신의 HTML은 너무 보일 수 있는가? – Jay
당신도 완전한 CSS 코드를 추가해야합니다 –
당신은 파이썬과 자바 스크립트 div 사이에 공백을 원하십니까? – gskema