Pages

Showing posts with label CSS Tutorials. Show all posts
Showing posts with label CSS Tutorials. Show all posts

Wednesday, June 4, 2014

CSS Ordinary Tutorial


In our CSS3 tutorial you will learn how to use CSS3 to control the style and layout of multiple Web pages all at once.

Examples in Each Chapter

This CSS tutorials contains hundreds of CSS3 examples.
With our online editor, you can edit the CSS and click on a button to view the result.

CSS3 Example

body
{
background-color:#d0e4fe;
}
h1
{
color:orange;
text-align:center;
}
p
{
font-family:"Times New Roman";
font-size:21px;
}

 CSS3 References

At W3Schools you will find complete CSS3 references of all properties and selectors with syntax, examples, browser support, and more.

Friday, May 23, 2014

polished Drop Menu with CSS only make the build

Why can we like to use Drop Menu to show our navigation? as a result of, it saves house for our web site. If you’re building an internet site with several classes, you would like to use sink menu technique evidently. we are able to realize over net plenty of tutorials show North American country the way to build a Navigation with drop result by victimization JavaScript. Today, with this tutorial, you'll see a easiest method to create a same result by victimization CSS solely. With some CSS make-up, your menu are going to be elegant. undecided that one is best, except for certain it’s the best menu comes with drop effect: horizontal and vertical navigation.

Step 1: HTML Code

As I same on top of, this tutorial comes with CSS solely, you don’t have to be compelled to embrace any JavaScript to your  tag

  <ul id="navigation">
    <li class=""> <a href="#">Parent Item 1</a> </li>
    <li class=""> <a href="#">Parent Item 2</a>
      <ul>
        <li class=""> <a href="#">Child Item 1</a> </li>
        <li class=""> <a href="#">Child Item 2</a> </li>
        <li class=""> <a href="#">Child Item 3</a> </li>
        <li class=""> <a href="#">Child Item 4</a> </li>
        <li class=""> <a href="#">Child Item 5</a> </li>
      </ul>
    </li>
    <li class=""> <a href="#">Parent Item 3</a>
      <ul>
        <li class=""> <a href="#">Child Item 1</a> </li>
        <li class=""> <a href="#">Child Item 2</a> </li>
      </ul>
    </li>
    <li class=""> <a href="#">Parent Item 4</a> </li>
  </ul>

Step 2: CSS Code

Ya! consider CSS code below. i will be able to organize CSS code generator into every applied half. CSS code for the hold Navigation and Parent things is:

/* Navigation */
#navigation {
    list-style: none;
    font-family: "Century Gothic", Verdana, Arial, Sans-Serif;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

/* CSS for each Parent Item */
#navigation li
{
    clear: both;
    height: 2em;
}

#navigation li a
{
    float: left;
    display: block;
    padding: 4px;
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-right: 10px;
}

/* Change background color and font color of parent items when mouse hover */
#navigation li:hover a,
#navigation li a:hover
{
    background: #999;
    color: #fff;
}
 Finally, we've to reset and re vogue the link within every kid item as a result of the link
 already formatted higher than, you'll be able to realize it within css code block of Parent Item.
 
/* Reset and re style link of each child item */
#navigation li:hover ul li a,
#navigation ul li a
{
    display: inline;
    padding: 0 6px 0 0;
    float: none;
    text-transform: lowercase;
    color: #999;
    background: none;
}

#navigation li:hover ul li a:hover,
#navigation ul li a:hover
{
    background: none;
    color: #000;
}

That’s all we want to create the Navigation works.

[smart ads]

In this CSS tutorials, I solely show you ways to create the horizontal drop. you'll simple to try to to a similar with sink vertical menu result by downloading my code.

Thursday, May 15, 2014

sprightly make Web Banners With CSS3

Hey there folks! nowadays we’re reaching to take a glance at spicing up our internet banners, ads or any content for that matter, with CSS3 animations.

Firefox and Web Kit browsers are presently the sole browsers that support CSS animations, however we’ll take a glance at however we will simply create these ads additionally operate in alternative browsers (which I’ll dearly talk over with as eighteenth century browsers). However, don’t expect excellent support for all browsers (specifically that is seven and lower) once experimenting with trendy CSS Tutorials.

OK then, let’s build some kick-butt, animated internet banners!

The Markup

First off, we’re reaching to structure the ad’s components by parturition out the hypertext mark-up language. At this time, we’ll have to be compelled to assume through however we wish the animation to operate – as this may result the child/parent structure of our markup.
In order to grasp our markup structure, let’s focus in on the boat for a second:

<ul id="boat"> <!-- Groups the boat's elements -->
    <li> <!-- The boat itself -->
        <div id="question-mark"></div> <!-- The question mark (no crap) -->
    </li>
</ul>

