how to create a slide show using CSS3


Today I will show you how to create a slide show using css. Here's my quick under css scripts. For more scripts you can download using the link below:








/* page layout styles */
*{
    margin:0;
    padding:0;
}
body {
    color:#fff;
    font:14px/1.3 Arial,sans-serif;
}
header {
    background-color:#212121;
    box-shadow: 0 -1px 2px #111111;
    display:block;
    height:70px;
    position:relative;
    width:100%;
    z-index:100;
}
header h2{
    font-size:22px;
    font-weight:normal;
    left:50%;
    margin-left:-400px;
    padding:22px 0;
    position:absolute;
    width:540px;
}
header a.stuts,a.stuts:visited{
    border:none;
    text-decoration:none;
    color:#fcfcfc;
    font-size:14px;
    left:50%;
    line-height:31px;
    margin:23px 0 0 110px;
    position:absolute;
    top:0;
}
header .stuts span {
    font-size:22px;
    font-weight:bold;
    margin-left:5px;
}

/* fade slider */
.slides {
    height:300px;
    margin:50px auto;
    overflow:hidden;
    position:relative;
    width:900px;
}
.slides ul {
    list-style:none;
    position:relative;
}

/* keyframes #anim_slides */
@-webkit-keyframes anim_slides {
    0% {
        opacity:0;
    }
    6% {
        opacity:1;
    }
    24% {
        opacity:1;
    }
    30% {
        opacity:0;
    }
    100% {
        opacity:0;
    }
}
@-moz-keyframes anim_slides {
    0% {
        opacity:0;
    }
    6% {
        opacity:1;
    }
    24% {
        opacity:1;
    }
    30% {
        opacity:0;
    }
    100% {
        opacity:0;
    }
}

.slides ul li {
    opacity:0;
    position:absolute;
    top:0;

    /* css3 animation */
    -webkit-animation-name: anim_slides;
    -webkit-animation-duration: 24.0s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: normal;
    -webkit-animation-delay: 0;
    -webkit-animation-play-state: running;
    -webkit-animation-fill-mode: forwards;

    -moz-animation-name: anim_slides;
    -moz-animation-duration: 24.0s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;
    -moz-animation-direction: normal;
    -moz-animation-delay: 0;
    -moz-animation-play-state: running;
    -moz-animation-fill-mode: forwards;
}

/* css3 delays */
.slides ul  li:nth-child(2), .slides ul  li:nth-child(2) div {
    -webkit-animation-delay: 6.0s;
    -moz-animation-delay: 6.0s;
}
.slides ul  li:nth-child(3), .slides ul  li:nth-child(3) div {
    -webkit-animation-delay: 12.0s;
    -moz-animation-delay: 12.0s;
}
.slides ul  li:nth-child(4), .slides ul  li:nth-child(4) div {
    -webkit-animation-delay: 18.0s;
    -moz-animation-delay: 18.0s;
}
.slides ul li img {
    display:block;
}

/* keyframes #anim_titles */
@-webkit-keyframes anim_titles {
    0% {
        left:100%;
        opacity:0;
    }
    5% {
        left:10%;
        opacity:1;
    }
    20% {
        left:10%;
        opacity:1;
    }
    25% {
        left:100%;
        opacity:0;
    }
    100% {
        left:100%;
        opacity:0;
    }
}
@-moz-keyframes anim_titles {
    0% {
        left:100%;
        opacity:0;
    }
    5% {
        left:10%;
        opacity:1;
    }
    20% {
        left:10%;
        opacity:1;
    }
    25% {
        left:100%;
        opacity:0;
    }
    100% {
        left:100%;
        opacity:0;
    }
}

.slides ul li div {
    background-color:#000000;
    border-radius:10px 10px 10px 10px;
    box-shadow:0 0 5px #FFFFFF inset;
    color:#FFFFFF;
    font-size:26px;
    left:10%;
    margin:0 auto;
    padding:20px;
    position:absolute;
    top:50%;
    width:200px;

    /* css3 animation */
    -webkit-animation-name: anim_titles;
    -webkit-animation-duration: 24.0s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: normal;
    -webkit-animation-delay: 0;
    -webkit-animation-play-state: running;
    -webkit-animation-fill-mode: forwards;

    -moz-animation-name: anim_titles;
    -moz-animation-duration: 24.0s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;
    -moz-animation-direction: normal;
    -moz-animation-delay: 0;
    -moz-animation-play-state: running;
    -moz-animation-fill-mode: forwards;
}




How to Make Being Responsive Template


Currently, there are many designers who create templates using responsive features . Why feature this time is very important responsive ? answer I have explained in my article entitled Responsive Blogger Template Recommendation 2013.

How to use a template that has not been responsive feature ? For those who use a blog template that is not responsive , of course, can be made into responsive . How? follow the steps below.

How to Make Being Responsive Template

