Professional Documents
Culture Documents
CSS TUTOHOST E-BOOK - (Hiractg - Blogspot.com)
CSS TUTOHOST E-BOOK - (Hiractg - Blogspot.com)
com
CSS
S
tyl
eMas
ter
As
him Kuma
rPa
ul
As
him KumarPa
ul
St
yleMaster
CSS
Want More books & Software Go to http://hiractg.blogspot.com
িস এস এস �াইল মা�াা
েলখকঃ অসীম কমাা পাল
স�াদক �থম �কাশ
মাহাবুব িটউেটা ১৫ আগ� ২০১৩
��দ আিথর্ সহেযািগতায়
অসীম কমাা পাল িটউেটােহা�
�কাশক ওেয়ব পাটর্নার
িটউেটােহা� http://tutohost.com
�ুফ িািডং http://tutorialbd.com
কিপাাইট
বইিটা ��ািধকাা িটউেটােহা� এবং েলখেকা। বইিট িব্ামূেলয িবতাণ কাা যােব
এবং েলখক ও �কাশেকা ্াম িঠক োেখ �েয়াজে্ মু�ণ কাা যােব। িক� বইিটা
েকা্ অংশ পিাবতর্ কো মু�ণ কাা এবং বইেয়া েকা্ অংশ �গ বা ওেয়ব সাইেট
�কাশ কাা যােব ্া। তেব বইিটা ডাউ্েলাড িলংক �কাশ কাা যােব।
েযাগােযাগ
েলখেকা কথা
বতরমা্ সমেয় ওেয়ব িডজাইে্া উপা সম�
েলখক, িব� জুেড় গেবষণা চলেছ। একটা ওেয়ব
সাইট এখন শুধুমা� তথয �চাোা মাধযম
অসীম কুমা পাল ১৯৮৭ সােল কুি�য়া অ�গর্ েচৗঁড়হাঁস ্য়। েকা্ একটা ওেয়ব সাইট কত
�ােম জ��হণ কেরন। বতর্মাে িতিন ঢাকা �েকৗশল ও �যুি� সহজভােব এবং সু�াভােব বযবহাাকাাীা
িব�িবদয্া(DUET)এ EEE েত েলখাপড়া করেছন। িতিন চািহদা পূাণ কােত পাােব, এ িবষয়িটই
িটউেটািরয়ালিবিড ,েটকিটউনস, িব�ান �যুি� �েগ ওেয়ব িডজাইন
সবেচেয় েবিশ আেলািচত। বযবহাাকাাীা
এবং েডভলপেমন্ , মাইে�াকেন্�ালা, ইেলক�িন� ও চািহদাা িবষয়িট িবেবচ্ায় োেখ একটা
েটকেনালিজর িবিভ� িবষেয়র উপর �গ, িটউটিরয়াল এবং ই-বুক সু�া ওেয়ব ইনটাােফস ৈতিা কাাা ে�ে�
িলেখেছন।
িস এস এস এা ভূিমকা অপিাশীম। িস এস
এস এা �েয়াজ্্ীয় িবষয় সমূহ
িতিন বতর্মাে েলখাপড়ার পাশাপািশ িটউেটােহাে� কমর্র আেছন। িব�ািাতভােব, সহেজ এবং মাি�ভাষায়
এডভা�ড ওেয়ব িডজাইন এন্ েডভলপেমন্, �িগং, ে�া�ািমং, েশখাা জ� আশা কািছ “িস এস এস
UI/UX, ইেলক�িন�, মাইে�াকেন্�ালা এবং আরডুইেনা েবজড �াইল মা�াা” বইিট সবাইেক সাহাযয
কেন্�র্ িসে�ম এবং েরাবিট� েটকেনালিজেক সবার মােঝ ছিড়েয় কােব।
েদয়ার জ� গেবষণা করেছন।
বইিটেত �িতটা িবষয় বা�ব �েজ�িভি�ক
িতিন ইেতামেধয্ িটউেটােহাে�র হেয় আেলাচ্াা মাধযেম এবং �েয়াজ্ীয় ইেমজ
ও ি�্শটর বযবহাোা মাধযেম সহজভােব
• এইচ িট এম এল উপ�াপ্াা েচ�া কোিছ,যা ্তু্েদােক
• িস এস এস
সহেজ এবং �ত েশখাা ে�ে� সহায়ক
• জাভাি��
ভূিমকা পাল্ কােব বেল আশা কািছ।
• িপ এইচ িপ
কৃত�তা �ীকাা
স�াদেকা ব�বয
মাহাবুব িটউেটা
েফা্ঃ ০১৭৭০৮৪৮৮৮৮
ওেয়ব সাইটঃ www.tutohost.com
সূিচপ�ঃ
িস এস এস েবিসক
�াইলঃ
বযাক�াউনড (Background)
িলংক (Link)
ব্� ও েলআউটঃ
মািজর্ (Margin)
পযািডং (Padding)
এডভা�ঃ
ডাইেম্শ্ (Dimention)
িডসে� �ক (display:block)
িভিজিবিলিট (visibility))
িভিজিবিলিট িহেড্(visibility:hidden)
িভিজিবিলিট কলাপস্(visibility:collapse)
অব�া্ (Positioning)
ি�প (Clip)
ে�ািটং (Floating)
এলাই্ (Align)
ছিব ও িমিডয়াঃ
স�ূণর �েজ�ঃ
ে্িভেগশ্ বাা
ে্িভেগশ্ (Navigation)
ইেমজ গযালািা
11
িস এস এস েবিসক
12
িসএসএস িক ?
Cascading Style Sheet এর সংি�� রূপ হে� CSS । সহজ ভাষায় ওেয়ব েপেজা িবিভ�
উপাদাে্া গঠ ন, আকাা, আকৃিত, অব�া্, াং, গিতশীলতা ইতযািদ ি্ধরাােণা সহজ েকৗশল হে�
CSS ।
িসেল�া
CSS এর মাধযেম HTML �াাা ৈতিা কাা ওেয়ব েপেজা িবিভ�
অংশেক ি্িদর� কো গঠন, আকাা, আকৃিত, অব�া্, াং,
গিতশীলতা ইতযািদ ি্ধরাাণ কাা হয়। HTML �াাা ৈতিা ওেয়ব
েপেজা েকা্ অংশেক ি্িদর�ভােব িচি�ত কাাা জ� িসেল�া
বযবহাা কাা হয়। CSS এ েবশ কেয়ক ধােণা িসেল�া বযবহাা
কাা হয় । এ গুেলাা মেধয উে�খেযাগয হে� ....
টযাগ িসেল�া
�াস িসেল�া 13
আইিড িসেল�া
টযাগ িসেল�া
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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
�াস িসেল�া
CSS এ ওেয়ব েপেজা েকা্ অংশ বা এক বা একািধক
উপাদা্েক ি্িদর�ভােব িচি�ত কাাা একিট অ�তম প�িত
�াস িসেল�া । একািধক উপাদা্েক একই �াস িসেল�া
�াাা িচি�ত কাা যায়, তাই ইহা েকািডং এর পিামাণ �াস
কােত সাহাযয কো।
অনুশীল্ �েজ�
<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> 15
</marquee>
</body>
</html>
একটা ে্াটপযাড 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 ্ােম ি্ধরািাত �াসযু� পযাাা�ােফা জ� �াইল ি্ধরাাণ কাা হেয়েছ।
16
আইিড িসেল�া
#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 17
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
একটা ে্াটপযাড 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 ্ােম ি্ধরািাত আইিডযু� পযাাা�ােফা জ� �াইল ি্ধরাাণ কাা হেয়েছ।
18
িস এস এস Syntax
Selector অংেশ টযাগ িসেল�া িহেসেব HTML টযাগ বা �াস িসেল�া িহেসেব HTML টযাগ এর �াস
এর ্াম অথবা আইিড িসেল�া িহেসেব HTML টযাগ এর আইিড এর ্াম বেস।
অনুশীল্ �েজ�
<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 19
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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
এইচ িট এম এল এবং িস এস এস
এইচ িট এম এল এর সােথ িস এস এস যু� কাাা িবষয়িট খুবই
গুরু�পূণর। এইচ িট এম এল এর সােথ িস এস এস যু� কাাা
জ� িত্িট প�িত ােয়েছ। যথা
20
<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>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
21
অনুশীল্ �েজ�:
HTML Code:
<html>
<head>
<title> Selectors</title>
<p class="post">
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কােত হেব।
CSS Code :
22
.post{color:#066;
font-family:Tahoma;
text-align:justify;}
�াইল িসটিটেক style.css ্ােম save কো index.html ফাইলিট Mozilla Firefox িদেয়
open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
23
অনুশীল্ �েজ�
HTML Code
স্টাইল
<head>
<title> Selectors</title>
</head>
<body >
<h1>www.tutohost.com</h1>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
স্টাইল
25
বযাক�াউনড (Background)
ওেয়বেপেজা িবিভ� উপাদা্ েযম্
Body, Pragaph, Table ইতযািদা জ�
বযা�াউনড একিট অপিাহাযর উপাদা্। এ
সকল উপাদা্ সমূেহা বযাক�াউনড
িহেসেব কালাা অথবা ইেমজ বযবহাা কাা্
যায়।
বযাক�াউনড িািপেটশ্
বযা�াউনড ইেমজিট কতবাা বযবহৃত হেব তা ি্েদরশ কাাা জ� বযাক�াউনড িািপেটশ্ বযবহাা কাা
হয়। যিদ পুোা বযাক�াউনড জুেড় ইেমজিটেক বাাবাা িািপট কােত হয় তাহেল Declaration হেব
background-repeat:repeat; যিদ ইেমজিটেক মা� একবাা বযবহাা কােত হয় তাহেল Declaration
হেব background-repeat:no-repeat ; যিদ ইেমজিটেক X-অ� বাাবা বাাবাা িািপট কােত হয়
তাহেল Declaration হেব background-repeat:repeat-x ; ইেমজিটেক Y-অ� বাাবা বাাবাা
িািপট কােত হয় তাহেল Declaration হেব background-repeat:repeat-y ; । েযম্ body {
26
background: url(images/4.png); background-repeat:repeat-x;} । যিদ body { background:
url(images/4.png); } এভােব Declaration কাা হয় তাহেল পুোা বযাক�াউনড জুেড় ইেমজিট
বাাবাা িািপট হেব।
বযাক�াউনড পিজশ্
বযাক�াউনড ইেমজিটা অব�া্ েকাথায় হেব তা ি্েদরশ কাাা জ� বযাক�াউনড পিজশ্ বযবহাা কাা
হয়। যিদ ইেমজিটেক বােম াাখেত হয় তাহেল 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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
27
েট�ট (Text)
ওেয়ব সাইেটা �ধা্ উপাদা্ হে� েট�ট। েসৗ�যর বৃি�া জ�
এবং িবেশষ িকছু সুিবধা পাবাা জ� css এর মাধযেম েট�ট এর
�াইল ৈতিা কাা হয়। েট�ট এর �াইল ৈতিাা জ� েবশ
কেয়কিট িবষয় Declaration এ উে�খ কােত হয়। এগুেলা
হে�
p { color: #FC9}
p {color:blue;}
p {color:rgb(255,0,0);}
28
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
29
অনুশীল্ �েজ�
<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> 30
<h2>Example of justify align </h2>
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
31
অনুশীল্ �েজ�
<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>
32
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
33
p.uppercase {text-transform:uppercase;}
p.lowercase {text-transform:lowercase;}
p.capitalize {text-transform:capitalize;}
</style>
</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 এ উে�খ কােত হয়। এগুেলা
হে�
34
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
35
অনুশীল্ �েজ�
<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>
36
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#090}
#variant{ font-variant: small-caps; color:#C00;}
</style>
</head>
<body > 37
<h2>This is an example of normal h2 text .</h2>
<h2 id="variant">This Is an Example Of h2 Variant Text .</h2>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
38
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
39
িলংক (Link)
HTML এ অ�া� েপেজা সােথ সংেযাগ �াপে্া জ�
<a></a> বা এ�া টযাগ বযবহাা কো িলংক ৈতিা কাা হয়।
আর িলংক সবেচেয় েবিশ বযবহাা কাা হয় ে্িভেগশ্বাো।
সাধাাণত েকা্ একিট িলংক এর চাািট অব�া থােক। যথা
a:hover{background:#F60; এর অনুরূপ।
অনুশীল্ �েজ�
<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 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="https://www.tutohost.com"><h1>This is a
Link.</h1></a><br>
<div id="nav">
<ul>
<li><a
href="https://www.tutohost.com"><h2>HTML</h2></a></li>
<li><a href="https://www.tutohost.com"><h2>CSS
</h2></a></li>
<li><a
href="https://www.tutohost.com"><h2>PHP</h2></a></li>
<li><a
href="https://www.tutohost.com"><h2>Wordpress</h2></a></li
>
</ul>
</div>
</body>
</html>
41
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
িল� (List)
ওেয়ব েপেজ তথয উপ�াপ্াা একিট অ�তম
প�িত িল� । CSS �াাা িত্ ধােণা িল� ৈতিা
কাা যায়, একিট হে� অডরাা িল� এবং অপািট
হে� আ্অডরাা িল� । অডরাা িলে� িবিভ�
তথযেক পযরায়�িমকভােব সািজেয় উপ�াপ্ কাা
হয় এবং �িতটা লাইে্া শুরুেত �িমক সংখযা
থােক, আন অডরাা িলে� �িতটা লাইে্া সামে্
েছাট বৃ�াকাা বা বগরাকাা িচ� থােক। এছাড়া
িলে� েযেকা্ িস�েলা পিাবেতর েছাট আকাোা
ইেমজ বযবহাা কাা যায়।
42
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99; margin-left:120px;}
h1{color:#F00;}
#alphabet {list-style-type:lower-alpha;}
#decimal {list-style-type:decimal;}
#roman {list-style-type:lower-roman; }
</style>
</head>
<body >
h1>Ordered list</h1>
<h3>Alphabet Type list</h3>
<ol id="alphabet">
<li>Home</li>
<li>About Us</li>
<li>Contact Us</li>
</ol>
<h3>Number Type list</h3>
<ol id="decimal">
<li>HTML</li>
<li>CSS</li>
<li>PHP</li>
</ol>
<h3>Roman Number Type list</h3>
<ol id="roman">
<li>Pragaph</li>
<li>Table</li>
<li>List</li>
</ol> 43
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99; margin-left:120px;}
h1{color:#F00;}
#disc {list-style-type:disc;}
#circle {list-style-type:circle}
#square {list-style-type:square;}
</style>
</head>
<body >
<h1>Unordered list</h1>
<h4>Disc Type list</h4>
<ul id="disc">
<li>Home</li>
<li>About Us</li>
<li>Contact Us</li>
</ul>
<h4>Circle Type list</h4>
<ul id="circle">
<li>HTML</li>
<li>CSS</li>
<li>PHP</li>
</ul><h4>Square Type list</h4>
<ul id="square">
<li>Pragaph</li>
<li>Table</li>
<li>List</li>
</ul>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব। 45
46
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#c9f3fa; margin-left:120px;}
h1{color:#F00;}
ul{list-style-image:url(images/b.png)}
</style>
</head>
<body >
<h1>List Style Image</h1>
<ul id="disc">
<li><a href="www.tutohost.com">Home</a></li>
<li><a href="www.tutohost.com">About Us</a></li>
<li><a href="www.tutohost.com">HTML</a></li>
<li><a href="www.tutohost.com">CSS</a></li>
<li><a href="www.tutohost.com">PHP</a></li>
<li><a href="www.tutohost.com">Contact Us</a></li>
</ul>
</body>
</html>
কাযর�ণালী
imstyle ্ােম একটা folder ৈতিা কো তাা মেধয images ্ােম ্তু্ একটা folder ৈতিা কােত
হেব। images folder এর মেধয েয ইেমজিট িলে� �দশর্ কাা হেব তা াাখেত হেব।এই �েজ�িটেত
b.png ্ােম একটা ইেমজ বযবহাা কাা হেয়েছ।ইেমজিটা ডাউ্েলাড
িলংক http://www.tutohost.com/bangla/css/images/pic/b.png ।এর পর imstyle ্ােম ৈতিা
folder এর মেধয একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ
ি�ক কো File name: index.html , Save as type : All files, িদেয় save কো index.html
ফাইলিট Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
47
েটিবল (Table)
ওেয়ব েপেজ েটিবল বযাবহাা কো খুব সহেজই
তথয-উপা�,পিাসংখযা্ উপ�াপ্ কাা যায়।
েটিবল খুবই গুরু�পূণর একিট উপাদা্।িস এস
এস বযবহাা কো এইচ িট এম এল এ ৈতিাকৃত
েটিবলেক আোা আকষরণীয় এবং বযবহাা
বা�ব কাা যায়। িস এস এস বযবহাা কো
েটিবেলা �াইল ৈতিাা জ� েবশ কেয়কিট
িবষেয়া উপর কাজ কােত হয়। এগুেলা হে�,
table,th,td
{
border:1px solid #F00;
}
এখাে্ মূল েটিবল, েটিবেলা �িতটা সািা এবং �িতটা েসল এর জ� একই �যাইেলা বডরাা ি্ধরাাণ
কাা হেয়েছ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99; margin-left:120px;}
table,th,td 48
{
border:1px solid #F00;}
</style>
</head>
<body >
<table>
<tr>
<th>SL</th>
<th>Book</th>
<th>Pen</th>
<th>Box</th>
</tr>
<tr>
<td>01</td>
<td>100</td>
<td>200</td>
<td>400</td>
</tr> <tr>
<td>02</td>
<td>300</td>
<td>600</td>
<td>300</td>
</tr>
</table>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ছিবটােত আসেল সাধাাণ েটিবেলা মত বডরাা ৈতিা হয়ি্। �িতটা েসল পা�া েথেক আলাদা
হেয়েছ।
{
border-collapse:collapse;
}
49
এখন যিদ �াইল শীেট উপোা েকাড টুক যু� কাা হয় তাহেল েটিবলিট েদখেত সাধাাণ েটিবেলা মত
হেব এবং Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
table
{
width:300px; height:100px;
}
মা্সমূহ px তথা িপে�েল অথবা েপেজা শতকাা িহেসেব েদয়া েযেত পাো।েযম্,
table
{
width:50%; height:20%;
}
শতকাা িহেসেব মা্ িদেল মি্টোা সাইজ অনুসাো েটিবেলা আকাা পিাবিতরত হেব িক� িপে�েল
মা্ িদেল েকা্ পিাবতর্ হেব ্া।
েটিবল েহডাা তথা �থম সািাা �িতটা েসল এর উ�তা ি্ধরাােণা জ� �াইল শীেট েলখেত হেব,
th
{
height:50px;
}
এে�ে�ও মা্সমূহ px তথা িপে�েল অথবা েপেজা শতকাা িহেসেব েদয়া েযেত পাো। সাধাাণত 50
েটিবল েহডাা তথা �থম সািাা �িতটা েসল এর উ�তা ি্ধরাাণ কো িদেল বািক েসল গুেলাা আকাা
েটিবেলা width �াাা ি্ধরািাত হয়।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;margin-left:120px; }
table{
border-collapse:collapse;
}
table,th,td
{
border:1px solid #F00;
}
table
{
width:300px; height:100px;
}
th
{
height:50px;
}
</style>
</head>
<body >
<table>
<tr>
<th>SL</th>
<th>Book</th>
<th>Pen</th>
<th>Box</th>
</tr>
<tr>
<td>01</td>
<td>100</td>
<td>200</td>
<td>400</td>
</tr> <tr>
<td>02</td>
<td>300</td>
<td>600</td>
<td>300</td>
</tr>
</table> 51
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
td
{
text-align:right;
এখন যিদ �িতটা েসেলা েট�ট সমূেহা ভািটরকযাল এলাই্েমনট অথরাৎ �িতটা েসেলা মেধয েট�ট
সমূহ উপোা িদেক থাকেব ্া ি্েচা িদেক থাকেব অথবা মাঝামািঝ অব�াে্ থাকেব িক্া ি্ধরাাণ
কােত হয় তাহেল Declaration এ vertical-align ি্ধরাাণ কো িদেত হেব।েট�ট সমূহ ি্েচা িদেক
াাখাা জ� Declaration কােত হেব,
td
{ 52
vertical-align:bottom;
}
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;margin-left:120px; }
table{
border-collapse:collapse;
}
table,th,td
{
border:1px solid #F00;
}
table
{
width:300px; height:200px;
}
th
{
height:50px;
}
td
{
text-align:center;
}
td
{
vertical-align:bottom;
}
</style>
</head>
<body >
<table>
<tr>
<th>SL</th>
<th>Book</th>
<th>Pen</th>
<th>Box</th>
</tr>
<tr>
<td>01</td>
<td>100</td> 53
<td>200</td>
<td>400</td>
</tr> <tr>
<td>02</td>
<td>300</td>
<td>600</td>
<td>300</td>
</tr>
</table>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
th 54
{
background:#F69;
}
েটিবেলা �িতটা েসেলা বযক�াউনড কালাা ি্ধরাােণা জ� �াইল শীেট েলখেত হেব,
td
{
background:#FAC;
}
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#00CC99;margin-left:120px; }
table{
border-collapse:collapse;
width:300px; height:200px;
}
table,th,td
{
border:1px solid #F00;
}
th
{
height:50px;
}
td
{
text-align:center;
vertical-align:bottom;
}
th
{
background: #F69;
}
td
{
background:#FAC;
}
</style>
</head>
<body >
<table>
55
<tr>
<th>SL</th>
<th>Book</th>
<th>Pen</th>
<th>Box</th>
</tr>
<tr>
<td>01</td>
<td>100</td>
<td>200</td>
<td>400</td>
</tr> <tr>
<td>02</td>
<td>300</td>
<td>600</td>
<td>300</td>
</tr>
</table>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
56
ব্ক্স ও লেআউট
57
58
বডরাা �াইল
বডরাা �যাইল ি্েদরশ কো বডরাািট েদখেত েকম্ হেব।বডরাা �যাইল ৈতিাা জ� 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>
59
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
েকা্ 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 কােল ি্েচ �দিশরত ছিবা মত েদখােব। 61
েকা্ 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 >
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো 63
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
64
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
65
মািজর্ (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> 66
<h2>This is an example of multi margin.</h2>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
একটা ে্াটপযাড 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
উপাদাে্া চাাপােশ সমা্ পিামা্ পযািডং ৈতিা
67
কাাা জ� Declaration কােত হয়
padding:15px;এর অনুরূপ।এখাে্ px এর
পিাবেতর cm, pt, auto, % বযবহাা কাা যায়।যিদ
উপোা িদেক পযািডং িদেত হয় তাহেল 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>
68
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
িবিভ� ধােণা আউট লাই্ ৈতিাা ে�ে� েবশ িকছু িবষেয়া উপর কাজ কােত হয়। এগুেলা হে�,
অনুশীল্ �েজ�
<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>
70
<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>
</body>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
লাই্ ৈতিাা জ� 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>
72
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
আউট লাই্ কালাা িাধরাাণ কাা যায়, এ প�িতেত আউট লাই্ ৈতিাা জ� 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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
74
75
ব� মেডল ৈতিা কাাা জ� Declaration এ কেয়কিট �পািটর ি্ধরাাণ কো িদেত হয়।এগুেলা হে�,
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
body{
font-family:Arial, Helvetica, sans-serif;
font-size:13px;}
.info, .success, .warning, .error, .validation {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;}
.info {
color:#00529B;
background-color: #BDE5F8;
background-image: url('info.png');}
.success {
color:#4F8A10;
background-color:#DFF2BF;}
.warning {
color:#9F6000;
background-color:#FEEFB3;}
.error {
color:#D8000C;
background-color:#FFBABA;}
div{width:350px;
border:#F5D349 10px solid;
margin:15px;
padding:8px;
background:#FEEFB3;}
</style>
</head>
<body >
<div class="info">Information message.</div>
<div class="success">Successful operation message.</div>
<div class="warning">Warning message.</div> 76
<div class="error">Error message.</div>
<div>
<p><h2 style="color:#C33;">This is an example of Box
Model.</h2>We are bangladeshi Hostgator hosting provider.
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
Want More books & Software Go to http://hiractg.blogspot.com
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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
77
এডভান্স
78
79
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
80
অনুশীল্ �েজ�
<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 81
guaranty. Many Bangladeshi techie people have no ability to
make their site with huge taka. So we are also offering Free
hosting plan.</p>
</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>
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
83
েকািডং িবে�ষণ:
�থম পযাাা�াফিটা ে�ে� max-height:100px; এবং max-width:250px; ফেল �থম
পযাাা�াফিটা জ� েয ডাইেম্শ্ উে�খ কাা হেয়েছ সম� েলখাা জ� তা যেথ� ্য়, এজ�
বযাক�াউনড কালাা ডাইেম্শ্ অনুযায়ী �দিশরত হে�, িক� েলখা বযাক�াউনড অিত�ম কো েগেছ।
24/7 World Class Support েলখািটা িকছু অংশ �থম পযাাা�াফিটা মেধয �েবশ কোেছ।িক�
24/7 World Class Support েলখািট �থম পযাাা�াফিটা পো �দিশরত হওয়া উিচৎ। কাাণ �কৃত
অেথর �থম পযাাা�াফিটা বযাক�াউনড েযখাে্ েশষ হেয়েছ, �াাা�াফিটও ঐ �াে্ই েশষ হেয়
িগেয়েছ, েয কাােণ World Class Support েলখািট সিঠক �াে্ শুরু হেলও এর িকছু অংশ �থম
পযাাা�াফিটা মেধয �েবশ কোেছ।
ি�তীয় পযাাা�াফিটা ে�ে� বযাক�াউন্ড অে্ক ি্েচ পযর� �দশর্ কােছ কাাণ এ পযাাা�াফিটা
জ� min-height:350px; ি্ধরাাণ কাা হেয়েছ যা পযাাা�াফিটা েট�ট এর উ�তাা েচেয় অে্ক
েবিশ।
84
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background: #FFC}
#none{width:265px;
background:#F30;
padding:10px;}
#none:hover{display:none;}
</style>
</head>
<body >
<h2>www.tutohost.com</h2>
<div id="none">
<h1>Please Touch Me.</h1></div>
<h2>We are bangladeshi Hostgator hosting provider.</h2>
</body>
</html>
85
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
েকািডং িবে�ষণ:
উপোা উদাহাণিটেত Please Touch Me. েলখািটা উপো মাউস পেয়নটাা ি্েয় েগেল এিট অদৃ�
হেয় যায় এজ� েকািডং এ েলখা হেয়েছ #none:hover{display:none;} । অথরাৎ none ্ােমা div
িটা মাউস েহাবাা display:none ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background: #FFC}
li{display:inline;
background:#C06;
color:#FFC;
padding:10px;}
a{color:#FCC;
font-size:24px;}
</style>
</head>
<body >
<ul>
<li><a href="http://tutohost.com/bangla/html/"
target="_blank">HTML</a></li>
<li><a href="http://tutohost.com/bangla/css/"
target="_blank">CSS</a></li>
<li><a href="http://www.tutohost.com"
target="_blank">PHP</a></li>
<li><a href="http://www.tutohost.com"
target="_blank">Wordpress</a></li>
</ul>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
87
িডসে� �ক (display:block)
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background: #FFC}
li{display:block;
background:#C06;
color:#FFC;
padding:10px;
width:140px;
border:#600 solid 1px;}
a{color:#FCC;
font-size:24px;}
</style>
</head>
<body >
<ul>
<li><a href="http://tutohost.com/bangla/html/"
target="_blank">HTML</a></li>
<li><a href="http://tutohost.com/bangla/css/"
target="_blank">CSS</a></li>
<li><a href="http://www.tutohost.com"
target="_blank">PHP</a></li>
<li><a href="http://www.tutohost.com"
target="_blank">Wordpress</a></li>
</ul>
88
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
িভিজিবিলিট (visibility)
েকা্ উপাদা্েক �দশর্ কাা হেব িক ্া তা
ি্েদরশ কাাা জ� িস এস এস এ িভিজিবিলিট
ে�াপািটর বযবহাা কাা হয়।েযম্ েকা্
উপাদা্েক �দশর্ কাাা জ� Declaration
কােত হয় visibility:visible; । েকা্
উপাদা্েক �দশর্ ্া কাাা জ� Declaration
কােত হয়, visibility:hidden; । িভিজিবিলিট
ে�াপািটরা েবশ িকছু value হেত পাো, এেদা
মেধয উে�খেযাগয হে�,
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
#hide{width:245px;
background:#F30;
visibility:hidden; }
#show{width:245px;
background:#F30;
visibility:visible;}
</style>
</head>
<body >
<h2>Hidden Text & Visible Text.</h2>
<div id="hide">
<h1>Hidden Text.</h1></div>
<div id="show">
<h1>Visible Text.</h1></div>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
েকািডং িবে�ষণ:
Hidden Text & Visible Text. িটা ি্েচ েবশ িকছুটা ফাঁকা অংশ �দিশরত হে�।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC;}
#none{width:245px;
background:#C6C; }
#none:hover{display:none;}
#hidde{width:245px;
background:#F30; }
#hidde:hover{visibility:hidden;}
</style>
</head>
<body >
<div id="none"><h1>Please touch me.</h1></div> <br /><br />
<div id="hidde">
<h1>Please touch me.</h1></div>
<h2>Please touch me.</h2>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট 91
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
েকািডং িবে�ষণ:
উপোা Please Touch Me. েট�িটা উপর মাউস ি্েয় েগেল তা অদৃ� হেয় যায় এবং তাা ি্েচা
েট�টিট উপো উেঠ আেস। কাাণ এ েট�িটেত display:none; বযবহাা কাা হেয়েছ।
মােঝা Please Touch Me. েট�িটা উপর মাউস ি্েয় েগেল তা অদৃ� হেয় যায়। িক� েলখািটা
সমপিামা্ �া্ ফাঁকা থােক। কাাণ এ েট�িটেত visibility:hidden; বযবহাা কাা হেয়েছ।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style> 92
body{background: #FFC}
table{border:1px #C00 solid;
font-size:24px;}
td{border:1px #C00 solid;
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 উপাদাে্া �কৃত অব�া্ ি্ধরাাণ কাা হয়। 93
অনুশীল্ �েজ�
<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 94
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
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
Want More books & Software Go to http://hiractg.blogspot.com
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>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC;} 95
h1{color:#F06;
background:#CC9;
border:#960 1px solid;
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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
96
অনুশীল্ �েজ�
<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 97
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
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
99
অনুশীল্ �েজ�
<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> 100
</html>
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style> 101
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;
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
102
movement.</p>
</body>
</html>
103
অনুশীল্ �েজ�
<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
104
world wide technical and support team is working for your best
movement. </p>
</body>
</html>
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
h3{color:red;} 105
p{background:#FCF;
left:100px;
top:70px;
width:350px;
2T 2T
padding:10px;
2T 2T
margin-bottom:60px;}
2T 2T
#hidden{overflow:hidden;}
2T 2T
</style>
2T 2T
</head>
2T 2T
<body >
2T 2T
<p id="hidden">
2T 2T
</body>
2T 2T
</html>
2T
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
107
অনুশীল্ �েজ�
<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>
108
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
ি�প ে�াপািটর বযবহাা কো সহেজই একিট মা� ইেমজ বযবহাা কো েকা্ বাটে্া েহাভাা ইেফ�
েদয়া যায়।ি্েচা উদাহাণিট ি�প ে�াপািটর বযবহাা কো ৈতিাকৃত একিট ইন্াকিটভ বাটে্া।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC}
a #clip{
position:absolute;
top:50px;
clip: rect(27 130 69 30);}
a #clip:hover {
position:absolute;
top:50px; 109
clip:auto;}
</style>
</head>
একটা ে্াটপযাড 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 �কাশ কো বাম িদেক
110
শুরু েথেক 30px ি�প হেব।
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
111
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
body{background:#FFC;}
h2{color:#ffc;}
h1{color:#F30;}
div{
padding:10px;
border:#000 1px solid;
width:230px;
height:230px;
margin:30px;}
#box1{background:#F00;
position:absolute;
left:20px;
top:20px;
z-index:1; }
#box2{background:#F06;
position:absolute;
left:90px;
top:90px;
z-index:2; }
#box3{background:#F3F;
position:absolute;
left:160px;
top:160px;
z-index:3; } 112
#box4{background:#F9C;
position:absolute;
left:250px;
top:250px;
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
113
অনুশীল্ �েজ�
<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. 114
</p>
</div>
<div id="second">
<h2 style="color:#C33;">Float Right<br /> Second Box.</h2>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
এলাই্ (Align)
ওেয়ব েপেজা েল-আউট ৈতিাা ে�ে� এলাই্ অতয�
গুরু�পূণর িবষয়। একটা ওেয়ব েপেজ ওেয়ব সাইটিট
েকা্ িদেক �দিশরত হেব ডা্ িদেক বাম িদেক ্া
মাঝখাে্ তা েযম্ এলাই্ কো ি্ধরাাণ কাা হয়,
এছাড়া সাইডবাা ে্িভেগশ্ বাা, ফুটাা, েহডাা
ইেমেজা পিজশ্ও এলাই্ কো ি্ধরাাণ কাা হয়।
এলাই্ কাাা েবশ িকছু প�িত ােয়েছ। েযম্; 121
অনুশীল্ �েজ�
<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> 122
<hr>
<p>
We are bangladeshi Hostgator hosting provider. The world wide
technical and support team is working for your best movement.
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
123
অনুশীল্ �েজ�
<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> 124
</div>
</body>
</html>
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
126
অনুশীল্ �েজ�
<html>
<head> 127
<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:#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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
128
অনুশীল্ �েজ�
<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
129
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
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব। এবং �িতটা লাইে্া উপা
মাউস াাখেল িভ� িভ� আকাা ধাাণ কােব।
130
অনুশীল্ �েজ�
<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 এ ি�ক কো 131
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
133
অনুশীল্ �েজ�
<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> 134
<body >
<a href="www.tutohost.com"><h1>This is a
Link.</h1></a><br>
<div id="nav">
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
136
অনুশীল্ �েজ�
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
137
অনুশীল্ �েজ�
<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 138
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>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
139
অনুশীল্ �েজ�
<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. 140
</p>
<p>
<b>Second 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>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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
141
অনুশীল্ �েজ�
<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);} 142
h2:first-letter
{color:#ff0000;
font-size:70px;}
</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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
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-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 ফাইলিট 145
অনুশীল্ �েজ�
<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:before{
content:"About Tutohost-";
background-color:#900;
color:#FCC;
font-weight:bold;}
h2:before
{content:url(http://tutohost.com/bangla/images/logo2.png);}</sty 146
le>
</head>
<body >
<h2>www.tutohost.com.</h2>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
147
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
148
149
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
body{background:#fff;}
#op{opacity:0.5;
filter:alpha(opacity=50);}
</style>
</head>
<body>
<h1>সাধাাণ ইেমজ</h1>
<img
src="http://www.tutohost.com/bangla/css/example/gallery/1.jpg"
>
<h1> অপািসিট 50% </h1>
<img id="op"
src="http://www.tutohost.com/bangla/css/example/gallery/1.jpg"
>
</body>
</html>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla 150
উপোা �েজ�িট ৈতিা কাাা জ� button ্ােম একটা েফা�াা ৈতিা কােত হেব। েফা�াািটা মেধয
button.png ইেমজিট াাখেত হেব। button.png ইমজিট এখা্ েথেক ডাউ্েলাড করু্। button
্ােম ৈতিাকৃত েফা�াোা মেধযই একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু
েথেক Save as এ ি�ক কো File name: index.html , Save as type : All files, িদেয় save কো
index.html ফাইলিট Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
152
উপোা �েজ�িট ৈতিা কাাা জ� sprites ্ােম একটা েফা�াা ৈতিা কােত হেব । েফা�াািটা মেধয
f1.png ইেমজিট াাখেত হেব। f1.png ইেমজিট এখা্ েথেক ডাউ্েলাড করু্। sprites ্ােম
ৈতিাকৃত েফা�াোা মেধযই একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক
Save as এ ি�ক কো File name: index.html , Save as type : All files, িদেয় save কো
index.html ফাইলিট Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
154
উপোা �েজ�িট ৈতিা কাাা জ� sprites ্ােম একটা েফা�াা ৈতিা কােত হেব । েফা�াািটা মেধয
f1.png ইেমজিট াাখেত হেব। f1.png ইেমজিট এখা্ েথেক ডাউ্েলাড করু্। sprites ্ােম
ৈতিাকৃত েফা�াোা মেধযই একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক
Save as এ ি�ক কো File name: index.html , Save as type : All files, িদেয় save কো 156
index.html ফাইলিট Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
�েজ� িবে�ষণ
উপোা �েজ�িটেত চাা লাইে্া একটা আন অডরাা িল� ে্য়া হেয়েছ। �েতযকিট িলে� আইিড
িসেল�া যু� কাা হেয়েছ। �যাইল শীেট <style>……… </style> এর মেধয #nav li{list-
style:none;} যু� কােত হয় িল� এর িস�ল দূা কাাা জ�। li#s1{ width:130px;
height:130px; background:url('f1.png') 0 0 ;} এর অনুরূপ যু� কােত হয় ইেমেজা কতটুক
157
অংশ �দিশরত হেব তা ি্েদরশ কাাা জ�। এখাে্ width:130px; height:130px; �াাা ি্ধরািাত
হেয়েছ ইেমেজা �দিশরত অংেশা উ�তা হেব 130px এবং চওড়া হেব 130px ।li#s4{width:130px;
height:115px; background:url('f1.png') -160px -130px;} এখাে্ background:url('f1.png')
<h1>Single image</h1>
<div id="img"></div>
<h1>3rd image</h1>
<div id="img3"></div>
<h1>1st image</h1>
<div id="img1"></div>
<h1>2nd image</h1>
<div id="img2"></div>
এখাে্ <h1></h1>বযবহাা কাা হেয়েছ ইেমজ স�িকরত তথয যু� কাা এবং ইেমজ গুেলােক েয্
আলাদাভােব সহেজই েবাঝা যায়। মূলত �িতটা <div></div> এর বযাক�াউনড িহেসেব ইেমজ সমূহ
যু� কাা হেব এবং �দশর্ কাা হেব। এখাে্ �িতটা <div></div> েক আলাদাভােব িচি�ত কাাা
জ� id িসেল�া যু� কাা হেয়েছ।
158
উপোা �েজ�িট ৈতিা কাাা জ� sprites ্ােম একটা েফা�াা ৈতিা কােত হেব । েফা�াািটা মেধয
img.png ইেমজিট াাখেত হেব। img.png ইেমজিট এখা্ েথেক ডাউ্েলাড করু্। sprites ্ােম
ৈতিাকৃত েফা�াোা মেধযই একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক
Save as এ ি�ক কো File name: index.html , Save as type : All files, িদেয় save কো
index.html ফাইলিট Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
159
উপোা েকাড �াাা স�ূণর ইেমেজা আকাা আকৃিত এবং বযাক�াউনড িহেসেব ইেমজ েলােকশ্
েদখাে্া হেয়েছ।
#img2{display: block;
width: 207px; height: 70px;
background-image: url(button.png);
background-position: center;}
উপোা েকাড �াাা ২য় ইেমেজা আকাা আকৃিত এবং বযাক�াউনড িহেসেব ইেমজ েলােকশ্ center
েদখাে্া হেয়েছ। সুতাাং button.png ইেমেজা মােঝা 207px; height: 70px; অংশ পযর� �দিশরত
হেব ।
#img3{display: block;
width: 207px; height: 70px;
background-image: url(button.png);
background-position: bottom;}
উপোা েকাড �াাা ২য় ইেমেজা আকাা আকৃিত এবং বযাক�াউনড িহেসেব ইেমজ েলােকশ্ bottom
েদখাে্া হেয়েছ। সুতাাং button.png ইেমেজা েশেষা 207px; height: 70px; অংশ পযর� �দিশরত
হেব ।
161
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
162
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
*{margin:auto; padding:auto;} 163
body { background: #C99}
#navigation{background:url(images/navigation.png) repeat-x;
margin-top:20px;
width:650px;
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
164
েপেজ আোা অে্ক div উপাদা্ থাকেত পাো তাই ে্িভেগশ্ বাোা div েক আলাদাভােব
েদখাে্াা জ� id যু� কােত হয়।েযম্ <div id="navigation">।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
</head>
<body > 165
<div id="navigation">
<ul>
<li><a></a></li>
<li><a></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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
</head>
<body > 166
<div id="navigation">
<ul>
<li><a href="#"> HOME</a></li>
<li ><a href="www.tutohost.com">ABOUT US</a></li>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
168
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
*{margin:auto; padding:auto;}
body { background: #C99}
#navigation{background:url(images/navigation.png) repeat-x;
margin-top:20px;
width:600px;
height:40px;
font-family:Tahoma;
font-size:14px;}
#navigation ul {
list-style-type:none;}
#navigation ul li {
float:left;
background:url(images/border.png) no-repeat;
background-position:right;}
</style>
</head>
<body >
<div id="navigation">
<ul>
<li><a href="#"> HOME</a></li>
<li ><a href="#">ABOUT US</a></li>
<li><a href="#">CONTACT US</a></li>
<li><a href="#">BLOG</a></li>
<li><a href="#">FORAM</a></li></ul> 169
</div>
</body>
</body>
</html>
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style> 170
*{margin:auto; padding:auto;}
body { background: #C99}
#navigation{background:url(images/navigation.png) repeat-x;
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
171
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
*{margin:auto; padding:auto;}
body { background: #C99}
#navigation{background:url(images/navigation.png) repeat-x;
margin-top:20px;
width:600px;
height:40px;
font-family:Tahoma;
font-size:14px;}
#navigation ul {
list-style-type:none;}
#navigation ul li {
float:left;
background:url(images/border.png) no-repeat;
background-position:right; }
#navigation ul li a {
padding:10px 28px 10px 20px ;
display:block;
text-decoration:none;
text-align:center;
color: #F69;
font-weight:bold;}
#navigation ul li a:hover {
background: url(images/navov.png) repeat-x;
padding:10px 27px 13px 19px ;
margin:0px 1px 0px 1px;
color:#F3C;} 172
</style>
</head>
<body >
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
*{margin:auto; padding:auto;}
body { background: #C99}
#navigation{background:url(images/navigation.png) repeat-x;
margin-top:20px;
width:600px;
height:40px;
font-family:Tahoma;
font-size:14px;}
#navigation ul {
list-style-type:none;}
#navigation ul li {
float:left;
background:url(images/border.png) no-repeat;
background-position:right; }
#navigation ul li a {
padding:10px 28px 10px 20px ;
display:block;
text-decoration:none;
text-align:center;
color: #F69;
font-weight:bold;}
#navigation ul li a:hover {
background: url(images/navov.png) repeat-x;
padding:10px 27px 13px 19px ;
margin:0px 1px 0px 1px;
color:#F3C;}
</style>
</head>
<body >
<div id="navigation">
<ul>
174
<li><a href="#"> HOME</a></li>
<li ><a href="#">ABOUT US</a></li>
<li><a href="#">CONTACT US</a></li>
<li><a href="#">BLOG</a></li>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
175
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো
File name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট
176
Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
অনুশীল্ �েজ�
<html>
<head>
<title> www.tutohost.com</title>
<style>
*{margin:auto; padding:auto;}
body { background:#C99}
#navigation ul {
list-style:none;
width:580px; 177
margin-top:50px;}
#navigation ul li {
display:inline;}
#navigation ul li a {
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
text-decoration:none;
padding:5px 0;
width:110px;
font-family:Tahoma, Geneva, sans-serif;
font-size:20px;
background:#04A3B5;
color:#eee;
float:left;
text-align:center;
border:1px solid #165A69;}
#navigation ul li a:hover {
background:#a2b3a1;
color:#C09;}
</style>
</head>
<body >
<div id="navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Products</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 কােল ি্েচ �দিশরত ছিবর মত েদখােব।
178
179
180
• স�ূণর ইেমজ গযালািাা একটা ি্িদর� এিায়া, বযাক�াউনড কালাা এবং বডরাা থাকেব।
• ইেমজ গযালািােত ি্িদর� সংখযক, ি্িদর� সাইেজা েছাট আকৃিতা ইেমজ থাকেব।
• �েতযকিট ইেমেজ ি্িদর� াং এর বডরাা থাকেব।
• �েতযকিট ইেমেজা উপর মাউস পেয়নটাা ি্েয় েগেল তা বড় কো �দশরে্া জ� একিট
কমন গযালািা ি�্ থাকেব।
• গযালািা ি�ে্া ি্িদর� এিায়া, বযাক�াউনড কালাা এবং বডরাা থাকেব।
• �েতযকিট ইেমেজা উপর মাউস পেয়নটাা ি্েয় েগেল, েছাট আকৃিতা ইেমজ সমূেহা
বডরাা পিাবতর্ হেব।
• গযালািা ি�ে্া মেধয েয বড় আকৃিতা ইেমজ সমূহ �দিশরত হেব তা ি্িদর� আকাোা
হেব।
• গযালািা ি�ে্া মেধয েয বড় আকৃিতা ইেমজ সমূহ �দিশরত হওয়াা সময় �িতিট
ইেমেজা ি্েচ ইেমজ স�িকরত িকছু েলখা থাকেব।
ইেমজ গযালািাা �িতিট <a></a> বা এংকা টযাগেক আলাদাভােব িচি�ত কাাা জ� <a
class="galpic"> এর অনুরূপ �াস িসেল�া বযবহাা কাা হয়। যিদ ইেমজ গযালািােত দুই বা ততিধক 181
লাই্ থােক তাহেল �িতটা লাইে্া েশেষ একটা কো <br /> বযবহাা কােত হেব।
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
183
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
</style>
</head>
<body> 184
<div id="container">
<a class="galpic"><img /><span><img /><br /><i> text
</i></span></a>
<a class="galpic"><img /><span><img /><br /><i> text
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
</i></span></a>
<br />
<a class="galpic"><img /><span><img /><br /><i> text
</i></span></a>
<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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
185
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
</style>
</head>
<body>
<div id="container">
<a class="galpic"><img src="1.jpg" width="163px"
height="80px" /><span><img src="1.jpg" width="300px"
height="185px" /><br /><i>
text </i></span></a>
<a class="galpic"><img src="2.jpg" width="163px"
height="80px" /><span><img src="2.jpg" width="300x"
height="185px" /><br />
<i>text</i></span></a>
<br /> 186
<a class="galpic"><img src="3.jpg" width="163px"
height="80px" /><span><img src="3.jpg" width="300x"
height="185px" /><br />
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
187
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
</style>
</head>
<body>
<div id="container">
<a class="galpic"><img src="1.jpg" width="163px"
height="80px" /><span><img src="1.jpg" width="300px" 188
height="185px" /><br /><i>
text </i></span></a>
<a class="galpic"><img src="2.jpg" width="163px"
height="80px" /><span><img src="2.jpg" width="300x"
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
189
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
</style>
</head> 190
<body>
<div id="container">
<a class="galpic"><img src="1.jpg" width="163px"
height="80px" /><span><img src="1.jpg" width="300px"
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
191
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
#screen{background:#000;
width:320px;
height:223px; 192
border:8px #960 solid;}
#screen h1{color:#F00;
font-family:Tahoma;
text-align:center;}
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
193
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
#screen{background:#000;
width:320px;
height:223px;
border:8px #960 solid;}
#screen h1{color:#F00;
font-family:Tahoma; 194
text-align:center;}
.galpic:hover img{
border: 1px solid blue;}
</style>
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
195
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
#screen{background:#000;
width:320px;
height:223px;
border:8px #960 solid;}
#screen h1{color:#F00;
font-family:Tahoma;
text-align:center;}
196
.galpic:hover img{
border: 1px solid blue;}
.galpic:hover span{
visibility: visible;
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
197
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
#screen{background:#000;
width:320px;
height:223px;
border:8px #960 solid;}
#screen h1{color:#F00;
font-family:Tahoma; 198
text-align:center;}
.galpic:hover img{
border: 1px solid blue;}
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
199
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
#screen{background:#000;
width:320px;
height:223px;
border:8px #960 solid;} 200
#screen h1{color:#F00;
font-family:Tahoma;
text-align:center;}
.galpic:hover img{
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
border: 1px solid blue;}
.galpic:hover span{
visibility: visible;
top: 196px;
left: 14px;
background:#EBEDBA;
border:1px solid #f00;
padding:6px;
text-decoration:none;
font-family:Tahoma;
font-size:18px;
font-weight:bold; }
</style>
</head>
<body>
<div id="container">
<a class="galpic"><img src="1.jpg" width="163px"
height="80px" /><span><img src="1.jpg" width="300px"
height="185px" /><br /><i>
text </i></span></a>
<a class="galpic"><img src="2.jpg" width="163px"
height="80px" /><span><img src="2.jpg" width="300x"
height="185px" /><br />
<i>text</i></span></a>
<br />
<a class="galpic"><img src="3.jpg" width="163px"
height="80px" /><span><img src="3.jpg" width="300x"
height="185px" /><br />
<i>text</i></span></a>
<a class="galpic"><img src="4.jpg" width="163px"
height="80px" /><span><img src="4.jpg" width="300x"
height="185px" /><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 কােল ি্েচ �দিশরত ছিবা মত েদখােব।
201
202
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
#container{
background:#999;
width:345px;
height:425px;
padding:7px 2px 7px 7px;
border:1px #000 solid;
position:relative;}
.galpic span{
position:absolute;
left: 0px;
visibility:hidden;}
.galpic img{
border: 1px solid #f00;
margin: 0 5px 5px 0;}
#screen{background:#000;
width:320px;
height:223px;
border:8px #960 solid;}
#screen h1{color:#F00;
font-family:Tahoma;
text-align:center;}
.galpic:hover img{
border: 1px solid blue;}
.galpic:hover span{
visibility: visible;
top: 196px; 203
left: 14px;
background:#EBEDBA;
border:1px solid #f00;
padding:6px;
িস এস এস �াইল মা�াা |অসীম কমাা পাল | িটউেটােহা� ই- বুক
text-decoration:none;
font-family:Tahoma;
font-size:18px;
font-weight:bold; }
</style>
</head>
<body>
<div id="container">
<a class="galpic"><img src="1.jpg" width="163px"
height="80px" /><span><img src="1.jpg" width="300px"
height="185px" /><br /><i>
text </i></span></a>
<a class="galpic"><img src="2.jpg" width="163px"
height="80px" /><span><img src="2.jpg" width="300x"
height="185px" /><br />
<i>text</i></span></a>
<br />
<a class="galpic"><img src="3.jpg" width="163px"
height="80px" /><span><img src="3.jpg" width="300x"
height="185px" /><br />
<i>text</i></span></a>
<a class="galpic"><img src="4.jpg" width="163px"
height="80px" /><span><img src="4.jpg" width="300x"
height="185px" /><br />
<i>text</i></span></a>
<br />
<div id="screen"><h1>Gallery<br />Screen</h1></div>
</div>
</body>
</html>
204
অনুশীল্ �েজ�
<html>
<head>
<title> Gallery</title>
<style>
body{background:#FCC;
padding-left:15px;}
p{color:#036;
font-family:Tahoma;
font-size:12px;
text-align:justify;}
h1{color:#C03;
font-family:Tahoma;
font-size:24px;}
h2{color:#960;
font-family:Tahoma;
font-size:20px;}
205
#container{
background:#999;
width:345px;
height:425px;
একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক Save as এ ি�ক কো File
name: index.html , Save as type : All files, িদেয় save কো index.html ফাইলিট Mozilla
Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
207
210
িসে�ল ইেমজ
211
<html>
<head>
<title>www.tutohost.com</title>
<style>
</style>
</head>
<body>
<div id="button">
<p>
<a href="#" class="push"></a>
</p>
</div>
</body>
</html>
স্�াইটস্ বাট্ মূলত ইনটাা্রাল অথরাৎ েফা�াোা মাধযেম িলংক ৈতিাা জ� বযবহৃত হয়। আর
িলংেকা আকৃিত হয় সাধাাণত demo.html বা download/demo.zip এর অনুরূপ । অথরাৎ সাভরাো বা
েলাকাল কি�উটাো েযখাে্ই একটা ওেয়ব সাইট েডভলপ কাা েহাক ্া েক্, সাইেটা জ�
ৈতিাকৃত সকল এইচ িট এম এল, িস এস এস, িপ এইচ িপ, জাভাি��, ইেমজ ইতযািদ ফাইল সমূহ
িকছু েফা�াোা মেধয াাখা হয়। এে�ে� স্�াইটস্ বাটে্ িলংক কাাা জ� েযম্ demo.html বা
demo.zip েয ধােণা ফাইলই েহাক ্া েক্ বযবহাা কাা যােব।
মে্ কাা যাক বাট্িট index.html েপেজ আেছ, বাটে্া মাধযেম demo.html েপেজা সােথ িলংক
কােত হেব এবং index.html ও demo.html একই েফা�াোা মেধয আেছ। তাহেল বাটে্ িলংক 212
কাাা জ� <a href="#" class="push"></a> েত # এর �াে্ শুধুমা� demo.html অথরাৎ <a
href="demo.html" class="push"></a> েলখেলই চেল। িক� মে্ কাা যাক site ্ােম একটা
েফা�াোা মেধয বাট্ যু� index.html ফাইলিট আেছ আর site েফা�াোা মেধয একটা download
�েজ�িট ৈতিা কাাা জ� sprites-button ্ােম একটা েফা�াা ৈতিা কােত হেব । েফা�াািটা মেধয
button.png ইেমজিট াাখেত হেব। button.png ইেমজিট এখা্ েথেক ডাউ্েলাড করু্। একই
েফা�াোা মেধয button.zip ফাইলিট এখা্েথেক ডাউ্েলাড কো াাখু্। sprites-button ্ােম
ৈতিাকৃত েফা�াোা মেধযই একটা ে্াটপযাড open কো উপোা code টুক িলেখ file েমনু েথেক
Save as এ ি�ক কো File name: index.html , Save as type : All files, িদেয় save কো
index.html ফাইলিট Mozilla Firefox িদেয় open কােল ি্েচ �দিশরত ছিবা মত েদখােব।
বাট্িটেত ি�ক কােল button.zip িট ডাউ্েলাড হেব।
�েজ� িবে�ষণ
* {margin: 0; padding: 0; /* Reset */}
উপোা েকাডটুকা মাধযেম েপজেক িােসট কাা হেয়েছ ।
#button p a.push:active {
background-position:bottom;}
উপোা েকাডটুকা মাধযেম বাটে্া উপর মাউস ি�ক কাাা সময় অথরাৎ active কিনডশে্ বাট্িট
েকম্ েদখােব তা ি্েদরশ কাা হেয়েছ। background-position:bottom; এর মাধযেম button.png
িসে�ল ইেমজিটা েশেষা অংশ �দশর্ কােব িবষয়িটা ি্েদরশ কাা হেয়েছ।
215