Pages

Monday, May 19, 2014

CSS Layout Inventor | CSS architect


About the CSS Layout Generator

The CSS Layout Generator was 1st free by Tony Arlette in Gregorian calendar month 2003, since then over 871,000 layouts are generated. Updated in Gregorian calendar month 2010, HTML5 doc type will currently be designated and a straightforward HTML5 model with applicable tags are created. different hypertext mark-up language and XHT

The generator helps you produce the structure of your web site model victimization valid HTML and CSS.

You can produce a fluid or fastened breadth floated column layout, with up to three columns and with header and footer. Values is laid out in either pixels, ems or percentages.

The generator needs a contemporary DOM capable browser with JavaScript enabled.
Instructions

To create your layout choose the structural parts your web site needs (header, footer, columns). Then specify a size within the field provided and opt for a background color from the color someone below.

Info popups square measure out there wherever you see   icon, simply hover over it for additional data.

Join the CSS Forum to recommend changes or kindle facilitate wherever required.
ML doc types square measure still out there.

A presentation subject to Object Oriented CSS

 

What is Object adjusted CSS?


The idea of ‘Object adjusted Programming’, is widespread among developers, and forms the essential for any trendy programing language. options like knowledge abstraction, modularity and inheritance build it a favorite in committal to writing large-scale applications.

Object adjusted CSS, because the name suggests, is implementing the ideas of OOP in structuring and building CSS3 rules, that area unit simple to recycle, thereby reducing the loading time and increasing the performance of websites incredibly! The key purpose here is, to spot, build and elegance standard reusable ‘objects’ in a very page, and to recycle it in multiple instances by extending them with extra options where required. Here associate degree ‘object’ refers to the essential markup language markup and its CSS rules. Apparently, here, the key challenge goes to be, distinguishing the ‘object’ and building rules for it.

Following area unit some key aspects in object-oriented approach to CSS building:

  1.     produce a part library
  2.     Separate instrumentation and content / Avoid Location dependent designs
  3.     Separate Structure and skin
  4.     Extend base objects victimization category names
  5.     keep on with linguistics category names

Pros and Cons?


Following such associate degree approach of building CSS has its own pitfalls and blessings

Here area unit a couple of cases, wherever adopting such a framework ‘may’ backfire:

  1.     OOCSS is suited to actually massive websites / application that area unit crammed with reusable parts. it's going to not provide desired ends up in smaller websites and applications. thus decide reasonably reckoning on the dimensions of the add hand
  2.     If not neatly used, making the part library will end up to be a large number, and become a maintenance nightmare for alternative coders
  3.     Documentation could be a should. every block of code ought to be clearly commented out with the proper points for alternative coders to soak up the idea, that otherwise will become too tedious just in case of a information transition

Some obvious blessings of adopting this approach are:

  1.       Less lines of CSS3 code
  2.     Cleaner markup language markup, with logically smart category names and hierarchy
  3.  linguistics markup, means that a lot of SEO friendly pages
  4.  much better page optimization, with a lot of quicker loading times, since most of the parts area unit reused
  5.  climbable markup and CSS3 code generator, wherever a lot of parts will be interplanetary into the library while not heavy alternative parts, because the base objects area unit freelance of the other containers
  6.  simply theme-able layouts, since amendments to the bottom object will utterly change virtually the total presentation layer instantly

CSS3 set seascape two picture




Welcome to the CSS3_seascape_two example

This straightforward, fastened breadth web site example is free beneath a resourceful Commons Attribution three.0 License. this suggests you're absolve to transfer and use it for private and industrial comes. However, you need to leave the 'design from css3 templates.co.UK' link within the footer of the example.

This example is written entirely in HTML5 and CSS3. The photos shown during this example were taken by Pine Tree State. you'll be able to read a lot of free CSS3 internet templates here.

This example could be a absolutely documented five page web site, with associate examples page that offers samples of all the designs accessible with this style. there's additionally a operating PHP contact kind on the contact page. All of the seascapes were taken by Pine Tree State - use as you want.

Thursday, May 15, 2014

The Page Turn Transitions with CSS3

In the previous couple of years, we have seen lots of single page websites lying round the net, most of them exploitation JavaScript for a few transitions impact. Well, currently i am gonna teach you the way you'll have your own, however instead i will be exploitation CSS Transitions and also the :target property to try and do all the magic.
In the previous couple of years, we’ve seen lots of single page websites lying round the net, most of them exploitation JavaScript for a few transitions impact. Well, currently I’m gonna teach you the way you'll have your own, however instead I’ll be exploitation CSS3 Transitions and also the :target property to try and do all the magic.

Markup

The HTML5 can contain 5 main divisions: a header and also the four content sections. every of the content sections goes to own associate degree ID and also the category panel. Moreover, we are going to add another division within which is able to have the category content. the primary content section that is #home can solely have the content category and can not need an additional division:


