Gokhan Aydın
Producer, Director, Jr. Academician, Addicted @ Art & 3D & Design & Photography & Cinema
Cascading Style Sheets
CSS to help how HTML elements are to be displayed on screens
body {
margin: 0;
padding: 0;
}
h1 {
font-family: monospace;
}
p {
font-size: 14px;
}
.container {
margin: 20px;
padding: 20px;
}
.vurgulu{
font-weight: bold;
background: grey;
color: red;
}
#container {
margin: 20px;
padding: 20px;
}
#vurgulu{
font-weight: bold;
background: grey;
color: red;
}
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
Style.css file
_______________
body{
background-color: linen;
}
h1{
color: maroon;
margin-left: 40px;
}
<head>
<style>
body{
background-color: linen;
}
h1{
color: maroon;
margin-left: 40px;
}
</style>
</head>
<body>
<h1 style="color:blue;margin-left:30px;">Birinci başlık</h1>
<p style="color:grey;margin:15px;">Burası bilginin olduğu bir paragraftır.</p>
</body>
RGB
HEX
RGBA
<body>
<h1 style="background-color: lightred;">Renkli başlık</h1>
<h1 style="background-color: rgb(200,100, 50);">Renkli başlık2</h1>
<h1 style="background-color: #5383d1;">Renkli başlık 3</h1>
<h1 style="background-color: rgba(200, 100, 50, 0.5);">Renkli başlık 4</h1>
</body>
body {
background-image: url("backg.jpg");
}
body {
background-image: url("backg.jpg");
background-repeat: repeat-x;
}
body {
background-image: url("back.jpg");
background-repeat: no-repeat;
background-position: left top;
background-attachment: fixed;
}
h1 {
text-align: center;
}
h2 {
text-align: left;
}
h3 {
text-align: right;
}
a {
text-decoration: none;
}
h1 {
text-decoration: overline;
}
h2 {
text-decoration: line-through;
}
h3 {
text-decoration: underline;
}
p.uppercase {
text-transform: uppercase;
}
p.lowercase {
text-transform: lowercase;
}
p.capitalize {
text-transform: capitalize;
}
p {
font-family: monospace;
}
p.normal {
font-style: normal;
}
p.italic {
font-style: italic;
}
p.oblique {
font-style: oblique;
}
h1 {
font-size: 40px;
}
h2 {
font-size: 30px;
}
p {
font-size: 14px;
}
<h1 style="font-size:10vw">Hello World</h1>
Viewport is the browser's window size.
10vw = 10% of viewport width. If the viewport is 20 in wide, 10vw is 2 in.
By Gokhan Aydın
Producer, Director, Jr. Academician, Addicted @ Art & 3D & Design & Photography & Cinema