1. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
CSS টিউিটিয়াল (প্রাথটিক ধািণা ও সহজ একটি প্রজজক্ট)
HTML এক ক HTML
‚ HTML ক কক আ CSS ক ক ‛
CSS ক এ ক ?
এ এ Cascading Style Sheets
HTML ক ক ( ) ক ক ক
HTML এ CSS ক ক
CSS এ ক আ আ HTML এ ক ক ক
CSS এ ক এক ক
2. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
এক এ এ HTML
<html>
<head>
<style type="text/css">
body
{
background-color:#d0e4fe;
}
h1
{
color:orange;
text-align:center;
}
p
{
font-family:"Times New Roman";
font-size:20px;
}
</style>
</head>
<body>
<h1>CSS example!</h1>
<p>This is a paragraph.</p>
</body>
</html>
এ , <style type=‛text/css‛> “. </style> এ এ এ ক
3. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
CSS এ ক ( : , )
/*“*/ এ -
/*This is a comment*/
p
{
text-align:center;
/*This is another comment*/
color:black;
font-family:arial;
}
ক ক id এ # id’
-
#para1
{
text-align:center;
color:red;
}
HTML ক এ এ ক ক :
<p id="para1">Hello World!</p>
এক class এ . class এ
CSS এ
p.center
{
text-align:center;
}
HTML ক এ এ ক ক :
<p>This paragraph will be center-aligned.</p>
<html>
<head>
<style type="text/css">
p.center
4. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
{
text-align:center;
}
</style>
</head>
<body>
<h1>This heading will not be affected</h1>
<p>This paragraph will be center-aligned.</p>
</body>
</html>
১. এ এ ক ক
২. ক ক
৩.
ক এ এ ক .css ক
ক এক এ এ mystyle.css mystyle.css ক আ
hr {color:sienna;}
p {margin-left:20px;}
body {background-image:url("images/back40.gif");}
এ ক ক html ক
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>
ক এ এ ক ক ক ক
ক
এক ক HTML CSS ক <style type=‛text/css‛> “ </style>
এ CSS ক
<head>
<style type=‛text/css‛>
hr {color:sienna;}
p {margin-left:20px;}
body {background-image:url(‚images/back40.gif‛);}
</style>
</head>
5. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
এ এ ক ক ক এ আ
<p style=‛color:sienna;margin-left:20px‛>This is a paragraph.</p>
এক ক ক এ ক ক ক
ব্যাগ্রাউন্ড টিক্সজিি টিজাইজন আনুন নতুন িাত্রা
এ এ ক ক এ ক
আ ক ক
আ ক ক ক এ এ ক :
h1
{
background-color:#6495ed;
}
p
{
background-color:#e0ffff;
}
div
{
background-color:#b0c4de;
}
ক ক :
<html>
<head>
<style type="text/css">
h1
{
background-color:#6495ed;
}
p
{
6. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
background-color:#e0ffff;
}
div
{
background-color:#b0c4de;
}
</style>
</head>
<body>
<h1>CSS background-color example!</h1>
<div>
This is a text inside a div element.
<p>This paragraph has it's own background color.</p>
We are still in the div element.
</div>
</body>
</html>
body {background-image:url(‘paper.gif’);}
আ ( ) ,
7. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
body
{
background-image:url(‘img_tree.png’);
background-repeat:no-repeat;
background-position:top right;
}
body
{
background-image:url(‘img_tree.png’);
background-repeat:no-repeat;
}
Property Description Values CSS
Background
Sets all the background properties in
one declaration
background-color
background-image
background-repeat background-
attachment background-position
inherit
1
background-
attachment
Sets whether a background image is
fixed or scrolls with the rest of the page
scroll
fixed
inherit
1
background-color Sets the background color of an element
color-rgb
color-hex
color-name
transparent
inherit
1
background-
image
Sets the background image for an
element
url(URL)
none
inherit
1
background-
position
Sets the starting position of a
background image
top left
top center
top right
1
8. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
center left
center center
center right
bottom left
bottom center
bottom right
x% y%
xpos ypos
inherit
background-
repeat
Sets if/how a background image will be
repeated
repeat
repeat-x
repeat-y
no-repeat
inherit
এব্াি আিিা টদখজব্া টলখাি টসৌন্দর্য ব্ৃটিি িটত
h1 {text-align:center;} /* */
p.date {text-align:right;} /* */
p.main {text-align:justify;} /* */
ক
h1 {text-decoration:overline;}
h2 {text-decoration:line-through;}
h3 {text-decoration:underline;}
h4 {text-decoration:blink;}
p {text-indent:50px;}
9. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
p.uppercase {text-transform:uppercase;}
p.lowercase {text-transform:lowercase;}
p.capitalize {text-transform:capitalize;}
এ আ ক আ ক আ ক আ এ
এ ক ক
সুন্দি সুন্দি ব্ক্স িজিল
এ ক এ এ এ আ ক
এ এ এ এ এ আ এ
আ ক ক এ এ এ
ক ক ক
width
border , ক
padding ক আ
margin
width, padding, margin padding
এ ক ক
ক
box {
width: 200px;
border: 10px solid #99c;
padding: 20px;
margin: 20px;
}
13. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
}
/* FONT */
h1 {font:italic small-caps bold 1em/140% "Lucida Grande",sans-serif;}
h1 {font-style:italic;
font-variant:small-caps;
font-weight:bold;
font-size:1em;
line-height:140%;
font-family:"Lucida Grande",sans-serif;
}
/* LIST STYLE */
ul {list-style:square inside url(image.gif);}
ul {list-style-type:square;
list-style-position:inside;
list-style-image:url(image.gif);
}
/* OUTLINE */
h1 {outline:#f00 solid 2px;}
h1 {outline-color:#f00;
outline-style:solid;
outline-width:2px;
}
id ক # এ class ক . এ ক
ক আ আ : , ক এ এ
div ক
14. Want more Updates http://facebook.com/tanbir.ebooks
facebook /gmail/skype: - http://tanbircox.blogspot.com
এ এ ক
FireFox Web Developer, DOM Inspector, Internet Explorer Developer Toolbar, and Firebug.
আ ক ক ক !important ক এ -
.page { background-color:blue !important; background-color:red;}
এ এ ক
a, input {
outline:none;
}
ক ক ক
a:link {
color: #000;
text-decoration: underline
}
a:visited {
color: #666;