<!-- Home -->
<div id="home" class="content">
    <h2>Home</h2>
    <p>Some content</p>
    <!-- ... -->
</div>
<!-- /Home -->
 
<!-- Portfolio -->
<div id="portfolio" class="panel">
    <div class="content">
        <h2>Portfolio</h2>
        <p>Some content</p>
        <!-- ... -->
    </div>
</div>
<!-- /Portfolio -->
 
<!-- About -->
<div id="about" class="panel">
    <div class="content">
        <h2>About</h2>
        <p>Some content</p>
        <!-- ... -->
    </div>
</div>
<!-- /About -->
 
<!-- Contact -->
<div id="contact" class="panel">
    <div class="content">
        <h2>Contact</h2>
        <p>Some content</p>
        <!-- ... -->
    </div>
</div>
<!-- /Contact -->

In the header we are going to have the most heading and also the navigation:

<!-- Header with Navigation -->
<div id="header">
    <h1>Page Transitions with CSS3</h1>
    <ul id="navigation">
        <li><a id="link-home" href="#home">Home</a></li>
        <li><a id="link-portfolio" href="#portfolio">Portfolio</a></li>
        <li><a id="link-about" href="#about">About Me</a></li>
        <li><a id="link-contact" href="#contact">Contact</a></li>
    </ul>
</div>
 
Now, the most plan is to use the pseudo-class :target so as to feature a transition to this section. during this CSS example, we are going to be slippery  up and down our sections.

CSS

First we are going to provide vogue to our header and also the navigation. we wish to stay these on an equivalent spot the least bit the time, despite the fact that everything else are moving.

#header{
    position: absolute;
    z-index: 2000;
    width: 235px;
    top: 50px;
}
#header h1{
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    text-shadow: 0px 1px 1px rgba(0,0,0,0.4);
    padding: 40px;
    background: #000;
}
#navigation {
    margin-top: 30px;
    width: 235px;
    display:block;
    list-style:none;
    z-index:3;
}
#navigation a{
    color: #444;
    display: block;
    background: #fff;
    background: rgba(255,255,255,0.9);
    line-height: 50px;
    padding: 0px 20px;
    text-transform: uppercase;
    margin-bottom: 6px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-size: 14px;
}
#navigation a:hover {
    background: #ddd;
}
  
In order to vary the color of this item within the navigation, we’ll use the :target pseudo-class with the final relative selector to “get to” the various navigation item:

#home:target ~ #header #navigation #link-home,
#portfolio:target ~ #header #navigation #link-portfolio,
#about:target ~ #header #navigation #link-about,
#contact:target ~ #header #navigation #link-contact{
    background: #000;
    color: #fff;
}

And that’s all you would like. check up on the demos and you’ll see alternative samples of however you'll try this.

Hope you likeable this tutorial and perhaps you'll experiment together with your own effects.

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.

Wednesday, May 14, 2014

Creating an Impressive Product glass case with CSS3

impress.js could be a tiny, standalone library that produces it simple to style advanced CSS3 shows with attention-getting effects. however what if we tend to used impress.js for one thing aside from a presentation? this is often what we tend to do these days – we'll be spicing up a lucid recent product page with some CSS3 magic!

Using impress.js


With this little library, we will produce swish CSS3 transitions between the slides of our showcase. To do this, we've got to instruct impress.js on the way to orient the slides. this is often simple to try to to – we'll use knowledge attributes on the step dives. These attributes are translated into real CSS3 transformations by the library, reckoning on the present browser, and have an effect on the slide.
Impress.js supports variety of attributes:

    data-x, data-y, data-z can move the slide on the screen in 3D space;
    data-rotate, data-rotate-x, data-rotate-y rotate the part round the such that axis (in degrees);
    data-scale – enlarges or shrinks the slide.

The CSS3

To make the presentation work, we'll got to apply some CSS3 rules. the primary step is to vogue the presentation instrumentation and declare default styling for the slide parts.
assets/css/style.css



/*----------------------------
    Styling the presentation
-----------------------------*/

#impress:not(.impress-not-supported) .step{
    opacity:0.4;
}

#impress .step{
    width:700px;
    height: 600px;
    position:relative;
    margin:0 auto;

    -moz-transition:1s opacity;
    -webkit-transition:1s opacity;
    transition:1s opacity;
}

#impress .step.active{
    opacity:1;
}

#impress h2{
    font: normal 44px/1.5 'PT Sans Narrow', sans-serif;
    color:#444648;
    position:absolute;
    z-index:10;
}

#impress p{
    font: normal 18px/1.3 'Open Sans', sans-serif;
    color:#27333f;
    position:absolute;
    z-index:10;
}

#impress img{
    position:absolute;
    z-index:1;
}

As you'll see within the rules higher than, and within the HTML5 fragment within the starting of this tutorial, the #impress instrumentation is allotted a .impress-not-supported category. the category is removed providing the present browser supports the practicality needed for the library to run with success.