How to Make Being Responsive Template
All you have to do is add the CSS code in your template . Laying in the code ] ] > < / b : skin> The code like this :

    @ media only screen and ( max - width: 480px ) {
    # outer - wrapper {width : 100 % ; }
    # header - wrapper {width : 100 % ; padding : 0 ; margin : 0 ; }

    }

The intention of the code above is the screen size of 480px , outer-wrapper set width 100 % so that its size can adjust the screen size of the gadget , and set the header - wrapper has a width of 100 % in the boundary and the outer boundary 0px 0px .

All you need to do is find ID Class of preparing the structure of your template . As I explained in my article entitled 6 Element Tags Prepare Layout Templates Blogger.

Not all the same template structure arrangement , different structures different templates . Because of that I was also a bit difficult mejelaskannya here . But I will give Class A common ID in use :

    # outer - wrapper
    # main-wrapper
    # sidebar - wrapper
    # header
    # footer

 The code above is general in life and you just add the code in the @ media only screen as above . See an example

    @ media only screen and ( max - width: 480px ) { # outer - wrapper { . . . }
    # main-wrapper { . . . }
    # sidebar - wrapper { . . . }
    # header { . . . }
    # footer { . . . }
    }
    @ media only screen and ( max - width: 768px ) { # outer - wrapper { . . . }
    # main-wrapper { . . . }
    # sidebar - wrapper { . . . }
    # header { . . . }
    # footer { . . . }
    }
    @ media only screen and ( max - width: 800px ) { # outer - wrapper { . . . }
    # main-wrapper { . . . }
    # sidebar - wrapper { . . . }
    # header { . . . }
    # footer { . . . }
    }

The code above is the size of the various screens that you can employ to make it responsive . And you have to do is fill out the CSS of each of the above css ID . You can watch my video tutorial how to make each class ID using the Google Chrome browser . Video : How Easy Tutorial Blogger Template Editing Part 1 .

Do not forget to add the code <meta charset='utf-8'/>
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/> under <head>

Hopefully the article How to Make Being Responsive Template can be understood and useful to all my friends . thank you

CSSBasic Tutorial

      Cascading Style Sheets or CSS allow for shortened design (style ) display documents ( PHP and HTML ) by separating the contents of the HTML document with the code to display it ( CSS ) .In the world of web design , layout or set up a web layout , font formatting , and its other present in the web becomes a very important part of it could be even longer than with most other web design sections thereof . 

       Because if we membua layout is wrong , then the web we will also be translated incorrectly by the browser . It also can be caused by any browser memilliki language support ( CSS ) , and of course different from the default browser itself different . Most browsers are finicky about css layout IE due to the lack of support for CSS .

       If we have a lot of HTML files , we only need one CSS file , so that when we change the type of font in the CSS file then all the associated HTML file on the CSS file will be changed . CSS is standardized by the W3C ( World Wide Web Consortium ) . CSS can be mounted on dikumen HTML has finished .In a web melayout there are two methods that are often used to create a web page layout , namely :

1 . methods Table2 . methods DivBenefits of CSS :


 => HTML code to be simpler and easier to handle ,
 => File size becomes smaller , so the files load faster,
 => Easy to change the look , just by changing the CSS file only,
 => Can collaborate with JavaScript .
 => Used in almost any web browser .

In general, there are four sections that often exist in a web layout that is :Header - > contains a web theme / title
Menu - > menu web links
Content - > content from the web
Footer - > identity / copyrightattribute ID

There are two ways the placement of elements in the web with CSS , namely :

1 . Position ( Position )

Using the position property there are 4 ways :

    
Static - > the normal (default ) .
    
Relative - > position of an element depends on the other elements .
    
Absolute - > position of the element based on the browser window .
    
Fixed - > elements remain though shifted position .

2 . Float ( stuck )

Using a float or clear properties :

    
Float: left - > element will be attached to the left of the parent element .
    
Float: right - > element will be attached to the right of the parent element .
    
Clear : left - > element will be attached to the left and below .
    
Clear : right - > element will be attached to the right side and under
    
Clear: both - > element will be in a position above the bottom element .Picture below is the basics of setting / format with css position :







Margin -> distance / boundary element with another element

Border -> border / edge element gari

Padding-> spacing element with element content (child elements)

Here the picture below is a standard format to make an appearance with CSS:

writing sample css:


<html>
<head>
<style type = "text/css">
#header {
width:900px;
height:50px;
border: 1px solid #640404;
}
#headerLeft {
width:400px;
background-color:#CCCCCC;
height:50px;
float:left;
text-align:center;
}
#headerRight {
width:450px;
background-color:#999999;
height:50px;
float:right;
text-align:center;
}
</style>
</head>
<body>
<h1>Sample</h1>
<div id = "header">
<div id="headerLeft">Header Left</div>
<div id="headerRight">Header Right</div>
</div>
</body>
</html>





There are 3 ways to install the CSS in HTML documents , namely :