Now, once you read the primary ad on the demo page, there ar three separate animations going down on the boat:

  1.  AN animation that slides the boat in from the left. this can be applied on to the unordered list (group).
  2.  AN animation that provides the boat a pleasant bobbing result – simulating the boat floating on water. this can be applied on to the list component (boat).
  3.  AN animation that fades within the punctuation mark. this can be applied on to the div (question mark).

The CSS

Before we tend to jump into the very fun stuff and begin invigorating, we tend to still have to be compelled to vogue the ad and are available up with a pure CSS retreat for browsers stuck within the eighteenth century.
Don’t worry tho' – neither folks need to be in this poor, developer’s shoes. this can be however we’ll give magnified browser support:

/* CORRECT WAY */
 
@keyframe our-fade-in-animation {
    0%   {opacity:0;}
    100% {opacity:1;}
}
 
div {
    opacity: 1; /* This div is visible by default */
    animation: our-fade-in-animation 1s 1;
}

As you'll be able to see, the div can show albeit the animation isn't ready to play. If the animation is in a position to play like God supposed, the div can instantly hide and therefore the epic animation you created can follow through.

Animated subject matter Tabs with CSS3

In this tutorial we tend to are getting to implement some straightforward CSS3 content tabs mistreatment radio buttons at the side of the :checked pseudo-class and relative combinatorial.
Content tabs are a awfully common and acquainted part in net style, and infrequently their end up to be pretty helpful. So, during this tutorial we tend to are getting to implement some straightforward CSS content tabs mistreatment radio buttons at the side of the :checked pseudo-class and relative combinatorial.

Note that the CSS3 properties can solely add browsers that support them.

The Markup

We will be mistreatment input components to attach to the division with the category content. The content division includes all of the “tab pages”. for every input part we’ll have a label part. All labels are going to be titled like tabs.


<section class="tabs">
    <input id="tab-1" type="radio" name="radio-set" class="tab-selector-1" checked="checked" />
    <label for="tab-1" class="tab-label-1">About us</label>
     
    <input id="tab-2" type="radio" name="radio-set" class="tab-selector-2" />
    <label for="tab-2" class="tab-label-2">How we work</label>
     
    <input id="tab-3" type="radio" name="radio-set" class="tab-selector-3" />
    <label for="tab-3" class="tab-label-3">References</label>
     
    <input id="tab-4" type="radio" name="radio-set" class="tab-selector-4" />
    <label for="tab-4" class="tab-label-4">Contact us</label>
             
    <div class="clear-shadow"></div>
                 
    <div class="content">
        <div class="content-1">
            <p>Some content</p>
        </div>
        <div class="content-2">
            <p>Some content</p>
        </div>
        <div class="content-3">
            <p>Some content</p>
        </div>
        <div class="content-4">
            <p>Some content</p>
        </div>
    </div>
</section>

Every input part encompasses a worth, and that we will forever create associate degree input elite by default by adding the checked attribute.

The CSS

The first factor we want to try and do is to outline some dimension and conceal the inputs by setting their opacity to 0:

tabs {
    position: relative;
    margin: 40px auto;
    width: 750px;
}
.tabs input {
    position: absolute;
    z-index: 1000;
    width: 120px;
    height: 40px;
    left: 0px;
    top: 0px;
    opacity: 0;
    cursor: pointer;
}
.tabs input#tab-2{
    left: 120px;
}
.tabs input#tab-3{
    left: 240px;
}
.tabs input#tab-4{
    left: 360px;
}

When we tend to need a content to seem (label clicked) we set the opacity to one and lift the z-index as a result of we wish this content division to air high of all the others:

.tabs input.tab-selector-1:checked ~ .content .content-1,
.tabs input.tab-selector-2:checked ~ .content .content-2,
.tabs input.tab-selector-3:checked ~ .content .content-3,
.tabs input.tab-selector-4:checked ~ .content .content-4 {
    z-index: 100;
    opacity: 1;
    transition: all ease-out 0.2s 0.1s;
}

In this CSS tutorials we tend to simply went through the fundamental example that may fade in/out the contents. you'll be able to realize a lot of designs and effects within the demos.

Monday, May 12, 2014

What is HTML5 &CSS Capable ?

After analyzing our new focus here at 1WD, that primarily is teaching new, young, sty leers concerning net design and serving to them improve their skills and to start out within the business, we have a tendency to completed that we actually ought to go as deep as doable into the fundamentals. And whereas we have a tendency to lined several of those already, 2 basic items area unit still missing from the web site, and these 2 area unit in-depth introductions and discussions concerning HTML5 and CSS3. so it's one in all my assignments for ensuing amount to show you concerning these 2 technologies and, after this, to make many CSS tutorials for you. therefore within the next 2 to a few months, I'll cowl aspects of front-end net style, basic cryptography and tutorials concerning them. Buckle up and find able to become higher at coding!