14. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
13
িসএসএস িক ?
Cascading Style Sheet এর সংি�� রূপ হে� CSS । সহজ ভাষায় ওেয়ব েপেজা িবিভ�
উপাদাে্া গঠন, আকাা, আকৃিত, অব�া্, াং, গিতশীলতা ইতযািদ ি্ধরাােণা সহজ েকৗশল হে�
CSS ।
িসএসএস েক্ �েয়াজ্ ?
একটা সময় িছল যখন শুধুমা� HTML িদেয়ই একিট ওেয়ব
সাইেটা িডজাই্ কাা হেতা । েস সমেয় িডজাই্ বলেত একটা
ওেয়ব েপেজা িবিভ� ফনট এর কালাা, সাইজ, েটিবেলা িবিভ�
েসেলা কালাা, পুোা পৃ�াা বযাক�াউনড কালাা, এবং �েয়াজ্ীয়
ইেমজ সংেযাজ্েক েবাঝাে্া হেতা। এবং �িতটা েপেজা �িতটা
উপাদাে্া জ�ই আলাদা আলাদাভােব কালাা, সাইজ ি্ধরাাণ
কােত হেতা। যা িছল একটা জিটল �ি�য়া, এবং সময় সােপ�
বযাপাা । বতরমাে্ যিদ একটা ওেয়ব সাইেট ১০০০ বা এর অিধক
একই ধাে্া েপজ থােক তাহেলও একিট মা� CSS ি�� বযবহাা
কো িডজাই্ স�ূণর কাা হয়।
িসএসএস বযবহাা কো ৈতিা একিট ে্িভেগশ্ বাা
িসেল�া
CSS এর মাধযেম HTML �াাা ৈতিা কাা ওেয়ব েপেজা িবিভ�
অংশেক ি্িদর� কো গঠন, আকাা, আকৃিত, অব�া্, াং,
গিতশীলতা ইতযািদ ি্ধরাাণ কাা হয়। HTML �াাা ৈতিা ওেয়ব
েপেজা েকা্ অংশেক ি্িদর�ভােব িচি�ত কাাা জ� িসেল�া
বযবহাা কাা হয়। CSS এ েবশ কেয়ক ধােণা িসেল�া বযবহাা
কাা হয় । এগুেলাা মেধয উে�খেযাগয হে� ....
টযাগ িসেল�া
�াস িসেল�া
আইিড িসেল�া
15. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
14
টযাগ িসেল�া
CSS এওেয়ব েপেজা েকা্ অংশেক ি্িদর�ভােব িচি�ত কাাা জ�
যখন HTML টযাগ সমূহ বযবহাা কাা হয় তােক টযাগ িসেল�া বেল। েযম্
body {
background: #FC9;
font-family: Tahoma;
color: #F60;
}
অনুশীল্ �েজ�
<html>
<head>
<title> Selectors</title><style>
body{background: #FC9;
font-family: Tahoma;
color: #F60;}
</style>
</head>
<body >
<marquee>
<h1>www.tutohost.com</h1>
</marquee>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
উপোা উদাহাণিটেত body{background: #FC9; font-family: Tahoma; color: #F60;}
এখাে্ body টযাগ িসেল�া।
16. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
15
�াস িসেল�া
CSS এ ওেয়ব েপেজা েকা্ অংশ বা এক বা একািধক
উপাদা্েক ি্িদর�ভােব িচি�ত কাাা একিট অ�তম প�িত
�াস িসেল�া । একািধক উপাদা্েক একই �াস িসেল�া
�াাা িচি�ত কাা যায়, তাই ইহা েকািডং এর পিামাণ �াস
কােত সাহাযয কো।
েযম্ <p class="mar"> 24 / 7 Support</p> এর জ�
css েকাড .mar{color: #C03; font-size:36px}
�াস িসেল�া ি্েদরশ কাাা জ� HTML টযােগা মেধয
class িক-ওয়াডর বযবহাা কাা হয় এর পর = িচ� িদেয় ডাবল েকােটশ্ এর েভতো �াস এর ্াম
েলখা হয়। েযম্ <p class="mar">। এখাে্ mar �ােসা ্াম। �াইল শীেট �াসেক িচি�ত কােত
(.) ডট িচ� বযবহাা কাা হয়।
অনুশীল্ �েজ�
<html>
<head>
<title> Selectors</title>
<style>
body{background: #FFC}
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
.mar{color: #C03;
font-size:36px}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p class="post">
We are bangladeshi Hostgator hosting provider. The world wide technical and support
team is working for your best movement. </p>
<p class="post"> We are dedicated with client requrement. You can host your huge data
of your company with our secured and hacking proof server. We are taking care of more
than 1000 Bangladeshi websites and their huge information. </p>
<marquee>
<p class="mar"> 24 / 7 Support</p>
</marquee>
</body>
</html>
17. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
16
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
�েজ� িবে�ষণ
<p class="post"> এর মাধযেম একিট পযাাা�ােফা জ� post ্ােম একিট �াস ি্ধরাাণ কাা
হেয়েছ।
<p class="post"> এর মাধযেম অপর একিট পযাাা�ােফা জ� post ্ােম একিট �াস ি্ধরাাণ কাা
হেয়েছ।
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
এর মাধযেম post ্ােম ি্ধরািাত �াসযু� উভয় পযাাা�ােফা জ� �াইল ি্ধরাাণ কাা হেয়েছ।
<p class="mar">এর মাধযেম একিট পযাাা�ােফা জ� mar ্ােম একিট �াস ি্ধরাাণ কাা
হেয়েছ।
.mar{color: #C03;
font-size:36px}
এর মাধযেম mar ্ােম ি্ধরািাত �াসযু� পযাাা�ােফা জ� �াইল ি্ধরাাণ কাা হেয়েছ।
18. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
17
আইিড িসেল�া
CSS এ ওেয়ব েপেজা েকা্ অংশ বা েকা্ উপাদা্েক
ি্িদর�ভােব িচি�ত কাাা একিট জ্ি�য় প�িত আইিড
িসেল�া । একািধক উপাদা্েক �াস িসেল�া এর মত
একই আইিড িসেল�া �াাা িচি�ত কাা যায় ্া।
েযম্ <p id="post1"> We are bangladeshi
Hostgator hosting provider. The world wide
technical and support team is working for your
best movement. information. </p>এর জ� css
েকাড
#post1{
color:#066;
font-family:Tahoma;
text-align:justify;
}
অনুশীল্ �েজ�
<html>
<head>
<title> Selectors</title>
<style>
body{background: #FFC}
#post1{color:#066;
font-family:Tahoma;
text-align:justify;}
#post2{color: #639;
font-family:Tahoma;
text-align:justify;}
#mar{color: #C03;
font-size:36px}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p id="post1">
We are bangladeshi Hostgator hosting provider. The world wide technical
and support team is working for your best movement.
</p>
<p id="post2">
We are dedicated with client requrement. You can host your huge data of
your company with our secured and hacking proof server. We are taking care
19. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
18
of more than 1000 bangladeshi websites and their huge information.
</p>
<marquee>
<p id="mar"> 24 / 7 Support</p>
</marquee>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবর মত েদখােব।
�েজ� িবে�ষণ
<p id="post1"> এর মাধযেম একিট পযাাা�ােফা জ� post1 ্ােম একিট আইিড ি্ধরাাণ কাা
হেয়েছ।
<p id="post2"> এর মাধযেম অপর একিট পযাাা�ােফা জ� post2 ্ােম একিট আইিড ি্ধরাাণ
কাা হেয়েছ।
#post1{color:#066;
font-family:Tahoma;
text-align:justify;}
এর মাধযেম post1 ্ােম ি্ধরািাত আইিডযু� পযাাা�ােফা জ� �াইল ি্ধরাাণ কাা হেয়েছ।
#post2{color:#639;
font-family:Tahoma;
text-align:justify;}
এর মাধযেম post2 ্ােম ি্ধরািাত আইিডযু� পযাাা�ােফা জ� �াইল ি্ধরাাণ কাা হেয়েছ।
েকাড েলখাা প�িত
েয েকা্ ে�া�াম েলখাা জ�ই েকা্ একটা এিডটা
বযবহাা কো েকািডং কােত হয়। িস এস এস এর জ�
�াথিমকভােব এিডটা িহেসেব উইেনডাজ অপাোিটং
িসে�েমা িডফ� এিডটা notepad বযবহাা কাা েযেত
পাো এবং বাড়িত সুিবধা পাবাা জ� এডভা� এিডটা
িহেসেব Dreamweaver বযবহাা কােল কাজ অে্ক
সহজহেয় যােব।
20. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
19
িস এস এস Syntax
িস এস এস syntax দুিট অংেশ িবভ� । যথা Selector এবং Declaration ।
Selector অংেশ টযাগ িসেল�া িহেসেব HTML টযাগ বা �াস িসেল�া িহেসেব HTML টযাগ এর �াস
এর ্াম অথবা আইিড িসেল�া িহেসেব HTML টযাগ এর আইিড এর ্াম বেস।
�িতটা Declaration এর একিট property এবং একিট value থােক।
অনুশীল্ �েজ�
<html>
<head>
<title> Syntax</title>
<style>
body{background: #FFC}
#post1{color:#066;
font-family:Tahoma;
text-align:justify;}
#post2{color: #639;
font-family:Tahoma;
text-align:justify;}
#mar{color: #C03;
font-size:36px}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p id="post1">
We are bangladeshi Hostgator hosting provider. The world wide technical
and support team is working for your best movement.
</p>
<p id="post2">
We are dedicated with client requrement. You can host your huge data of
your company with our secured and hacking proof server. We are taking care
of more than 1000 bangladeshi websites and their huge information.
</p>
21. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
20
<marquee>
<p id="mar"> 24 / 7 Support</p>
</marquee>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
এইচ িট এম এল এবং িস এস এস
এইচ িট এম এল এর সােথ িস এস এস যু� কাাা িবষয়িট খুবই
গুরু�পূণর। এইচ িট এম এল এর সােথ িস এস এস যু� কাাা
জ� িত্িট প�িত ােয়েছ। যথা
ইমেবেডড বা ইনটাা্রাল �াইল শীট
ইন-লাই্ �াইল শীট
এ�টা্রাল �াইল শীট
22. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
21
ইমেবেডড �াইল শীট
এ প�িতেত <head>………….</head> এর মেধয <style>..</style> বা �াইল টযাগ বযাবহাা
কাা হয়। এবং <style>….</style> এর মেধযই িস এস এস এর জ� �েয়াজ্ীয় Selector এবং
Declaration সমূহ াাখা হয়। েযম্
<style>
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
</style>
ইমেবেডড �াইল শীটেক ইন লাই্ �াইল শীটও বলা হয়।
অনুশীল্ �েজ�
<html>
<head>
<title> Selectors</title>
<style>
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p class="post">We are bangladeshi Hostgator hosting provider. The world
wide technical and support team is working for your best movement. </p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
23. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
22
কখন ইমেবেডড �াইল শীট বযবহাা কাা উিচৎ
যখন েকা্ ওেয়ব সাইেট এমন েকা্ একিট সত� েপজ থােক যাা িডজাই্ অ�া� েপজ েথেক িভ�
এে�ে� ইমেবেডড �াইল শীট বযবহাা কাা উিচৎ ।
এ�টা্রাল �াইল শীট
এ প�িতেত িস এস এস এর জ� �েয়াজ্ীয় Selector এবং
Declaration সমূহ আলাদা ি�ে� াাখা হয় এবং ি��িটেক বা
�াইল শীটিটেক style.css বা এর অনুরূপ ্ােম save কাা হয়।
<head>………….</head> এর মেধয <link rel="stylesheet"
type="text/css" href="css.css"> যু� কো এ�টা্রাল �াইল
শীট এর সােথ এইচ িট এম এল এর িলংক ৈতিা কাা হয়।
অনুশীল্ �েজ�:
HTML Code:
<html>
<head>
<title> Selectors</title>
<link rel="stylesheet" type="text/css" href="css.css" />
</head>
<body >
<h1>www.tutohost.com</h1>
<p class="post">
We are bangladeshi Hostgator hosting provider. The world wide technical
and support team is working for your best movement. </p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কােত হেব।
CSS Code :
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
24. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
23
�াইল িসটিটেক style.css ্ােম save কো index.html ফাইলিট Mozilla Firefox িদেয়
open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
কখন এ�টা্রাল �াইল শীট বযবহাা কাা উিচৎ
েয েকা্ ওেয়ব সাইেটা অিধকাংশ েপজই একই িডজাইে্া হয়। এে�ে� এ�টা্রাল �াইল শীট
বযবহাা কােল �িতটা েপেজা জ� আলাদা �াইল শীেটা �েয়াজ্ হয় ্া। অথরাৎ যখন েকা্ ওেয়ব
সাইেটা অিধকাংশ েপজই একই িডজাইে্া তখন এ�টা্রাল ই�াইল শীট বযবহাা কাা উিচৎ ।
ইন-লাই্ �াইল শীট
এ প�িতেত এইচ িট এম এল এর �িতটা টযােগা
এি্িবউটস িহেসেব style এি্িবউটস যু� কো এর
মেধয িস এস এস এর জ� �েয়াজ্ীয় Declaration
সমূহ যু� কাা হয়। েযম্<p style="color:#066;
font-family:Tahoma; text-align:justify;">
25. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
24
অনুশীল্ �েজ�
HTML Code
<head>
<title> Selectors</title>
</head>
<body >
<h1>www.tutohost.com</h1>
<p style="color:#066; font-family:Tahoma; text-align:justify;">
We are bangladeshi Hostgator hosting provider. The world wide technical
and support team is working for your best movement. </p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
কখন ইন-লাই্ �াইল শীট বযবহাা কাা উিচৎ
েকা্ ওেয়ব েপেজা িডজাই্ ৈতিাা জ� যখন এ�টা্রাল ই�াইল শীট বা ইমেবেডড �াইল শীট
থােক অথবা েকা্ �াইল শীটই থােক ্া এে�ে� েকা্ িবেশষ HTML টযােগা �াইল ি্ধরাােণা
জ� ই্লাই্ �াইল শীট বযবহাা কাা উিচৎ ।
স্টাইল
28. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
27
বযাক�াউনড পিজশ্
বযাক�াউনড ইেমজিটা অব�া্ েকাথায় হেব তা ি্েদরশ কাাা জ� বযাক�াউনড পিজশ্ বযবহাা কাা
হয়। যিদ ইেমজিটেক বােম াাখেত হয় তাহেল Declaration হেব background-position:left ;
এখাে্ left এর �াে্ right, center, bottom, top ইতযািদ হেত পাো। যিদ ইেমজিটেক উপর িদক
েথেক বােম াাখেত হয় তাহেল Declaration হেব background-position:top-left; ।
বযাক�াউনড এটাচেমনট
বযাক�াউনড ইেমজ েপেজা অ�া� উপাদাে্া সােথ সােথ �িলং হেব িক্া তা �কাশ কাাা জ�
বযাক�াউনড এটাচেমনট বযবহাা কাা হয়। বযাক�াউনড ইেমজ েপেজা অ�া� উপাদাে্া সােথ সােথ
�িলং কাাা জ� Declaration হেব background-attachment:scroll ; । সাধাাণত িকছু উে�খ ্া
কােল বযাক�াউনড ইেমজ েপেজা অ�া� উপাদাে্া সােথ সােথ �িলং হয়। বযাক�াউনড ইেমজ
েপেজা অ�া� উপাদাে্া সােথ সােথ �িলং ্া কাাা জ� Declaration হেব background-
attachment: fixed; ।
অনুশীল্ �েজ�
<html>
<head>
<title> Selectors</title>
<style>
body{ background: url(../images/bg.png); background-attachment:fixed;}
p{background: #C0C ; color: #fff; margin-left:50px;}
h1{ margin-top:50px; color:#C00}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p id="post1">
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
29. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
28
েট�ট (Text)
ওেয়ব সাইেটা �ধা্ উপাদা্ হে� েট�ট। েসৗ�যর বৃি�া জ�
এবং িবেশষ িকছু সুিবধা পাবাা জ� css এর মাধযেম েট�ট এর
�াইল ৈতিা কাা হয়। েট�ট এর �াইল ৈতিাা জ� েবশ
কেয়কিট িবষয় Declaration এ উে�খ কােত হয়। এগুেলা
হে�
েট�ট কালাা (Text Color)
েট�ট এলাই্েমনট (Text Alignment)
েট�ট েডকোশ্ (Text Decoration)
েট�ট ্া�ফােমশ্ (Text
transformation)
েট�ট কালাা (Text Color)
আমাা সাধাাণত HTML এর মাধযেম েট�ট বযবহাোা জ� <P>, <h1>,<h2>,<a> সহ আোা িকছু
টযাগ বযবহাা কিা। এসকল েট�ট এর কালাা ি্ধরাােণা জ� Declaration কােত হেব p { color:
#FC9 } বা এর অনুরূপ। p এর �াে্ অ�া� টযােগা ে�ে� h1, h2 , a, body, অথবা েকা্ টযােগা
id বা class বসেত পাো। েট�ট এর কালাা ি্ধরাােণা জ� িত্ ধােণা Declaration হেত পাো।
েযম্
p { color: #FC9}
p {color:blue;}
p {color:rgb(255,0,0);}
30. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
29
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
h1{color:#C00;}
p{color:blue;}
.mar{color:rgb(150,0,0); font-size:25px;}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p>
We are bangladeshi Hostgator hosting provider.<br />
We are bangladeshi Hostgator hosting provider. <br />
We are bangladeshi Hostgator hosting provider. <br />
</p>
<marquee>
<p class="mar"> 24 / 7 Support</p>
</marquee>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
31. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
30
েট�ট এলাই্েমনট (Text Alignment)
ওেয়ব েপেজ েট�টেক সাজাে্াা জ� েট�ট
এলাই্েমনট বযবহাা কাা হয়। েট�টেক েপেজা বাম
পােশ াাখাা জ� Declaration কােত হেব text-
align:left; অনুরূপভােব ডা্ পােশ াাখাা জ�
Declaration কােত হেব text-align:right; মধয�াে্
াাখাা জ� Declaration কােত হেব text-
align:center; । যিদ েট�ট এর �িতটা লাই্ একই
আকাো সাজােত চাই তাহেল Declaration কােত হেব
text-align:justify ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
#right{text-align:right;}
#left{text-align:left;}
#center{text-align:center}
#justify{text-align: justify;}
</style>
</head>
<body >
<h2>Example of right align </h2>
<p id="right">
We are bangladeshi <br />Hostgator hosting provider. <br />
We are bangladeshi <br />Hostgator hosting provider.
</p>
<h2>Example of left align </h2>
<p id="left">
We are bangladeshi <br />Hostgator hosting provider. <br />
We are bangladeshi <br />Hostgator hosting provider.
</p>
<h2>Example of center align </h2>
<p id="center">
We are bangladeshi <br />Hostgator hosting provider. <br />
We are bangladeshi <br />Hostgator hosting provider.
</p>
<h2>Example of justify align </h2>
32. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
31
<p id="justify">
We are bangladeshi Hostgator hosting provider.
We are bangladeshi Hostgator hosting provider.
We are bangladeshi Hostgator hosting provider.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
33. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
32
েট�ট েডকোশ্ (Text Decoration)
েকা্ েট�ট এর সােথ HTML এর <a> টযােগা
মাধযেম িলংক যু� কােল ঐ েট�টিটা ি্েচ ে�ট
লাই্ আেস ঐ ে�ট লাই্ �া্া�িাত কাাা জ�,
েট�ট েডকোশ্ বযবহাা কাা হয়। ে�ট লাই্েক
েট�ট এর উপো �া্ েদয়াা জ� Declaration
কােত হেব text-decoration:overline; হয়। ে�ট
লাই্েক েট�ট এর মধয�াে্ �া্ েদয়াা জ�
Declaration কােত হেব text-decoration:line-
through; হয়। ে�ট লাই্েক েট�ট এর ি্েচ �া্
েদয়াা জ� Declaration কােত হেব text-
decoration:underline; েট�ট েক পযরয়�িমকভােব
দৃ�মা্ এবং অদৃ� কাাা জ� Declaration
কােত হেব text-decoration:blink; ে�ট লাই্েক
স�ূণররূেপ দূা কাাা জ� Declaration কােত হেব
text-decoration:none;।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
h3 {text-decoration:overline;}
h4{text-decoration:line-through;}
h5{text-decoration:underline;}
h6 {text-decoration:blink;}
#none{text-decoration:none}
</style>
</head>
<body >
<h3>This is an example of overline</h3>
<h4>This is an example of line-through</h4>
<h5>This is an example of underline</h5>
<h6>This is an example of blink</h6>
<a href="www.tutohost.com"id="none"><h2>This is a link and
an example of text-decoration none </h2></a>
</body>
</html>
34. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
33
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
েট�ট ্া�ফােমশ্ (Text Transformation)
েট�ট অ�ভূর� অ�া সমূহেক বড় হােতা বা েছাট
হােতা অ�ো অথবা �িতিট শে�া �থম অ�া বড়
হােতা অ�ো রূপা�োা জ� েট�ট ্া�ফােমশ্
বযবহাা কাা হয়। েট�ট এর অ�ভূর� সকল
অ�ােক বড় হােতা অ�ো রূপা�োা জ�
Declaration কােত হেব text-
transform:uppercase; েছাট হােতা অ�ো
রূপা�োা জ� Declaration কােত হেব text-
transform:lowercase; �িতিট শে�া �থম অ�া
বড় হােতা অ�ো রূপা�োা জ� Declaration
কােত হেব text-transform:capitalize; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
p.uppercase {text-transform:uppercase;}
p.lowercase {text-transform:lowercase;}
p.capitalize {text-transform:capitalize;}
</style>
35. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
34
</head>
<body >
<p class="uppercase">This is an example of uppercase.</p>
<p class="lowercase">This is an example of lowercase.</p>
<p class="capitalize">This is an example of capitalize.</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ফনট (Font)
একটা ওেয়ব সাইেটা �ধা্ উে�� হে�
বযবহাাকাাীেক �েয়াজ্ীয় তথয েসবা �দা্
কাা। েকা্ ওেয়ব সাইেট তথয �দশরে্া
ে�ে� �ধা্ ভূিমকা পাল্ কো েট�ট ।
সাইেট েকাথায় িক ধােণা েট�ট বযবহাা
কাা হেব, আকাা আকৃিত েকম্ হেব এ
সকল িকছুই ি্য়ি�ত হয় িস এস এস এর
ফনট এর মাধযেম। েট�ট এর ফনট �াইল
ৈতিাা জ� েবশ কেয়কিট িবষয়
Declaration এ উে�খ কােত হয়। এগুেলা
হে�
ফনট ফযািমিল (Font family)
ফনট সাইজ(Font size)
ফনট েভিােয়নট (Font variant)
ফনট ওেয়ট (font-weigh)
36. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
35
ফনট ফযািমিল (Font family)
েট�ট সমূেহ িক ধােণা ফনট বযবহাা কাা হেব, তা ি্েদরশ কাাা জ� ফনট ফযািমিল বযবহাা কাা হয়।
েট�ট সমূেহা জ� Arial ফনট িসেল� কাাা জ� Declaration কােত হেব font-family:Arial;
অনুরূপভােব Tahoma ফনট িসেল� কাাা জ� Declaration কােত হেব font-family:Tahoma; ।
অে্ক সময় েট�ট সমূেহা জ� একিটা পিাপূাক িহেসেব একািধক ফনট Declaration এ উে�খ
কাা হয় েযম্ font-family:Verdana, Geneva, Tahoma; । যখন �াউজাা �থম ফনট সােপাটর
কােব ্া তখন েট�ট সমূহ ২য় বা ৩য় ফেনট �দিশরত হেব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
h1{font-family:Arial;}
h2{font-family:Tahoma; color: #C00}
p{ font-family:Verdana, Geneva, Tahoma}
</style>
</head>
<body >
<h1>This text is written by Arial font.</h1>
<h2>This text is written by Tahoma font.</h2>
<p>Normaly,this text is written by Verdana font, But when
browser does not support Verdana font, this text will be
displayed by Geneva font or Tahoma font. </p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
37. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
36
ফনট সাইজ (Font size)
েট�ট সমূেহ বযবহৃত ফনট সমূেহা আকাা বা সাইজ
েকম্ হেব, তা ি্েদরশ কাাা জ� ফনট সাইজ বযবহাা
কাা হয়। েট�ট সমূেহা জ� 25px এর ফনট িসেল�
কাাা জ� Declaration কােত হেব font-size:25px;
অনুরূপভােব 20px ফনট িসেল� কাাা জ� Declaration
কােত হেব font-size:20px;। েট�ট সমূেহ বযবহৃত ফনট
সমূেহা আকাা বা সাইজ িপে�েল বা px এ ্া িদেয়
শতকাা িহেসেবও েদযা েযেত পাো, এে�ে�
Declaration কােত হেব font-size:100% এর অনুরূপ।
েট�ট সমূেহা ফনট সাইজ Declaration এর আোা েবশ
িকছু প�িত আেছ েযম্ font-size:larger; font-
size:medium; font-size:small; font-size:smaller;
font-size:xx-large; font-size:large; font-size:x-large; font-size:x-small; font-size:xx-
small; ইতযািদ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
p{font-size:25px;}
h3{font-size:20p;}
#100{ font-size:100%}
#250{ font-size:150%}
#xx-large{ font-size:xx-large;}
</style>
</head>
<body >
<p> The font size of the text is 25px. </p>
<h3>The font size of the text is 20px.</h3>
<p id="100">The font size of the text is 100%.</p>
<p id="250">The font size of the text is 150%.</p>
<p id="xx-large">The font size of the text is xx-large</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
38. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
37
ফনট েভিােয়নট (Font variant)
যিদ েকা্ ওেয়ব েপেজ িবেশষ েকা্ িশোা্াম এম্ভােব
�দশরে্া �েয়াজ্ পেড়, েযখাে্ �াভািবকভােব েলখা
েট�ট সমূেহা সবগুেলা অ�া বড় হােতা হেব িক� েয�াে্
েছাট হােতা অ�া হওয়াা কথা েসই �াে্া বড় হােতা
অ�াগুেলাা ফনট সাইজ তুল্ামূলক �াভািবক ফনট
সাইেজা েচেয় েছাট হেব, এে�ে� ফনট েভিােয়নট বযবহাা
কাা হয়।This Is an Example Of Variant
Text েলখািটা ভািােয়নট �াইল ৈতিাা জ�
Declaration কােত হেব font-variant: small-caps; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
#variant{ font-variant: small-caps; color:#C00;}
</style>
</head>
<body >
<h2>This is an example of normal h2 text .</h2>
<h2 id="variant">This Is an Example Of h2 Variant Text .</h2>
</body>
</html>
39. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
38
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ফনট ওেয়ট (font-weigh)
েকা্ ওেয়ব েপেজ বযবহৃত েট�ট সমূহ কতটা েমাটা হেব
বা িচক্ হেব তা ি্ধরাাণ কাাা জ� ফনট ওেয়ট বযবহাা
কাা হয়। েবা� েট�ট ৈতিাা জ� Declaration কােত
হেব font-weight:bold; । েট�ট সমূহ কতটা েমাটা হেব
তা ি্ধরাােণা জ� সংখযা বযবহাা কাা েযেত পাো, েযম্
font-weight:900; অথবা font-weight:800; । এছাড়া
ফনট ওেয়ট �াইল িহেসেব font-weight:lighter; এবং
font-weight:bolder; বযবহাা কাা হয়।
40. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
39
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
#normal{font-weight:normal;}
#bold{font-weight:bold;}
#lighter{font-weight:lighter;}
#ni{font-weight:900;}
</style>
</head>
<body >
<p id="normal"> This is an example of normal p text . </p>
<p id="bold"> This is an example of bold p text . </p>
<p id="lighter"> This is an example of lighter p text . </p>
<p id="ni"> This is an example of 900 p text . </p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
60. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
59
বডরাা �াইল
বডরাা �যাইল ি্েদরশ কো বডরাািট েদখেত েকম্ হেব।বডরাা �যাইল ৈতিাা জ� Declaration
কােত হেব, border-style:dotted এর অনুরূপ। িস এস এস বযবহাা কো িবিভ� ধােণা বডরাা
�যাইল ৈতিা কাা যায়। ডেটড �যাইল বডরাা ৈতিাা জ� Declaration কােত হেব, border-
style:dotted ; ডযােসড �যাইল বডরাা ৈতিাা জ� Declaration কােত হেব, border-style:dashed;
ডাবল �যাইল বডরাা ৈতিাা জ� Declaration কােত হেব, border-style:double; ে�াভ �যাইল
বডরাা ৈতিাা জ� Declaration কােত হেব, border-style:groove; িাডজ �যাইল বডরাা ৈতিাা
জ� Declaration কােত হেব, border-style:ridge; ই্েসট �যাইল বডরাা ৈতিাা জ�
Declaration কােত হেব, border-style:inset; আউটেসট �যাইল বডরাা ৈতিাা জ� Declaration
কােত হেব, border-style:outset; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
#dotted{border-style:dotted ;}
#dashed{border-style:dashed;}
#double{border-style:double;}
#groove{border-style:groove;}
#ridge{border-style:ridge;}
#inset{border-style:inset;}
#outset{border-style:outset;}
</style>
</head>
<body >
<h3 id="dotted">This is an example of dotted border</h3>
<h3 id="dashed">This is an example of dashed border</h3>
<h3 id="double">This is an example of double border</h3>
<h3 id="groove">This is an example of groove border</h3>
<h3 id="ridge">This is an example of ridge border</h3>
<h3 id="inset">This is an example of inset border</h3>
<h3 id="outset">This is an example of outset border</h3>
</body>
</body>
</html>
61. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
60
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
বডরাা ওয়াইডথ (Border Width)
বডরাা ওয়াইডথ ি্েদরশ কো বডরাািট কতটা েমাটা
হেব।বডরাা ওয়াইডথ ি্ধরাােণা জ�
Declaration কােত হেব, border-width:thin;
এর অনুরূপ। িস এস এস বযবহাা কো িবিভ�
ধােণা বডরাা ওয়াইডথ ি্ধরাাণ কাা যায়।িথ্
বডরাা ৈতিাা জ� Declaration কােত হেব,
border-width:thin; িমিডয়াম বডরাা ৈতিাা জ�
Declaration কােত হেব, border-
width:medium; িথক বডরাা ৈতিাা জ�
Declaration কােত হেব, border-width:thick;
1px বা ১ িপে�ল চওড়া বডরাা ৈতিাা জ�
Declaration কােত হেব,border-width:1px;
15px বা ১৫ িপে�ল চওড়া বডরাা ৈতিাা জ� Declaration কােত হেব, border-width:15px; ।
62. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
61
েকা্ HTML উপাদাে্া চাাপােশা বডরাা চাা ধােণা ওয়াইডথ এর হেত পাো, এধােণা বডরাা
ৈতিাা জ� Declaration কােত হেব, border-width:2px 8px 6px 4px; এখাে্ ১ম 2px ি্েদরশ
কো top border ; ২য় 8px ি্েদরশ কো right border; ৩য় 6px ি্েদরশ কো down border ; ৪থর
4px ি্েদরশ কো left border।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
h3{border-style:solid;}
#thin{border-width:thin;}
#medium{border-width:medium;}
#thick{border-width:thick;}
#1px{border-width:1px;}
#15px{border-width:15px;}
div{border-style:solid;
border-width:2px 8px 6px 4px;}
</style>
</head>
<body >
<h3 id="thin">This is an example of thin border</h3>
<h3 id="medium">This is an example of medium border</h3>
<h3 id="thick">This is an example of thick border</h3>
<h3 id="1px">This is an example of 1px border</h3>
<h3 id="15px">This is an example of 15px border</h3>
<div>
<p>
<h2>This is an example of multi size border</h2>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
64. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
63
েকা্ HTML উপাদাে্া চাাপােশা বডরাা চাা ধােণা ােঙা হেত পাো, এধােণা বডরাা ৈতিাা জ�
Declaration কােত হেব, border-color:#a03090 #f00000 #C06000 #0030F0; এখাে্ ১ম
#a03090 ি্েদরশ কো top border color ; ২য় #f00000 ি্েদরশ কো right border color; ৩য়
#C06000 ি্েদরশ কো down border color; ৪থর #0030F0; ি্েদরশ কো left border color ;
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
h3{border-style:solid;}
#yellow{border-color:yellow;}
#pink{border-color:pink;}
#rgb{border-color:rgb(240,060,155);}
#hex{border-color:#ff0000;}
#transparent{border-color:transparent;}
div{border-style:solid;
border-color:#a03090 #f00000 #C06000 #0030F0;}
</style>
</head>
<body >
<h3 id="yellow">This is an example of yellow border</h3>
<h3 id="pink">This is an example of pink border</h3>
<h3 id="rgb">This is an example of rgb border</h3>
<h3 id="hex">This is an example of hex border</h3>
<h3 id="transparent">This is an example of transparent
border</h3>
<div>
<p>
<h2>This is an example of multi colour border</h2>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
66. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
65
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
div{
border-top:dotted 8px #F00 ;
border-right:dashed 6px #F60 ;
border-bottom:double 6px #C09;
border-left:solid 5px #960;}
</style>
</head>
<body >
<div>
<p>
<h2>This is an example of individual style border</h2>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
67. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
66
মািজর্ (Margin)
িবিভ� HTML উপাদাে্া চাাপােশ কতটুক �া্
ফাঁকা থাকেব তা ি্েদরশ কাাা জ� মািজর্
বযবহাা কাা হয়।এজ� CSS এ margin
Property বযবহাা কাা হয়। সাধাাণভােব েকা্
HTML উপাদাে্া চাাপােশ সমা্ পিামা্
মািজর্ ৈতিা কাাা জ� Declaration কােত হয়
margin:15px;এর অনুরূপ।এখাে্ px এর
পিাবেতর cm, pt, auto, % বযবহাা কাা যায়।যিদ
উপোা িদেক মািজর্ িদেত হয় তাহেল
Declaration কােত হেব margin-top:20px;
ি্েচা িদেক মািজর্ েদয়াা জ� Declaration
কােত হেব margin-bottom:25px; বাম িদেক মািজর্ েদয়াা জ� Declaration কােত হেব
margin-left:30px; ডা্ িদেক মািজর্ েদয়াা জ� Declaration কােত হেব margin-
right:35px;।চাািদেকা মািজর্ একইসােথ Declaration কাা যায় েযম্ margin:20px 25px 30px
35px এখাে্ 20px উপোা িদেকা মািজর্ ি্েদরশ কো, 25px ডা্ িদেকা মািজর্ ি্েদরশ কো,
30px ি্েচা িদেকা মািজর্ ি্েদরশ কো, 35px বাম িদেকা মািজর্ ি্েদরশ কো।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
h3,div{border-style:solid; border-color:rgb(240,060,155);}
#auto{margin-left:auto;}
#px{margin-left:50px;}
#cm{margin-left:3cm;}
#pt{ margin-left:120pt;}
#per{ margin-left:25%;}
div{margin:20px 25px 30px 35px; }
</style>
</head>
<body >
<h3 id="auto">This is an example of auto left margin.</h3>
<h3 id="px">This is an example of 50px left margin.</h3>
<h3 id="cm">This is an example of 3cm left margin.</h3>
<h3 id="pt">This is an example of 120 pt left margin.</h3>
<h3 id="per">This is an example of 25% left margin.</h3>
<div>
<h2>This is an example of multi margin.</h2>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
68. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
67
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
পযািডং (Padding)
িবিভ� HTML উপাদাে্া যিদ বডরাা থােক, তাহেল
বডরাা েথেক ক্েটনট এর চাাপােশ কতটুক �া্
ফাঁকা থাকেব তা ি্েদরশ কাাা জ� পযািডং বযবহাা
কাা হয। পযািডং মূলত িবিভ� HTML উপাদাে্া
বযক�াউনড এিায়া বৃি� কো থােক । পযািডং
বযবহাা কাাা জ� CSS এ padding Property
বযবহাা কাা হয়। সাধাাণভােব েকা্ HTML
উপাদাে্া চাাপােশ সমা্ পিামা্ পযািডং ৈতিা
কাাা জ� Declaration কােত হয়
padding:15px;এর অনুরূপ।এখাে্ px এর
পিাবেতর cm, pt, auto, % বযবহাা কাা যায়।যিদ
69. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
68
উপোা িদেক পযািডং িদেত হয় তাহেল Declaration কােত হেব padding-top:20px; ি্েচা িদেক
পযািডং েদয়াা জ� Declaration কােত হেব padding-bottom:25px; বাম িদেক পযািডং েদয়াা
জ� Declaration কােত হেব padding-left:30px; ডা্ িদেক পযািডং েদয়াা জ� Declaration
কােত হেব padding-right:35px;।চাািদেকা পযািডং একইসােথ Declaration কাা যায় েযম্
padding:20px 25px 30px 35px এখাে্ 20px উপোা িদেকা পযািডং ি্েদরশ কো, 25px ডা্
িদেকা পযািডং ি্েদরশ কো, 30px ি্েচা িদেকা পযািডং ি্েদরশ কো, 35px বাম িদেকা মািজর্
ি্েদরশ কো।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
h3,div{border-style:solid; border-color:rgb(240,060,155);}
#auto{padding-left:auto;}
#px{padding-left:50px;}
#cm{padding-left:3cm;}
#pt{padding-left:120pt;}
#per{padding-left:25%}
div{padding:20px 25px 30px 35px; }
</style>
</head>
<body >
<h3 id="auto">This is an example of auto left padding.</h3>
<h3 id="px">This is an example of 50px left padding.</h3>
<h3 id="cm">This is an example of 3cm left padding.</h3>
<h3 id="pt">This is an example of 120 pt left padding.</h3>
<h3 id="per">This is an example of 25% left padding.</h3>
<div>
<h2>This is an example of multi padding.</h2>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
70. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
69
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
আউট লাই্ এবং আউট লাই্ �াইল
বডরাা এর অ্ূরূপ ওেয়ব েপেজা অপর একিট
গুরু�পূণর উপাদা্ আউট লাই্।এইচ িট এম এল
এবং িস এস এস বযবহাা কো েটমে�ট িডজাই্
কাাা সময় িবিভ� েমেসজ ব�, সাইডবাা
ইতযািদ িডজাইে্া ে�ে� আউট লাই্ বযবহাা
কাা হয়।িস এস এস বযবহাা কো িবিভ� ধােণা
আউট লাই্ ৈতিা কাা যায়।
71. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
70
িবিভ� ধােণা আউট লাই্ ৈতিাা ে�ে� েবশ িকছু িবষেয়া উপর কাজ কােত হয়। এগুেলা হে�,
আউট লাই্ �াইল (Outline Style)
আউট লাই্ ওয়াইডথ (Outline Width)
আউট লাই্ কালাা (Outline Color)
আউট লাই্ �যাইল
আউট লাই্ �যাইল ি্েদরশ কো আউট লাই্িট েদখেত েকম্ হেব।আউট লাই্ �যাইল ৈতিাা
জ� Declaration কােত হেব, outline-style:dotted; এর অনুরূপ। িস এস এস বযবহাা কো িবিভ�
ধােণা আউট লাই্ ৈতিা কাা যায়। ডেটড �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত
হেব, outline-style:dotted; ডযােসড �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত হেব,
outline-style:dashed; ডাবল �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত হেব, outline-
style:double; ে�াভ �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত হেব, outline-
style:groove; িাডজ �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত হেব, outline-
style:ridge; ই্েসট �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত হেব, outline-
style:inset; আউটেসট �যাইল আউট লাই্ ৈতিাা জ� Declaration কােত হেব, outline-
style:outset; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
h3{border:solid #666 10px;}
#dotted{outline-style:dotted;}
#dashed{outline-style:dashed;}
#double{outline-style:double;}
#groove{outline-style:groove;}
#ridge{outline-style:ridge;}
#inset{outline-style:inset;}
#outset{ outline-style:outset;}
</style>
</head>
<body >
<h3 id="dotted">This is an example of dotted outline.</h3>
<h3 id="dashed">This is an example of dashed outline.</h3>
<h3 id="double">This is an example of double outline.</h3>
<h3 id="groove">This is an example of groove outline.</h3>
<h3 id="ridge">This is an example of ridge outline.</h3>
<h3 id="inset">This is an example of inset outline.</h3>
<h3 id="outset">This is an example of outset outline.</h3>
72. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
71
</body>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
আউট লাই্ ওয়াইডথ (Outline Width)
আউট লাই্ ওয়াইডথ ি্েদরশ কো আউট লাই্িট
কতটা েমাটা হেব।আউট লাই্ ওয়াইডথ
ি্ধরাােণা জ� Declaration কােত হেব,
outline-width:thin; এর অনুরূপ। িস এস এস
বযবহাা কো িবিভ� ধােণা আউট লাই্
ওয়াইডথ ি্ধরাাণ কাা যায়।িথ্ আউট লাই্
ৈতিাা জ� Declaration কােত হেব, outline-
width:thin; িমিডয়াম আউট লাই্ ৈতিাা জ�
Declaration কােত হেব, outline-
width:medium; িথক আউট লাই্ ৈতিাা জ�
Declaration কােত হেব, outline-
width:thick; 1px বা ১ িপে�ল চওড়া আউট
73. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
72
লাই্ ৈতিাা জ� Declaration কােত হেব, outline-width:1px; 10px বা ১০ িপে�ল চওড়া আউট
লাই্ ৈতিাা জ� Declaration কােত হেব, outline-width:10px;।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
div,h3{border:solid #666 10px; outline:dotted #C30; }
#thin{outline-width:thin;}
#medium{outline-width:medium;}
#thick{outline-width:thick;}
#apx{outline-width:1px;}
#bpx{outline-width:10px;}
div{outline:solid #C30;
outline-width:5px; }
</style>
</head>
<body >
<h3 id="thin">This is an example of thin outline.</h3>
<h3 id="medium">This is an example of mediumoutline.</h3>
<h3 id="thick">This is an example of thick outline.</h3>
<h3 id="apx">This is an example of 1px outline.</h3>
<h3 id="bpx">This is an example of 10px outline.</h3>
<div>
<p>
<h2>This is an example of solid 5px outline.</h2>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</body>
</html>
74. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
73
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
আউট লাই্ কালাা (Outline Color)
আউট লাই্ কালাা ি্েদরশ কো আউট
লাই্িটা াং েকম্ হেব।আউট লাই্ কালাা
ি্ধরাােণা জ� Declaration কােত হেব,
outline-color:yellow; এর অনুরূপ। িস এস
এস বযবহাা কো িবিভ� ধােণা আউট লাই্
কালাা ি্ধরাাণ কাা যায়।হলুদ ােঙা আউট
লাই্ ৈতিাা জ� Declaration কােত হেব,
outline-color:yellow; িপংক কালাোা
আউট লাই্ ৈতিাা জ� Declaration কােত
হেব, outline-color:pink; rgb প�িতেতও
75. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
74
আউট লাই্ কালাা িাধরাাণ কাা যায়, এ প�িতেত আউট লাই্ ৈতিাা জ� Declaration কােত হেব,
outline-color:rgb(240,060,155); hex প�িতেতও আউট লাই্ কালাা িাধরাাণ কাা যায়, এ
প�িতেত আউট লাই্ ৈতিাা জ� Declaration কােত হেব, outline-color:#ff0000; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
div,h3{border:solid #666 10px; outline:dashed #C03;
padding:5px;}
#yellow{outline-color:yellow;}
#pink{outline-color:pink;}
#rgb{outline-color:rgb(240,060,155);}
#hex{outline-color:#ff0000;}
div{outline:red 10px double}
</style>
</head>
<body >
<h3 id="yellow">This is an example of yellow outline.</h3>
<h3 id="pink">This is an example of pink outline.</h3>
<h3 id="rgb">This is an example of rgb outline.</h3>
<h3 id="hex">This is an example of hex outline.</h3>
<div>
<p>
<h2>This is an example of 10px red double outline.</h2>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
78. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
77
The world wide technical and support team is working for your
best movement. We are bangladeshi Hostgator hosting provider.
The world wide technical and support team is working for your
best movement. </p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
80. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
79
�িপং িসেল�া (Grouping Selector)
একজন ভাল েকাডাা বা ে�া�ামাোা
অ�তম ৈবিশ�য হে�, িতি্ যেতাটা স�ব
েকাডেক সি�� কােব্। �িপং িসেল�া
বযবহাা কো CSS এর েকাডেক
অে্কাংেশ কমাে্া স�ব হয়। অে্ক
সময় েবশ িকছু HTML উপাদাে্া জ�
একই ধােণা �যাইল বযবহাা কাাা
�েয়াজ্ হয়। েযম্ h1,h2,p ইতযািদা
জ� একই color, font-family, text-
align ইতযািদ ে�াপািটর বযবহাোা
�েয়াজ্ হেল সবগুেলাা জ� আলাদা
আলাদা ভােব �যাইল ্া কো, একই সােথ
িসেল�া সমূহেক কমা িদেয় িলেখ �যাইল
ি্ধরাাণ কােল েকাড অে্ক কম হেব।
81. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
80
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
h1,h2,p{color:#333;
font-family:Tahoma;
text-align:justify;}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<h2>Reliable & Fast Web Hosting</h2>
<p>
We are relaibale Bangladeshi hosting provider. The world wide
technical and support team is working for your best movement.
We are dedicated with client requrement. You can host your
huge data of your company with our secured and hacking proof
server. We are taking care of more than 1000 bangladeshi
websites and their huge information.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
82. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
81
ে্ি�ং িসেল�া (Nesting Selector)
িস এস এস এ একিট িসেল�োা অ�ভূর� অপর
একিট িসেল�োা জ� �যাইল ি্ধরাাণ কাাা
ে�ে� ে্ি�ং িসেল�া বযবহাা কাা হয়।ধাা
যাক �যাইল শীেট পযাাা�াফ P এর জ�
�যাইল ি্ধরাাণ কাা হল। rap ্ােমা id িবিশ�য
একটা div উপাদাে্া মেধয অপর একটা
পযাাা�াফ আেছ। rap এর জ�ও �যাইল
ি্ধরাাণ কাা হল। এখন যিদ rap মেধয অবি�ত
পযাাা�াফিটা জ� অলাদা �যাইল ৈতিা কাাা
�েয়াজ্ হয় তাহেল ে্ি�ং িসেল�া বযবহাা
কােত হয়। এজ� িসেল�ো িলখেত হেব rap p
।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;}
p{color:#333;
font-family:Tahoma;
text-align:justify;}
#rap{
background:#00bbaa;
padding:15px;}
#rap p{color:#F00;}
</style>
</head>
<body >
<p>www.tutohost.com</p>
<h2>Reliable & Fast Web Hosting</h2>
<p>
We are relaibale Bangladeshi hosting provider. The world wide
technical and support team is working for your best movement.
We are dedicated with client requrement. </p>
<div id="rap">
<h2>24/7 World Class Support</h2>
<p>Reliable and fast server is here. You will get 99.99% uptime
guaranty. Many Bangladeshi techie people have no ability to
make their site with huge taka. So we are also offering Free
hosting plan.</p>
83. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
82
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ডাইেম্শ্ (Dimention)
েকা্ HTML উপাদাে্া �� এবং উ�তা ি্য়�েণা
জ� িস এস এস এ ডাইেম্শ্ বযবহাা কাা হয়।িস
এস এস এ ডাইেম্শ্ ি্ধরাােণা জ� েবশ িকছু
ে�াপািটর বযবহাা কাা হয়।এগুেলা হে�, height,
width, max-height, max-width, min-width,
min-height ।
84. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
83
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background: #FFC}
h2{height:50px;
background:#C30;}
p{max-height:100px;
max-width:250px;
background:#C03}
h3{background:#C60;
margin-left:150px;}
#main{min-height:350px;
min-height:250px;
background:#F99;
padding:10px;}
</style>
</head>
<body >
<h2>This is an example of Box Model.</h2>
<p>We are bangladeshi Hostgator hosting provider. The world
wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. </p>
<h3>24/7 World Class Support</h3>
<p id="main">Reliable and fast server is here. You will get
99.99% uptime guaranty. Many Bangladeshi techie people have
no ability to make their site with huge taka. So we are also
offering Free hosting plan.</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
85. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
84
েকািডং িবে�ষণ:
�থম পযাাা�াফিটা ে�ে� max-height:100px; এবং max-width:250px; ফেল �থম
পযাাা�াফিটা জ� েয ডাইেম্শ্ উে�খ কাা হেয়েছ সম� েলখাা জ� তা যেথ� ্য়, এজ�
বযাক�াউনড কালাা ডাইেম্শ্ অনুযায়ী �দিশরত হে�, িক� েলখা বযাক�াউনড অিত�ম কো েগেছ।
24/7 World Class Support েলখািটা িকছু অংশ �থম পযাাা�াফিটা মেধয �েবশ কোেছ।িক�
24/7 World Class Support েলখািট �থম পযাাা�াফিটা পো �দিশরত হওয়া উিচৎ। কাাণ �কৃত
অেথর �থম পযাাা�াফিটা বযাক�াউনড েযখাে্ েশষ হেয়েছ, �াাা�াফিটও ঐ �াে্ই েশষ হেয়
িগেয়েছ, েয কাােণ World Class Support েলখািট সিঠক �াে্ শুরু হেলও এর িকছু অংশ �থম
পযাাা�াফিটা মেধয �েবশ কোেছ।
ি�তীয় পযাাা�াফিটা ে�ে� বযাক�াউন্ড অে্ক ি্েচ পযর� �দশর্ কােছ কাাণ এ পযাাা�াফিটা
জ� min-height:350px; ি্ধরাাণ কাা হেয়েছ যা পযাাা�াফিটা েট�ট এর উ�তাা েচেয় অে্ক
েবিশ।
94. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
93
background:#F63;
color:#CFF; }
tr.col:hover{visibility:collapse;}
</style>
</head>
<body >
<table>
<tr>
<td>HTML</td>
<td>CSS</td>
<td>PHP</td>
</tr>
<tr class="col">
<td>Text</td>
<td>Audio</td>
<td>Video</td>
</tr>
</table>
<h2>Please put your mouse pointer on text/audio/video.</h2>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অব�া্ (Positioning)
ওেয়ব েপেজ িবিভ� HTML উপাদা্ সমূহ েকাথায় িকভােব �দিশরত
হেব তা �কাশ কাাা জ� position ে�াপািটর বযবহাা কাা হয়। এর
সােথ top, bottom, left, and right ে�াপািটর সমূহ বযবহাা কো
েকা্ HTML উপাদাে্া �কৃত অব�া্ ি্ধরাাণ কাা হয়।
95. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
94
position ে�াপািটরা চাা ধােণা মা্ হেত পাো। এগুেলা হে�,
পিজশ্ �যািটক (position:static)
পিজশ্ িফ�ড (position:fixed)
পিজশ্ িােলিটভ (position:relative)
পিজশ্ এবসিলউট (position:absolute)
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h1 {
color:#F09;
background:#CC9;
padding:10px;
border:#960 1px solid; }
#static{
position:static;
left:100px;
top:70px;}
#absolute{position: absolute;
left:150px;
top:100px;}
#fixed{position: fixed;
left:0px;
top:70px;}
#relative{position: relative;
left:150px;
top:100px;}
p{background:#FCF;
padding:10px;
border:#F09 1px solid;}
</style>
</head>
<body >
<h1 id="static">Position static</h1>
<h1 id="absolute">Position absolute</h1>
<h1 id="fixed">Position fixed</h1>
<h1 id="relative">Position relative</h1>
<p>We are bangladeshi Hostgator hosting provider. The world
wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
96. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
95
world wide technical and support team is working for your best
movement. </p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
পিজশ্ �যািটক (position:static)
েকা্ একিট HTML উপাদাে্া পিজশ্ ে�াপািটর যিদ �যািটক কো
েদওয়া হয়; তাহেল তা HTML উপাদা্ সমূেহা সাধাাণ এবং �ভািবক
পিজশ্ ি্েদরশ কােব। এে�ে� top, bottom, left, and right ে�াপািটর
সমূহ িড�াোশ্ কােলও এ অনুযায়ী েকা্ কাজ হেব ্া; অথরাৎ top,
bottom, left, and right ে�াপািটর সমূহ ি্ি�য় হেয় যােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC;}
h1{color:#F06;
background:#CC9;
border:#960 1px solid;
97. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
96
padding:10px;
position:static;
top:30px;
leftt:5px; }
p{ margin-top:100px;
background:#FCF;
border:#F0F 1px solid;
padding:10px;
text-align:justify;}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p>We are bangladeshi Hostgator hosting provider. The world
wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
98. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
97
পিজশ্ িফ�ড (position:fixed)
েকা্ একিট HTML উপাদা্েক মি্টা ি�ে্া সােপে� েকা্ ি্িদর�
�াে্ ি�াভােব �াপ্ কাাা জ� পিজশ্ িফ�ড বযবহাা কাা হয়। এজ�
�থেম position:fixed; িড�াোশ্ কো, এর পর top, bottom, left, and
right ে�াপািটর সমূহ িড�াোশ্ কােত হয়।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background: #FFC}
h1{color:#F06;
background:#CC9;
border:#960 1px solid;
padding:10px;
position:fixed;
top:30px;
leftt:5px; }
p{ margin-top:100px;
background:#FCF;
border:#F0F 1px solid;
padding:10px;
text-align:justify;}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p>We are bangladeshi Hostgator hosting provider. The world
wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
</body>
</html>
99. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
98
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
�ল কােলও www.tutohost.com েলখািটা অব�াে্া েকা্ পিাবতর্ হয় ্া।
পিজশ্ িােলিটভ (position:relative)
HTML উপাদা্ সমূেহা �াভািবক অব�াে্া সােপে� top, bottom,
left, and right ে�াপািটর বযবহাোা মাধযেম েকা্ ব�া অব�া্
ি্ধরাােণা জ� িােলিটভ পিজশ্ ে�াপািটর বযবহাা কাা হয়। পিজশ্
ে�াপািটর যিদ �যািটক কো েদওয়া হয়, তাহেল তা HTML উপাদা্
সমূেহা সাধাাণ এবং �ভািবক পিজশ্ ি্েদরশ কো, িক� পিজশ্
িােলিটভ এবং পিজশ্ �যািটক ে�াপািটরা মেধয পাথরকয হে� পিজশ্
�যািটক ে�াপািটরা ে�ে� top, bottom, left, and right ে�াপািটর সমূহ
ি্ি�য় থােক; আর পিজশ্ িােলিটভ ে�াপািটরা ে�ে� top, bottom,
left, and right ে�াপািটর সমূেহা মাধযেমই েকা্ ব�া অব�া্ ি্েদরশ
কাা হয়।
পিজশ্ িােলিটভ ে�াপািটরা ে�েত সকল িহসাব শুরু হয় ঐ উপাদা্িটা �াভািবক অব�া্ েথেক।
অথরাৎ পিজশি্ং ্া কাা হেল উপাদা্িট েয �াে্ অব�া্ কােতা েসখা্ েথেক।
100. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
99
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC; }
h3 {
color:#F09;
background:#CC9;
padding:10px;
border:#960 1px solid;
width:370px; }
#right{position:relative;
left:100px;}
#left{position:relative;
right:100px; }
#down{position:relative;
top:150px;}
</style>
</head>
<body >
<h1>Normal Position</h1>
<h1 id="right">Position 100px right from Normal Position.
</h1>
<h1 id="left">Position 100px left from Normal Position. </h1>
<h1 id="down">Position 150px down from Normal
Position.</h1>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
101. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
100
পিজশ্ এবসিলউট (position:absolute)
HTML উপাদা্ সমূেহা �কৃত অব�া্ ি্ধরাােণা জ� পিজশ্
এবসিলউট ে�াপািটর বযবহাা কাা হয়। েকা্ একিট HTML
উপাদাে্া পিজশ্ ে�াপািটর যিদ এবসিলউট কো েদওয়া হয়
তাহেল তাা অব�া্ �ভািবক �েম ি্েদরিশত হয় ্া, এে�ে� top,
bottom, left, and right ে�াপািটর সমূেহা মাধযেম ঐ উপাদা্িটা
অব�া্ ি্ধরািাত হয়। এে�ে� অ� একিট উপাদাে্া উপোও
ওভাালযাপ কো ঐউপাদা্িটা অব�া্ ি্ধরাাণ কাা স�ব হয়।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h1
{position:absolute;
left:100px;
top:70px;
color:#F09;
background:#CC9;
padding:10px;
border:#960 1px solid;
}
p{background:#FCF;
padding:10px;
border:#F09 1px solid;}
</style>
</head>
<body >
<h1>www.tutohost.com</h1>
<p>We are bangladeshi Hostgator hosting provider. The world
wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. </p>
</body>
</html>
102. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
101
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ওভাা ে�া (Overflow)
top, left, height,width, padding, border ইতযািদ
ে�াপািটর বযবহাা কো একিট ব� িডজাই্ কাাা পর
যিদ বে�া আকাা �েয়াজ্ীয় ক্েটনট এর আকৃিতা
েচেয় েছাট হয়, তাহেল বাড়িত ক্েটনট িকভােব �দিশরত
হেব তা ওভাা ে�া ে�াপািটরা মাধযেম ি্ধরাাণ কাা হয়।
ওভাা ে�া ে�াপািটরা েবশ িকছু মা্ হেত পাো তাা
মেধয উে�খেযাগয হে�,
ওভাা ে�া িভিজবল (overflow:visible)
ওভাা ে�া িহেড্ (overflow:hidden)
ওভাা ে�া অেটা (overflow:auto)
ওভাা ে�া �ল(overflow:scroll)
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h3{color:red;}
p{background:#FCF;
left:100px;
103. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
102
top:70px;
height:90px;
width:350px;
padding:10px;
border:#F09 1px solid;}
#visible{overflow:visible;
margin-bottom:60px;}
#hidden{overflow:hidden;}
#auto{overflow:auto;}
#scroll{overflow:scroll;}
</style>
</head>
<body >
<h3> This is an example of visible overflow</h3>
<p id="visible">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. </p>
<h3> This is an example of hidden overflow</h3>
<p id="hidden">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
<h3> This is an example of auto overflow</h3>
<p id="auto">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
<h3> This is an example of scroll overflow</h3>
<p id="scroll">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
</body>
</html>
104. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
103
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
105. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
104
ওভাা ে�া িভিজবল (overflow:visible)
ওভাা ে�া ে�াপািটরা মা্ িভিজবল কােল top,
left, height,width, padding, border ইতযািদ
ে�াপািটর বযবহাা কো একিট ব� িডজাই্ কাাা
পর যিদ বে�া আকাা �েয়াজ্ীয় ক্েটনট এর
আকৃিতা েচেয় েছাট হয়, তাহেল বাড়িত ক্েটনট
বে�া বাইো �দিশরত হেব।
েযম্ একটা p এর জ� ব� িডজাই্ কাা হল
এখন এর অ�ভূর� েট�ট এর এিায়া বে�া এিায়া
এর েচেয় বড় হেল এর �াইল িসেট ওভাা ে�া
ে�াপািটরা মা্ িভিজবল (overflow:visible;)
কােল বাড়িট েট�ট এর ওভাা ে�া িভিজবল হেব,
অথরাৎ বে�া বাইো �দিশরত হেব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h3{color:red;}
p{background:#FCF;
left:100px;
top:70px;
height:90px;
width:350px;
padding:10px;
border:#F09 1px solid;}
#visible{overflow:visible;}
</style>
</head>
<body >
<h3> This is an example of visible overflow</h3>
<p id="visible">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement. </p>
</body>
</html>
106. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
105
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ওভাা ে�া িহেড্ (overflow:hidden)
ওভাা ে�া ে�াপািটরা মা্ িহেড্ কােল top, left,
height,width, padding, border ইতযািদ ে�াপািটর বযবহাা
কো একিট ব� িডজাই্ কাাা পর যিদ বে�া আকাা
�েয়াজ্ীয় ক্েটনট এর আকৃিতা েচেয় েছাট হয়, তাহেল
বাড়িত ক্েটনট �দিশরত হেব ্া।
েযম্ একটা p এর জ� ব� িডজাই্ কাা হল এখন এর
অ�ভূর� েট�ট এর এিায়া বে�া এিায়া এর েচেয় বড় হেল এর
�াইল িসেট ওভাা ে�া ে�াপািটরা মা্ িহেড্ (overflow:hidden;) কােল বাড়িট েট�ট এর ওভাা
ে�া হাইড হেব, অথরাৎ বাড়িট েট�ট �দিশরত হেব ্া।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h3{color:red;}
p{background:#FCF;
left:100px;
top:70px;
107. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
106
2Theight:90px;2T
2Twidth:350px;2T
2Tpadding:10px;2T
2Tborder:#F09 1px solid;}2T
2Tmargin-bottom:60px;}2T
2T#hidden{overflow:hidden;}2T
2T</style>2T
2T</head>2T
2T<body >2T
2T<h3> This is an example of hidden overflow</h3>2T
2T<p id="hidden">2T
2TWe are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>2T
2T</body>2T
2T</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ওভাা ে�া অেটা (overflow:auto)
ওভাা ে�া ে�াপািটরা মা্ অেটা কােল top, left,
height,width, padding, border ইতযািদ ে�াপািটর
বযবহাা কো একিট ব� িডজাই্ কাাা পর যিদ বে�া
আকাা �েয়াজ্ীয় ক্েটনট এর আকৃিতা েচেয় েছাট হয়,
তাহেল বে�া মেধয �লবাা েদখা যােব এবং বাড়িত
ক্েটনট �লবাা েটে্ েদখা যােব।আা যিদ বে�া
আকাা �েয়াজ্ীয় ক্েটনট এর আকৃিতা েচেয় বড় হয়
তাহেল �লবাা েদখা যােব ্া।
108. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
107
েযম্ একটা p এর জ� ব� িডজাই্ কাা হল এখন এর অ�ভূর� েট�ট এর এিায়া বে�া এিায়া এর
েচেয় বড় হেল এর �াইল িসেট ওভাা ে�া ে�াপািটরা মা্ অেটা (overflow:auto;) কােল বে�া
মেধয �লবাা েদখা যােব বাড়িট েট�ট �লবাা েটে্ েদখা যােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h3{color:red;}
p{background:#FCF;
left:100px;
top:70px;
height:90px;
width:350px;
padding:10px;
border:#F09 1px solid;}
#auto{overflow:auto;}
</style>
</head>
<body >
<h3> This is an example of auto overflow</h3>
<p id="auto">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
109. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
108
ওভাা ে�া �ল (overflow:scroll)
ওভাা ে�া ে�াপািটরা মা্ অেটা কােল top, left,
height,width, padding, border ইতযািদ ে�াপািটর বযবহাা
কো একিট ব� িডজাই্ কাাা পর বে�া আকাা
�েয়াজ্ীয় ক্েটনট এর আকৃিতা েছাট বা বড় যাই েহাক ্া
েক্ বে�া মেধয �লবাা েদখা যােব।
েযম্ একটা p এর জ� ব� িডজাই্ কাা হল এখন এর
অ�ভূর� েট�ট এর এিায়া বে�া এিায়া এর েচেয় েছাট বা
বড় যাই েহাক ্া েক্ �াইল িসেট ওভাা ে�া ে�াপািটরা মা্
(overflow:scroll) কােল বে�া মেধয �লবাা েদখা যােব
বাড়িট েট�ট থাকেল তা �লবাা েটে্ েদখা যােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h3{color:red;}
p{background:#FCF;
left:100px;
top:70px;
height:90px;
width:350px;
padding:10px;
border:#F09 1px solid;}
#scroll{overflow:scroll;}
</style>
</head>
<body >
<h3> This is an example of scroll overflow</h3>
<p id="scroll">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.We are bangladeshi Hostgator hosting provider. The
world wide technical and support team is working for your best
movement.</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
111. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
110
<body >
<h3> This is an example of clip image.</h3>
<a href="www.tutohost.com"><img
id="clip"src="http://www.tutohost.com/bangla/css/images/pic/cl
ip.png"/></a>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অেটা ি�প
েকা্ HTML উপাদাে্া স�ূণর অংশ �দশর্ কাাা জ�
ি�প ে�াপািটর মা্ অেটা বযবহাা কাা হয়। এজ�
Declaration কােত হয় clip:auto; । এিট েকা্
ইেমেজা বা েকা্ HTML উপাদাে্া িডফ� ি�প মা্।
োকেটংগুলাা ি�প
েকা্ HTML উপাদাে্া স�ূণর অংশ �দশর্ ্া কো িবেশষ েকা্ অংশ �দশর্ কাাা জ� ি�প
ে�াপািটর মা্ োকেটংগুলাা ফােম েদয়া হয়। এজ� Declaration কােত হয়
clip:rect(20px,100px,200px,30px); এর অনুরূপ। এখাে্ 20px �কাশ কো উপর েথেক কতটুক
অংশ ি�প হেব, 100px �কাশ কো বাম েথেক ডাে্ 100px এর পোা বাঁকী অংশ ি�প হেব, 100px
�কাশ কো উপর েথেক ি্েচ 200px এর পোা বাঁকী অংশ ি�প হেব, 30px �কাশ কো বাম িদেক
শুরু েথেক 30px ি�প হেব।
112. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
111
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
#auto{
position:absolute;
top:50px;
clip:auto;}
#rect {
position:absolute;
top:350px;
clip:rect(20px,200px,200px,20px);}
</style>
</head>
<body >
<h3> This is an example of auto clip image.</h3>
<img
id="auto"src="http://www.tutohost.com/bangla/css/images/pic/2
2cc.png"/>
<h3 style=" position:absolute; top:320px;"> This is an example
of rect clip image.</h3>
<img id="rect"
src="http://www.tutohost.com/bangla/css/images/pic/22cc.png"/
>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
114. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
113
z-index:4; }
</style>
</head>
<body >
<h1>This is an example of Z-index.</h1>
<div id="box1"><h2>First box. Z-index 1</h2></div>
<div id="box2"><h2>Second box. Z-index 2</h2></div>
<div id="box3"><h2>Third box. Z-index 3</h2></div>
<div id="box4"><h2>Forth box. Z-index 4</h2></div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
115. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
114
ে�ািটং (Floating)
ওেয়ব েপেজা েল-আউট ৈতিাা ে�ে� েপেজা
িবিভ� উপাদা্েক ডা্িদেক এবং বামিদেক
াাখাা �েয়াজ্ পো। এে�ে� �ট (Float)
বযবহাা কাা হয়। েকা্ উপাদা্েক বামিদেক
�াপ্ কাাা জ� Declaration কােত হয়
float:left; আর বামিদেক �াপ্ কাাা জ�
Declaration কােত হয় float:right; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
text-align:justify;}
div{width:180px;
border:#F5D349 10px solid;
padding:8px;
background:#FEEFB3;
outline:#F60 1px solid;}
#first{float:left;}
#second{float:right;}
</style>
</head>
<body >
<div id="first">
<h2 style="color:#C33;">Float Left <br />First Box.</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
<div id="second">
<h2 style="color:#C33;">Float Right<br /> Second Box.</h2>
116. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
115
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
বাম িদেক �ট(float:left)
ওেয়ব েপেজা েল-আউট ৈতিাা ে�ে� অে্ক
সময় সাইডবাােক মূল কেনটনট বে�া িঠক
বামিদেক াাখাা �েয়াজ্ পো।এে�ে� বাম
িদেক �ট কােত হয়। �থেম সাইডবাােক োেখ
উভয় ব�েক বাম িদেক �ট কােত হয়। এজ�
উভয় বে�া জ� Declaration কােত হয়
float:left;। �থেম সাইডবাােক াাখাা জ�
সাইডবাা এর অব�া্ হেব সবরবােম।
117. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
116
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
text-align:justify;}
div{width:180px;
height:310px;
margin:3px;
border:#F99 10px solid;
padding:8px;
background:#ddEFB3;
outline:#F60 1px solid;}
#first{float:left;}
#second{float:left;}
</style>
</head>
<body >
<div id="first">
<h2 style="color:#C33;">Sidebar</h2>
<hr>
<ul>
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">PHP</a></li>
<li><a href="#">Wordpress</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Tutorials</a></li>
</ul>
</div>
<div id="second">
<h2 style="color:#C33;">Main Content</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
118. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
117
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ডা্ িদেক �ট(float:right)
ওেয়ব েপেজা েল-আউট ৈতিাা ে�ে�
অে্ক সময় সাইডবাােক মূল কেনটনট
বে�া িঠক ডা্িদেক াাখাা �েয়াজ্
পো। িবেশষ কো ওয়াডরে�স এর জ�
েটমে�ট িডজাইে্া ে�ে� সাধাাণত
সাইডবাােক ডা্ িদেক াাখা হয়। এে�ে�
ডা্ িদেক �ট কােত হয়। �থেম
সাইডবাােক োেখ উভয় ব�েক ডা্ িদেক
�ট কােত হয়, এজ� উভয় বে�া জ�
Declaration কােত হয় float:right;।
�থেম সাইডবাােক াাখাা জ� সাইডবাা
এর অব�া্ হেব সবরডাে্।
119. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
118
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
text-align:justify;}
div{width:180px;
height:310px;
margin:3px;
border:#099 10px solid;
padding:8px;
background:#C9F;
outline:#F60 1px solid;}
#first{float:right;}
#second{float:right;}
</style>
</head>
<body >
<div id="first">
<h2 style="color:#C33;">Sidebar </h2>
<hr>
<ul>
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">PHP</a></li>
<li><a href="#">Wordpress</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Tutorials</a></li>
</ul>
</div>
<div id="second">
<h2 style="color:#033;">Main Content</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
120. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
119
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
�িটং �াাা পযাাা�ােফ ইেমেজা অব�া্ ি্েদরশ
ে�ািটং �াাা েয ওেয়ব েপেজা div তথা
আয়তাকাা খনড সমূহ এর অব�া ি্ধরাাণ কাা হয়
এম্টা ্য়, আমাা যখন ওেয়ব েপেজ ক্েটনট
যু� কিা তখন পযাাা�ােফা মেধয ডাে্ বা বােম
ইেমজ বযবহাা কো থািক এে�ে�ও ে�ািটং
বযবহাা কাা হেয় থােক।েকা্ ইেমজেক যিদ
েকা্ পযাাা�ােফা সবরবােম �াপ্ কােত হয়
তাহেল �থেম ইেমজ টযাগ াাখেত হেব এবং
তাাপা পযাাা�াফ াাখেত হেব এবং শুধুমা�
ইেমজ টযােগা �যাইল িসেট েলখেত হেব
img{float:left;}।অনুরূপভােব েকা্ ইেমজেক
পযাাা�ােফা সবরডাে্ �াপ্ কাাা �েয়াজ্ হয়
তাহেলও �থেম ইেমজ োেখ ইেমজ টযােগা
�যাইল িসেট েলখেত হেব img{float:right;}।
121. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
120
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
text-align:justify;}
div{width:380px;
margin:3px;
border:#F99 10px solid;
padding:8px;
background:#ddEFB3;
outline:#F60 1px solid;}
img{width:150px; height:150px;
margin:5px;
border:#C30 1px solid;}
#second{float:left;}
#right{float:right;}
#left{float:left;}
</style>
</head>
<body >
<div id="second">
<h2 style="color:#C33;">Main Content</h2>
<hr>
<img id="right"
src="http://www.tutohost.com/bangla/css/images/pic/22hh.png"
width="150px" height="150px" />
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p><br />
<img id="left"
src="http://www.tutohost.com/bangla/css/images/pic/22hh.png"
/>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
122. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
121
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
এলাই্ (Align)
ওেয়ব েপেজা েল-আউট ৈতিাা ে�ে� এলাই্ অতয�
গুরু�পূণর িবষয়। একটা ওেয়ব েপেজ ওেয়ব সাইটিট
েকা্ িদেক �দিশরত হেব ডা্ িদেক বাম িদেক ্া
মাঝখাে্ তা েযম্ এলাই্ কো ি্ধরাাণ কাা হয়,
এছাড়া সাইডবাা ে্িভেগশ্ বাা, ফুটাা, েহডাা
ইেমেজা পিজশ্ও এলাই্ কো ি্ধরাাণ কাা হয়।
এলাই্ কাাা েবশ িকছু প�িত ােয়েছ। েযম্;
123. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
122
• মািজর্ ে�াপািটর �াাা এলাই্
• পিজশ্ ে�াপািটর �াাা এলাই্
• �ট ে�াপািটর �াাা এলাই্
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
color:#066;
text-align:justify;}
div{width:200px;
height:250px;
border:#099 10px solid;
padding:8px;
outline:#063 1px solid;}
#rap1{background:#F99;
margin-left:auto;
margin-right:auto;}
#rap2{background:#C9F;
position:absolute;
left:0px;}
#rap3{background:#b0e0e6;
float:right;
right:0px;}
</style>
</head>
<body >
<div id="rap1">
<h2 style="color:#666;">Center align</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
<br />
<div id="rap2">
<h2 style="color:#666;">Left align</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
124. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
123
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
<div id="rap3">
<h2 style="color:#666;">Right align</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
125. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
124
মািজর্ ে�াপািটর �াাা েসনটাা এলাই্
েয েকা্ ভাল একিট ওেয়ব েটমে�ট েখয়াল কােল েদখা
যায়, েটমে�টিট �াউজাো �দশর্ কােল িঠক মাঝখাে্
�দশর্ কো, একটা ওেয়ব সাইটেক সু�া ভােব
�দশরে্া জ� িবষয়িট খুবই গুরু�পূণর।মািজর্ ে�াপািটর
বযবহাা কো েসনটাা এলাই্ কাাা মাধযেম এর
গুরু�পূণর কাজিট কাা হয়।েকা্ ওেয়ব সাইটেক
�াউজাো িঠক মাঝখাে্ �দশর্ কাাা জ� �যাইল
িসেট উে�খ কােত হয়, margin-left:auto; margin-
right:auto; ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
color:#066;
text-align:justify;}
div{width:400px;
height:280px;
border:#099 10px solid;
padding:8px;
background:#b0e0e6;
outline:#063 1px solid;}
#rap{margin-left:auto;
margin-right:auto;}
</style>
</head>
<body >
<div id="rap">
<h2 style="color:#666;">Main Content</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
126. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
125
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
পিজশ্ �পািটর �াাা েলফট বা াাইট এলাই্
ওেয়ব সাইেটা েটমে�ট এর েসৗ�যর অে্কাংেশ
ি্ভরা কো সাইডবাোা উপা। সাইডবাা িটেক
সাধাাণত সাইেটা ক্েটনট এিায়াা ডা্িদেক
অথবা বাম িদেক াাখা হয়। আবাা অে্ক ে�ে�
একািধক সাইডবাাও বযবহাা কাা হয়।সাইডাা
এলাইে্া িবষয়িটও তাই একজন ওেয়ব
িডজাই্াােক েবশ সতকরতাা সােথ কােত হয়। এ
কাজিট সিঠকভােব কাা ্া হেল িবিভ� �াউজাো
বা িবিভ� সাইেজা মি্টো সাইেটা সাইডবাোা
অব�া্ পিাবিতরত হেয় েযেত পাো।সাইড বাা
127. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
126
তথা েকা্ div উপাদা্েক পিজশ্ ে�াপািটর বযবহাা কো েলফট বা াাইট এলাই্ কাা যায়। েলফট
এলাই্ কাাা জ� �যাইল িসেট উে�খ কােত হেব position:absolute; left:0px; অনুরূপভােব
াাইট এলাই্ কাাা জ� �যাইল িসেট উে�খ কােত হেব position:absolute; right:0px;।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
color:#066;
text-align:justify;}
div{width:400px;
height:310px;
border:#099 10px solid;
padding:8px;
outline:#0631px solid;}
#rap{background:#C9F;
position:absolute;
left:0px;}
</style>
</head>
<body >
<div id="rap">
<h2 style="color:#666;">Main Content</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
129. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
128
font-size:13px;
color:#066;
text-align:justify;}
div{width:400px;
height:310px;
border:#099 10px solid;
padding:8px;
outline:#0631px solid;}
#rap{background:#b0e0e6;
float:right;
right:0px;}
</style>
</head>
<body >
<div id="rap">
<h2 style="color:#666;">Main Content</h2>
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
130. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
129
কাসরাা ইেফ� (cursor effect)
িস এস এস বযবহাা কো সহেজই িবিভ� উপাদাে্া জ�
িবিভ� ধােণা মাউস এর কাসরাা ইেফ� ৈতিা কাা যায়।
তাহেল মাউসিটেক ঐ উপাদাে্া উপর ি্েয় েগেল মাউস
পেয়নটাোা আকৃিত পিাবিতরত হেব।এজ� �যাইল শীেট
Declaration কােত হেব cursor:move এর অনুরূপ।
এখাে্ move এর পিাবেতর auto, crosshair, e-resize,
move,default,help,n-resize,ne-resize,nw-
resize,pointer, wait ,progress,s-resize, se-
resize,sw-resize, w-resize ,text বযবহাা কাা যােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;
font-family:Arial, Helvetica, sans-serif;
color:#066;}
</style>
</head>
<body >
<h2 style="cursor:auto">Touche me and see auto mouse
effect</h2>
<h2 style="cursor:help">Touche me and see help mouse
effect</h2>
<h2 style="cursor:s-resize">Touche me and see s-resize mouse
effect</h2>
<h2 style="cursor:e-resize">Touche me and see e-resize mouse
effect</h2>
<h2 style="cursor:progress">Touche me and see progress
mouse effect</h2>
<h2 style="cursor:move">Touche me and see move mouse
effect</h2>
<h2 style="cursor:crosshair">Touche me and see crosshair
mouse effect</h2>
<h2 style="cursor:default">Touche me and see default mouse
effect</h2>
<h2 style="cursor:wait">Touche me and see wait mouse
effect</h2>
<h2 style="cursor:n-resize">Touche me and see n-resize mouse
effect</h2>
<h2 style="cursor:nw-resize">Touche me and see nw-resize
131. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
130
mouse effect</h2>
<h2 style="cursor:ne-resize">Touche me and see ne-resize
mouse effect</h2>
<h2 style="cursor:pointer">Touche me and see pointer mouse
effect</h2>
<h2 style="cursor:se-resize">Touche me and see se-resize mouse
effect</h2>
<h2 style="cursor:sw-resize">Touche me and see sw-
resize</h2>
<h2 style="cursor:text">Touche me and see text mouse
effect</h2>
<h2 style="cursor:w-resize">Touche me and see w-resize mouse
effect</h2>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব। এবং �িতটা লাইে্া উপা
মাউস াাখেল িভ� িভ� আকাা ধাাণ কােব।
132. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
131
চাই� িসেল�া (child selector )
একিট ভাল িস এস এস �যাইল শীট ৈতিাা জ�
চাই� িসেল� িবষয়িট স�েকর ে�া�ামাােক
অব�ই ভাল ধাাণা থাকেত হেব।আমাা HTML
এএকিট টযােগা মেধযই অ� আোা িকছু টযাগ
বযবহাা কো থািক েযম্,
<div><h2></h2><p></p></div> এে�ে�
�যাইল শীেট div এর চাই� িসেল�া হেব p এবং
h2 । �যাইল শীেট p এর জ� চাই� িসেল�া
িলখেত হেব div>p । তাহেল div>p এর জ�
�যাইল ি্ধরাাণ কাা হেল শুধুমা� p এর জ�ই
�যাইল ি্ধরািাত হেব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
div>p{font-family:Arial, Helvetica, sans-serif;
color:#066;
background:#FCC;
border:#F39 5px solid;
padding:10px;}
</style>
</head>
<body >
<div>
<h2>www.tutohost.com</h2>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
134. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
133
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p:first-child{
font-family:Arial, Helvetica, sans-serif;
color:#066;
background:#FCC;
border:#F39 5px solid;
padding:10px;}
</style>
</head>
<body >
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
<h2>www.tutohost.com</h2>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
135. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
134
এংকা িসউেডা �াস (Anchor Pseudo class)
সাধাাণত HTML এ িলংক ৈতিাা জ� এংকা
টযাগ(<a></a>) বযবহাা কাা হয়। িস এস এস বযবহাা
কো �যাইল ৈতিাা জ� �যাইল শীেট িসেল�া
িহেসেব a বযবহাা কাা হয়। িক� একিট িলংেকা চাািট
িভ� অব�া হেত পাো যা শুধু মা� িসেল�া িহেসেব a
বযবহাা কো ি্েদরশ কাা যায় ্া। এজ� এংকা
িসউেডা �াস বযবহাা কাা হয়; েযম্ a:link ,
a:visited, a:hover এবং a:active ।
• a:link িসেল�া ি্েদরশ কো �থমবাা
বযবহাা ্া কাা পযর� িলংকিট িকভােব �দিশরত হেব।
• a:visited িসেল�া ি্েদরশ কো িলংকিট একবা একািধক বাা বযবহাা কাা হেল এবং িলংেকা
উপর মাউস ্া াাখেল িলংকিট িকভােব �দিশরত হেব।
• a:hover িসেল�া ি্েদরশ কো িলংকিট বযবহাা কাা েহাক বা ্া েহাক, িলংেকা উপর মাউস
্া াাখেল িলংকিট িকভােব �দিশরত হেব।
• a:active িসেল�া ি্েদরশ কো িলংকিটেত মাউস ি�ক কাাা মূহেতর িলংকিট িকভােব �দিশরত
হেব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
a:link {color:#F00;}
a:visited {color:#303}
a:hover {color: #fff;}
a:active {color:#960;}
#nav ul li {float:left; list-style:none;}
#nav ul li a {padding:10px; display:block; text-decoration:none;}
#nav ul li a:link{background:#FCC;}
#nav ul li a:hover{background:#F60;}
#nav ul li a:hover { background: #639}
#nav ul li a:active { background:#39F;}
</style>
</head>
<body >
<a href="www.tutohost.com"><h1>This is a
Link.</h1></a><br>
<div id="nav">
136. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
135
<ul>
<li><a href="www.tutohost.com"><h2>HTML</h2></a></li>
<li><a href="www.tutohost.com"><h2>CSS </h2></a></li>
<li><a href="www.tutohost.com"><h2>PHP</h2></a></li>
<li><a
href="www.tutohost.com"><h2>Wordpress</h2></a></li>
</ul>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ফা� চাই� িসউেডা �াস (First child Pseudo-class)
একটা িসেল�োা আনডাো অে্কগুেলা একই ইিলেমনট এর চাই�
িসেল�া থাকেত পাো। েযম্
<body><p></p><h2></h2><p></p></body> এখাে্
body এর মেধয দুইিট p চাই� িহেসেব আেছ। এখন যিদ শুধুমা�
�থম p এর জ� �যাইল ৈতিা কােত চাওয়া হয় তাহেল p এর
ফা� চাই� িসউেডা �াস িসেল�া বযবহাা কােত হেব; েযম্
p:first-child ।
137. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
136
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p:first-child{
font-family:Arial, Helvetica, sans-serif;
color:#066;
background:#FCC;
border:#F39 5px solid;
padding:10px;}
</style>
</head>
<body >
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
<h2>www.tutohost.com</h2>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
138. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
137
শুধুমা� �থম p েত �যাইল যু� হেয়েছ। ি�তীয় p এর েকা্ পিাবতর্ হয় ি্।
লযা�ুেয়জ িসউেডা �াস (lang Pseudo-class)
েকা্ িবেশষ লযা�ুেয়জ বা ভাষায় িলিখত েকা্ লাই্ েক িবেশষ
েকা্ ি্য়েম বা িবেশষ উপােয় �দশরে্া জ� লযা�ুেয়জ িসউেডা
�াস বযবহাা কাা হয়। েযম্ “এই েলখািট বাংলা ভাষায়
েলখা।তাই এখাে্ েকােটশে্ দুিট �াা িচ� েদখা যােব।”
েলখািটা ডাবল েকােটশ্ (**) িচ� �াাা পিাবিতরত হেব।এজ�
�থেম HTML এেলখািটেক এর মেধয াাখােত হেব।q:lang(bn)
লযা�ুেয়জ িসউেডা �াস �াাা �যাইল শীেট িসেল� কো �যাইল
ি্ধরাাণ কো িদেত হেব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
q:lang(bn)
{
quotes:"**" "**";
color:#C06;
font-size:20px;
}
</style>
</head>
<body >
<p>This is a paragaph.<q lang="bn">এই েলখািট বাংলা ভাষায়
েলখা।তাই এখাে্ েকােটশে্ দুিট �াা িচ� েদখা যােব।</q> This is a
paragaph.</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
139. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
138
িশোা্ােম িসউেডা �ােসা বযবহাা
েকা্ একিট ওেয়ব েপেজ অে্কগুেলা আিটরেকল থাকেত পাো এবং
�েতযকিট আিটরেকেলা একিট কো মূল িশোা্াম থাকেত পাো।
এে�ে� শুধুমা� একটা মূল িশোা্ােমা জ� �যাইল ৈতিা
কােলই সব গুেলাা জ� �যাইল ৈতিা হেয় যােব এজ� িসউেডা
�াস বযবহাা কাা হয়। উদাহাণ �রূপ আিটরেকল গুেলা
<p></p> টযােগা মেধয াাখা হল।এখ্ মূল িশোা্াম ৈতিাা
জ� <b></b>বযবহাা কাা হল।যিদ b িসেল�া �াাা �যাইল ৈতিা
কাা হয় তাহেল, পযাা�ােফা মেধয আোা <b></b> থাকেত পাো
তাহেল তােদাও �যাইল ৈতিা হেয় যােব।তাই শুধুমা� িশোা্াম
তথা েযেকা্ <p></p> এর �থম <b></b> এর জ� �যাইল ৈতিা কাাা জ� িসেল�া ি্ধরাাণ
কােত হেব p > b:first-child ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p{font-family:Arial, Helvetica, sans-serif;
background:#9CF;
border:#F39 5px solid;
padding:10px;}
p > b:first-child
{color:red;
font-size:28px;}
</style>
</head>
<body >
<p>
<b>www.tutohost.com</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi <b>Hostgator</b> hosting
provider. The world wide technical and support team is working
for your best movement.
</p>
<p>
<b>www.tutohost.com</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi <b>Hostgator</b> hosting
provider. The world wide technical and support team is working
for your best movement.
</p>
140. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
139
<p>
<b>www.tutohost.com</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi <b>Hostgator</b> hosting
provider. The world wide technical and support team is working
for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
141. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
140
সাধাাণ িশোা্ােম িসউেডা �ােসা বযবহাা
েকা্ একিট ওেয়ব েপেজ অে্কগুেলা আিটরেকল থাকেত পাো এবং
�েতযকিট আিটরেকেলা একিট কো মূল িশোা্াম থাকেত
পাো।আিটরেকল গুেলা <p></p> টযােগা মাধযেম ৈতিা। িচ�া কাা
হল েয েপেজা শুরুেত একটা <p></p> টযাগ ি্েয় সকল িশোা্াম
গুেলা �দশর্ কাা হেব।িশোা্াম গুেলা <b></b> �াাা ৈতিা
।তাহেল �থম <p></p> এর সবগুেলা <b></b> এর জ� �যাইল
ৈতিা কােত হেব।এজ� �যাইলশীেট িসেল�া িহেসেব েলখেত হেব
p:first-child b। েপেজ আোা অে্ক <p></p> এবং এর মেধয
<b></b> থাকেত পাো েসগুেলাা জ� েকা্ �যাইল ৈতিা হেব ্া।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p{font-family:Arial, Helvetica, sans-serif;
background:#FCF;
font-size:12px;
border:#F39 5px solid;
padding:10px;}
p > b:first-child
{color:#366;
font-size:16px;}
p:first-child b
{color:#F00;
font-size:20px;}
</style>
</head>
<body >
<p>
<b>First Heading</b><br/ ><br/ >
<b>Second Heading</b><br/ ><br/ >
<b>Third Heading</b><br/ ><br/ >
</p>
<p>
<b>First Heading</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
world wide technical and support team is working for your best
movement.
</p>
<p>
<b>Second Heading</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
142. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
141
world wide technical and support team is working for your best
movement.
</p>
<p>
<b>Third Heading</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
world wide technical and support team is working for your best
movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
144. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
143
</head>
<body >
<h2>WWW.TUTOHOST.COM</h2>
<p>
www.tutohost.com.We are bangladeshi <b>Hostgator</b>
hosting provider. The world wide technical and support team is
working for your best movement. We are bangladeshi
<b>Hostgator</b> hosting provider. The world wide technical
and support team is working for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
�থম অ�া িসউেডা ইিলেমনট-(First letter Pseudoelement)
েকা্ পযাাা�ােফা বা েহিডং এর শুরুেত �থম অ�া অ�া� অ�া
েথেক একটু িভ� আকাা, আকৃিত, াং এবং িডজাইে্ �দশর্ কাাা জ�
ফা� েলটাা িসউেডা ইিলেমনট বযবহাা কাা হয়।এজ� ফা� েলটাা
িসউেডা ইিলেমনট িসেল�া বযবহাা কােত হেব; p:first-letter এর
অনুরূপ।p এর �াে্ h1,h2,h3 ইতযািদ হেত পাো।
145. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
144
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p{font-family:Arial, Helvetica, sans-serif;
background:#9CF;
border:#F39 5px solid;
padding:10px;}
p:first-letter
{color:#ff0000;
font-size:70px;}
</style>
</head>
<body >
<p>
<b>www.tutohost.com</b><br/ ><br/ >
We are bangladeshi <b>Hostgator</b> hosting provider. The
world wide technical and support team is working for your best
movement. We are bangladeshi <b>Hostgator</b> hosting
provider. The world wide technical and support team is working
for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
146. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
145
�থম লাই্ িসউেডা ইিলেমনট-(First first line
Pseudoelement)
েকা্ পযাাা�ােফা শুরুেত �থম লাই্ অ�া� লাই্ েথেক একটু
িভ� আকাা, আকৃিত, াং এবং িডজাইে্ �দশর্ কাাা জ� ফা�
লাই্ িসউেডা ইিলেমনট বযবহাা কাা হয়।এজ� ফা� লাই্
িসউেডা ইিলেমনট িসেল�া বযবহাা কােত হেব; p:first-line এর
অনুরূপ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p{font-family:Arial, Helvetica, sans-serif;
background:#9CF;
border:#F39 5px solid;
padding:10px;}
p:first-line
{color:#C60;
font-size:30px;}
</style>
</head>
<body >
<p>
www.tutohost.com.We are bangladeshi <b>Hostgator</b>
hosting provider. The world wide technical and support team is
working for your best movement. We are bangladeshi
<b>Hostgator</b> hosting provider. The world wide technical
and support team is working for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
148. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
147
<p>
www.tutohost.com.We are bangladeshi <b>Hostgator</b>
hosting provider. The world wide technical and support team is
working for your best movement. We are bangladeshi
<b>Hostgator</b> hosting provider. The world wide technical
and support team is working for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
আফটাা িসউেডা ইিলেমনট (After Pseudo element)
অে্ক সময় েকা্ একটা েপেজা সকল পযাাা�ােফা অথবা
েহিডং এর েশেষ একই েট�ট বা ইেমজ যু� কাাা �েয়াজ্ পো
এে�ে� আফটাা িসউেডা ইিলেমনট বযবহাা কাা হয়।এজ�
আফটাা িসউেডা ইিলেমনট এর িসেল�া বযবহাা কােত হেব;
p:after । এবং �যাইল িসেট আপি্ েয েলখািট েদখােত চা্ তা
content:"Thank You"; এর অনুরূপভােব িড�াোশ্ কােত
হেব। যিদ ইেমজ �দশর্ কােত চা্ তাহেল h2:after
{content:url(http://tutohost.com/images/services-
icons/green.png);} অনুরূেপ �যাইল িসেট েলখেত হেব।
149. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
148
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFD;}
p{font-family:Arial, Helvetica, sans-serif;
background:#9CF;
border:#F39 5px solid;
padding:10px;}
p:after{
content:"Thank You";
background-color:#900;
color:#FCC;
font-weight:bold;}
h2:after {content:url(http://tutohost.com/images/services-
icons/green.png);}
</style>
</head>
<body >
<h2>WWW.TUTOHOST.COM</h2>
<p>
www.tutohost.com.We are bangladeshi <b>Hostgator</b>
hosting provider. The world wide technical and support team is
working for your best movement. We are bangladeshi
<b>Hostgator</b> hosting provider. The world wide technical
and support team is working for your best movement.
</p>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
163. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
162
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
@media screen
{
body{background: #FFC}
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
.mar{color: #C03;
font-size:36px}
}
@media print{
body{background:#fff;}
.post{color:#000;
font-family:Verdana, Geneva, sans-serif;
text-align:justify;}
}
</style>
</head>
<body>
<h1>www.tutohost.com</h1>
<p class="post">
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best
movement.</p>
<p class="post">
We are dedicated with client requrement. You can host your
huge data of your company with our secured and hacking proof
server. We are taking care of more than 1000 bangladeshi
websites and their huge information.
</p>
<marquee>
<p class="mar"> 24 / 7 Support</p>
</marquee>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
184. িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
183
<a class="galpic"><img /><span><img /><br /><i> text
</i></span></a>
<br />
<div id="screen"><h1>Gallery<br />Screen</h1></div>
</div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।