=> External Style Sheet ( CSS different files from HTML files ) ,
=> Internal Style Sheet ( CSS code installed in the HTML head tag )
=> Inline Style Sheet(CSS code directly mounted on HTML tags,not recommended)
I suggest you use the External Style Sheet because it is easier to manage 

.Here I will explain the basics of CSS . Immediately, we try the following        code :


Placement of CSS in HTML


internal CSS

The method of writing the CSS code directly in the HTML file . 

example :

<html>
<head>
<style type = "text/css">
. header {
width: 900px ;
height: 50px ;
border: 1px solid # 640404 ;}
. headerLeft {
width: 400px ;
background-color : # CCCCCC ;
height: 50px ;
float: left ;
text-align : center ;
}
. headerright {
width: 450px ;
background-color : # 999999 ;
height: 50px ;
float: right ;
text-align : center ;
}
< / style>
< / head>
<body>

external CSS

separate CSS file with HTML . Create a file with ekstention . Css . 

example :
<html>
<head>
<link rel="stylesheet" type="text/css" href="public.css"/>
< / head>
<body>
< / body>
< / html >

inline CSS

Writing CSS code in HTML tags .

example :

<html>
<head>< / head>
<body>
<div style="background-color:#999999; text-align:center;"> Inline CSS 
< / div >
< / body>
< / html >


How to Design a Paging Using Css

       In this post I will tell you how to mendesaign a paging using css. By using CSS, we increasingly look cool paging and paging better than those not in the design. Ok let's start the stages:
1. Create a new page at page text editor, and name the file index.php. Then type the following script:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
 
<div id="conatiner">
            
<P> Paging Design Using CSS < / P >
    
< / hr >
    
<div class="p">
    
<a href="#" class="page"> 1 < / a>
    
<a href="#" class="page"> 2 < / a>
    
<a href="#" class="page"> 3 < / a>
    
<a href="#" class="page"> 4 < / a>
    
<a href="#" class="page"> 5 < / a>
    
<a href="#" class="page"> Last < / a>

  
< / div >< / div >< / body>< / html >2 . Then we make cssnya style . Copy and paste the script below :@ charset " utf - 8 " ;/ * CSS Document * /# conatiner {
            
background: # CCC ;
            
padding : 20px ;}. page {
            
display: inline - block;
            
padding : 5px 9px ;
            
margin-right : 4px ;
            
border- radius : 3px ;
            
border: 1px solid # 999 ;
            
background: # 06F ;
            
font-size : 12px ;
            
font - weight: bold ;
            
text-decoration : none ;
            
color: # FFF ;
            
text-transform : capitalize ;}. page : hover {
            
background: # 333 ;}. active , . active : hover {
            
background: # 757272 ;
            
border-color : # 403C3C ;
            
color: e9e9e9 ;
            
cursor : default ;}. p {
            
font-family : " Comic Sans MS ' , cursive ;}The result :



To get the full script please download the file here.

May be useful. :)

Know Function Date

      Perhaps there among you who only know the common function to display the time format, such as year, month, and date (Ymd) and also time (hours), such as (H: i: s). Have the date function types such as Checkdate, Date, getdate, and so forth. Okay let's discuss one by one.
       1. Checkdate function ()
This function is used to check the validity of a date, or the date of validation of rest. The following general form that I will give.

Checkdate (month, day, year)

Months have parameter numbers 1 to 12, representing naming the month of January to December.

Today has parameter numbers 1 to 30/31 and 28/29 if it is February, which have a matter of days in a month Mittenwald.

Years have a valid parameter number from 1 to 3000 more.

<?
var_dump (checkdate (12,31,2000));
var_dump (checkdate (2,29,2003));
var_dump (checkdate (2,29,2003));
?>


So the result is as below.





Looks checkdate function can perform perfectly validity date. False results out, is not valid because we check on February 29, 2003 {checkdate (2,29,2003)}, that date does not exist (you may check in calendar ea).
Try to look at the example below, you can probably understand.

<?
$ try = checkdate (2,29,2003);
echo "February 29, 2003? Reviews";
if ($ try == true) {
             echo "Date <b> Fit </ b>";
}
else {
             echo "Date <b> No Match </ b>";
}
?>
<br />
<?
echo "January 31, 2011? Reviews";
$ try = checkdate (1,31,2011);
if ($ try == true) {
             echo "Date <b> Fit </ b>";
}
else {
             echo "Date <b> not match </ b>";
}
?>

So the result is below the following.





2.     Function Date ()
This function is used to display the current date in accordance da time date format used. The following general form that I will give:

Date ('Function Date')
For example:

Date ('Y-m-d')

See good examples of this script:

<?
$ date = date ('l, d F Y');
$ hour = date ('H: i: s: A');
echo "Day / Date:";
echo "<b> $ date </ b> Reviews";
echo "Hours";
echo "<b> $ hour </ b>";
?>

And the results under the following:





Up here so hopefully I gave a tutorial can be useful.