Keleti Textil Kft.

MericMericMericMericMeric

 

  

 

Keleti Textil Kft. 1148 Bp., Fogarasi út 10-14 Tel : 061 797 16 46 Mobil : 0670 632 10 50 - 0670 433 10 50

www. keletitextil.hu  E-mail : info@keletitextil.hu

MericMericMeric

 

 

<html>
 


<head>
 

<title>TITLE</title>

 

Viewport


<meta name="viewport" 

content="width=device-width, initial-scale=1.0">
<style>
img {
max-width: 100%;
height: auto;
}
</style>


 


Rounded Images : (border-radius)

<style>
img {
border-radius: 8px;
}
</style>

 


Rounded Images :  (10-50)

<style>
img {
border-radius: 50%;
}
</style>


Thumbnail Images

<style>
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 200px;
}
</style>

 


Thumbnail Image as Link

<style>
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;
}

img:hover {
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}
</style>

 


Responsive Images

<style>
img {
max-width: 100%;
height: auto;
}
</style>

 


Shadow Effect

<style>
h1 {
color: white;
text-shadow: 2px 2px 4px #000000;
}
</style>

</head>

<body>
 


 

 

Empty HTML Elements
<br><br />


<style>
div {
border: 1px solid black;
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
background-color: lightblue;
}
</style>

<style>
body {
background-image: url("gradient_bg.png");
background-repeat: repeat-x;
}
</style>


<style>
h1 {
background-color: green;
}

div {
background-color: lightblue;
}

p {
background-color: yellow;
}
</style>


<style>
body {
background-color: lightblue;
}
</style>

<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>


<style>
p {
color: red;
text-align: center;
}
</style>


<style>
body {
background-color: lightblue;
}

h1 {
color: white;
text-align: center;
}

p {
font-family: verdana;
font-size: 20px;
}
</style>


<style>
div {
border: 1px solid black;
margin: 100px 150px 100px 80px;
background-color: lightblue;
}
</style>


<style>
div {
width:300px;
margin: auto;
border: 1px solid red;
}
</style>


<style>
div.container {
border: 1px solid red;
margin-left: 100px;
}

p.one {
margin-left: inherit;
}
</style>


<style>
div.container {
border: 1px solid red;
margin-left: 100px;
}

p.one {
margin-left: inherit;
}
</style>


<style>
div {
border: 1px solid black;
background-color: lightblue;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
</style>

 

<style>
div {
border: 1px solid black;
background-color: lightblue;
padding: 50px 30px 50px 80px;
}
</style>

 

 

 

This div element has a top padding of 25px, a right padding of 50px, a bottom padding of 75px and a left padding of 100px.

Using the padding shorthand property

 

<!DOCTYPE html>
<html>
<head>
<style>
div {
border: 1px solid black;
background-color: lightblue;
}

div.ex1 {
padding: 25px 50px 75px 100px;
}

div.ex2 {
padding: 25px 50px 75px;
}

div.ex3 {
padding: 25px 50px;
}

div.ex4 {
padding: 25px;
}
</style>
</head>
<body>

<h2>Using the padding shorthand property</h2>

<div class="ex1">This div element has a top padding of 25px, a right padding of 50px, a bottom padding of 75px and a left padding of 100px.</div><br>

<div class="ex2">This div element has a top padding of 25px, a left and right padding of 50px, and a bottom padding of 75px.</div><br>

<div class="ex3">This div element has a top and bottom padding of 25px, and a left and right padding of 50px.</div><br>

<div class="ex4">This div element has a top, right, bottom and left paddding of 25px.</div>

</body>
</html>
 

 

Set the height and width of an element

<style>
div {
height: 200px;
width: 50%;
background-color: powderblue;
}
</style>

 

Set the max-width of an element

<style>
div {
max-width: 500px;
height: 100px;
background-color: powderblue;
}
</style>

Demonstrating the Box Model

<style>
div {
background-color: lightgrey;
width: 300px;
border: 25px solid green;
padding: 25px;
margin: 25px;
}
</style>

 

<style>
p {
border: 1px solid black;
outline-style: double;
outline-color: red;
}
</style>

 

<!DOCTYPE html>
<html>
<head>
<style>
p {border: 1px solid black;}

p.one {
outline-style: double;
outline-color: red;
outline-width: thick;
}

p.two {
outline-style: double;
outline-color: green;
outline-width: 3px;
}
</style>
</head>
<body>

<h2>The outline-width Property</h2>

<p class="one">This is some text.</p>
<p class="two">This is some text.</p>
<b>Note:</b> IE8 supports the outline properties only if a !DOCTYPE is specified.

</body>
</html>

 

 

 

<style>
a {
text-decoration: none;
}
</style>

 

 

 

 

 

<li> </li> List Item


</body>
 


</html>

 

(HTML5)

https://www.w3schools.com/tags/default.asp

<hr>

 

<!DOCTYPE html>
<html>
<head>
<style>
hr {
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
border-style: inset;
border-width: 1px;
}
</style>
</head>
<body>

<p>A hr element is displayed like this:</p>

<hr>

<p>Change the default CSS settings to see the effect.</p>

</body>
</html>

 

 

Css

{
border: 1px solid black;
background-color: lightgrey;
padding: 15px 50px 25px 25px;
font-family: "Verdana", Times, serif;
font-size: 14px;

}

 

Not Tested :     (div, p, img, div.container, h1, body,   )

 

background-color: lightgrey;
width: 300px;
border: 25px solid green;
padding: 25px;
margin: 25px;

border: 1px solid black;
outline-style: double;
outline-color: red;

height: 200px;
width: 50%;
background-color: powderblue

margin-left: 100px;

text-align: center;

width:300px;
margin: auto;

max-width: 100%;
height: auto;

border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;