ওয়েব ডিজাইন (পর্ব ১৬) ইনলাইন ব্লক, আ্যালাইন, অপাসিটি - WikiJana.Com™

ওয়েব ডিজাইন (পর্ব ১৬) ইনলাইন ব্লক, আ্যালাইন, অপাসিটি

Display প্রোপার্টি এর inline-block ও inline ভেলু এর মধ্যে অনেকটা আলাদা বিষয় আছে যা আমাদের অবশ্যই জানা প্রয়োজন।এইটা না জানলে আপনারা কিছু ডিজাইনের কোনো
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

আস্‌সালামু আলাইকুম! আশা করি আল্লাহ এর অশেষ রহমতে আপনারা সবাই ভালো আছেন।আমিও আপনাদের দোয়াই ভালো আছি। আজকের নতুন টপিকে আপনাকে স্বাগতম! আজকে আপনাদের দেখাবো ইনলাইন ব্লক, আ্যালাইন, অপাসিটি।

Inline-Block Vs. Inline:

Display প্রোপার্টি এর inline-block ও inline ভেলু এর মধ্যে অনেকটা আলাদা বিষয় আছে যা আমাদের অবশ্যই জানা প্রয়োজন।এইটা না জানলে আপনারা কিছু ডিজাইনের কোনো সমস্যা তৈরি হতে পারে।
inline-block এ পুরো জায়গা ধরে রাখে না কিন্তু ব্লক পুরো জায়গা ধরে রাখে যার কারনে অন্য কন্টেন্ট ওই কন্টেন্ট এর নিচে তে অবস্থান করে।
নিচের কোডে খেয়াল করলে বুঝা যাবে দুইটার মধ্যে পার্থক্য কি
<style type="text/css">
.a{
display:inline-block;
height:150px;
width:150px;
background-color:yellow;
border:1px solid red;
}
.b{
display:block;
height:150px;
width:150px;
background: yellow;
border: 1px solid red;
}
</style>
<!-- Inline Block Start-->
<span class="a">Lorem</span>
<span class="a">Ipsum</span>
<!-- inline block end-->
<br />
<br />
<br />
<!-- Block start-->
<span class="b">Lorem</span>
<span class="b">Ipsum</span>
<!-- Block End-->

টেক্সট এ্যালাইনঃ

যেকোনো কন্টেন্ট কে নির্দিষ্ট স্থানে অবস্থান করানোর জন্য এই এল্যাইনের ব্যবহার করা হয়। নিচের কোডের দিকে আমরা খেয়াল করলে আমরা বুঝতে পারবো এলাইন কিভাবে কাজ করে। 
<style>
.align {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  border: 5px solid #ff0000; 
  background-color:#eee;
  text-align-last: center;
}
</style>
<div class="align">
  <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>

অপাসিটিঃ

এইটা নির্দিষ্ট কন্টেন্ট কে স্বচ্ছ করার জন্য ব্যবহার করা হয়।নিচের কোড গুলো খেয়াল করুন।
ওপাসিটি এর ভেলু এর মান সর্বচ্ছ 1 আর এর  থেকে কমাতে হলে আমাদের 0.1 , 0.2, এমন করে লিখে থাকি।

  <style>
.one {
  opacity: 0.1;
    background-color: red;
    padding: 10px;
}

.two {
  opacity: 0.3;
    background-color: red;
  padding: 10px;
}

.three {
  opacity: 0.6;
    background-color: red;
  padding: 10px;
}
p{
opacity:1;
background-color:red;
padding: 10px;
}
</style>

<div class="one"><p>What is Lorem Ipsum?</p></div>
<div class="two"><p>Why do we use it?</p></div>
<div class="three"><p>Where does it come from?</p></div>
<p>Where can I get some?</p>
আমরা যদি কোনো ফটো এর ওপাসিটি কমাতে চাই তবে সেম ভাবে করতে পারবো।
<style>
img {
  opacity: 0.5;
}
</style>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Bangladesh_divisions_english.svg/300px-Bangladesh_divisions_english.svg.png" alt="Forest" width="170">

 এই আর্টিকেল টি পুরোটা পড়ার জন্য আপনাকে অনেক ধন্যবাদ, এই আর্টিকেল যদি বুঝতে অসুবিধা হয় অথবা কোনো প্রশ্ন থাকে তবে কমেন্ট করুন, আশা করি আপনি উত্তর পাবেন।আর নতুুন কিছু জানার থাকলে আমাদের জানান আমরা জানানোর চেস্টা করবো। এই আর্টিকেলটি WikiJana.Com সাইটের সম্পদ তাই যদি কেউ কপি করেন তবে আপনারা অবশ্যই ক্রেডিট দিবেন নয়ত আপনার সাইট কপিরাইটের অধিনে চলে যেতে পারে।

About the Author

I am a web designer and developer. I regularly work for different companies. I try to write a little on this blog when I have time. If you can learn something from this blog, then I will be successful.
I have a blog for learning web design, the nam…

একটি মন্তব্য পোস্ট করুন

কোনো প্রশ্ন থাকলে অনুগ্রহ করে বিস্তারিত ভাবে বলুন, আশা করি আমরা আপনাকে হেল্প করতে পারবো।তবে অনুগ্রহ করে স্পাম করবেন না।
একটি মন্তব্য পোস্ট করুন

All information presented on this website is collected from internet. We may make unintentional mistakes while writing the post. We sincerely apologize for any unpleasant mistakes and WikiJana.Com is not responsible for any incorrect information. If you see any incorrect information please let us know immediately. We will try to fix it as soon as possible. Click here to report.

Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.