डिस्प्ले इनलाइन-ब्लॉक प्रॉपर्टी वैल्यू के साथ एलिमेंट सेट का इस्तेमाल एलिमेंट को इनलाइन-लेवल ब्लॉक कंटेनर के रूप में प्रदर्शित करने के लिए किया जाता है।
उदाहरण
आइए अब CSS में इनलाइन-ब्लॉक प्रॉपर्टी वैल्यू को लागू करने के लिए एक उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
p {
background-color: orange;
color: white;
}
p.demo {
display: inline-block;
}
</style>
</head>
<body>
<h1>Student Result</h1>
<div>
The result of MCA student will be declared on <p class="demo">20th Decemeber 2019</p>. Check the website on the same day at 8PM.
</div>
</body>
</html> आउटपुट

उदाहरण
आइए अब एक और उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
p {
background-color: orange;
color: white;
}
p.demo1 {
display: none;
}
p.demo2 {
display: inline-block;
}
</style>
</head>
<body>
<h1>Match Details</h1>
<div>
Match will begin at <p class="demo1">9AM</p> 10AM on 20th December.
</div>
<div>
Match will end at <p class="demo2">5PM</p> on 20th December.
</div>
</body>
</html> आउटपुट
