Posts Tagged

using

Creating An HTML Page Using On A Dreamweaver CSS Layout

CSS is a considerably more complex technology than HTML and using CSS to control the layout of your pages requires experience. Fortunately for us, Dreamweaver contains a wide variety of CSS layouts which can be used for creating both individual pages and also templates which can then be used to generate multiple pages.

To gain access to Dreamweaver’s preset CSS layouts, simply choose New from the File menu. The New Document window gives access to all the different types of web page that Dreamweaver is capable of creating. These page types are arranged in categories and CSS layouts are available both in the Blank Page and Blank Template categories.

If you choose the option « None » in the Layout column, no CSS file will be created; Dreamweaver will simply give you a blank HTML or XHTML page. Clicking on the name of each of the preset layouts displays a preview on the right. This gives you a rough idea of what the layout will look like. There are three column, two column and single column layouts available. These layouts use certain jargon that you may find confusing such as elastic, fixed liquid and hybrid. We will discuss these terms in another tutorial. At the moment, we are just concerned with creating an HTML page which is driven by one of Dreamweaver’s CSS layouts.

Having chosen a CSS layout, before clicking on the « Create » button you need to specify the way in which the CSS file will be linked to the HTML document. Next to the option labelled « Layout CSS » is a drop-down menu with three options: « Add to Head » will place all of the CSS rules inside the HTML document in the head section; « Add to New File », as the name suggests, will create a new external CSS file containing all the necessary rules; while « Link to Existing File » will place the necessary CSS rules in an existing CSS file you designate. This last option is useful if you’re adding the page to an existing site that already has a CSS file which you want to keep using.

As a general rule, it is normally preferable to place the CSS in an external file since this offers you greater flexibility in reusing the CSS rules contained in the file. If you don’t have an existing CSS file then choose « Create New File » and then click the Create button. Dreamweaver will prompt you to choose a location for the CSS file and will suggest a cryptic name, such as  » twoColElsLtHdr.css ». Feel free to enter a more memorable name. When you click the Save button, Dreamweaver will create both the HTML and CSS pages.

The author is a training consultant with Macresource Computer Solutions, a UK IT training company offering Adobe Dreamweaver training courses in London and throughout the UK.

What are the ways to create animation using CSS3

The launch of CSS3 was pinnacle to the current change in usage of CSS for developing web animations. Before which, people used resources such as Flash and JavaScript for designing and developing such animations, which includes animated images. There were certain aspects to CSS3 that made creating animations through it so much easier and so much fun. Let’s have a brief look at these aspects now.
To begin with, there are two components – the « styles » and « keyframes ». These components make using CSS an apt option for developing animations. How they make it happen is as follows:
* A « style » describes the CSS animation.
* A « keyframe » indicates the flow of animation styles from beginning through the end.
Advantages of CSS3 Animations
The following three features are major advantages, which the CSS animations have over other traditional animation techniques (which are script-driven).
* CSS makes it easy to create simple animations; also, one would not need to have knowledge on JavaScript or similar tools to work with CSS.
* Unlike JavaScript animations, which runs poorly even the simple animations (when not well made), the CSS animations run really well even when the system’s under moderate load. This is made possible by the rendering engine, which utilizes frame-skipping techniques to maintain performance and smoothness.
* Having the browsers themselves control the flow of animations (such as animation refresh rates, etc), has lead to best performance optimization and smoother animation flow.
Creating the Animations
Creating a sequence of CSS animation involves using the style component to set the animation’s properties and sub-properties. You get to configure the duration and timing of the animation, along with details related to how the sequence of animation should progress. But, you do not get to configure the appearance of these animations using the style, for which purpose you will be using the @keyframes component.
CSS Style –
The following are the style properties & sub-properties
animation-delay: This helps configure the time delay between different elements of the loaded animation and the sequential animations.
animation-direction: This configuration sets the direction of individual animations, and also states if the particular animation will repeat itself in the same sequence or in a different direction on its consecutive runs.
animation-duration: Sets the time an animation would take to complete its single cycle.
animation-iteration-count: Sets the number of times an animation would repeat itself. If set to infinite, the animation would go on indefinitely.
animation-name: This specifies the at-rule name, which describes an animation’s keyframes.
animation-play-state: You can configure an animation’s pause/play status.
animation-timing-function: With this configuration, you can establish the acceleration curves of the animation, setting its keyframes transitions.
animation-fill-mode: This configures the values applied to an animation, (before & after it’s execution).
@keyframes –
As mentioned before, the keyframes allow you to configure the animation’s appearance. For this, you will need to setup at least two (at-rule) keyframes. These keyframes represent how individual elements of the animation render themselves within a set time frame.
This time frame is denoted by a « percentage » system by the keyframes. A 0% represents the start of an animation, and 100% represents the finish; they are given as from/0% and to/100% respectively. Though both these are optional, they are very important, and thus, the browser by default computes all the attributes of the animation and starts and finishes it accordingly, when the values are not provided.
The following are CSS3 animation examples, which should give you a brief understanding of how this works.
Example 1:
25% {
font-size: 200%;
margin-right: 75%;
width: 200%;
}
This example shows that at 25% of the animation, the header will have the right margin at 75%, with the width being 200%.
Example 2:
from {
margin-right: 100%;
width: 500%;
}
to {
margin-right: 0%;
width: 100%;
}
This example has two keyframes; first occurring at 0% and the second at 100% (by default, since the values aren’t provided); this effectively starts and finishes an animation. The right margin is at 100% with a width of 500% at the start of the animation, and ends at 0% of the right margin with 100% width. Therefore, the browser animates a header from left edge to the right edge.
With that, by including additional keyframes you can add intermediate steps and thus, amend the CSS3 animations as per your requirements.

Read More…
http://www.k2bindia.com/what-are-the-ways-to-create-animation-using-css3/

With CSS3 you get to create animations that can ideally replace animations created through other tools. They are also, much easier and convenient to work with!

Regards,
webanalyst