Search This Blog

Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Thursday, 31 December 2009

Cascading Style Sheets for beginners

CSS or Cascading Style Sheets is a stylesheet language used to set the display of a document written in markup language. CSS used to format web pages written in HTML or XHTML format. Even so, the language can be used for all types of XML document, including SVG and XUL. CSS specifications set by the World Wide Web Consortium (W3C).

CSS is typically used by the writer and the reader to determine the web page colors, fonts, layout, and display various aspects of web documents. CSS's main function is to separate the contents of documents (written in HTML or other markup language) with the presentation of documents (written in CSS). This separation aims to improve the accessibility of content, providing more flexibility and control to display the document, and reduce complexity and repetition in structural content.






CSS enables the same page to be displayed in different ways for different presentation methods, such as through a screen, print, voice (when read by a browser-based voice or screen reader), as well as braille readers. HTML or XML page that also can be displayed together in different ways, both in terms of style or color scheme of the display using CSS.

CSS Advantages:

   
1. Update the look is more easily
   
2. Smaller bandwidth burden
   
3. Modifications easier web templates
   
4. More easily used on mobile phones
   
5. Seacrh engine friendly
   
6. If we want to change a theme of a web page, just modify the css alone.
   
7. A CSS can be used many web pages.

Lack of CSS:

   
1. Views on different browsers.
   
2. Sometimes there is also a browser that does not support CSS (older browsers).
   
3. Must know how to use it.
   
4. needed more time in the making.
   
5. Not to mention there is a bug / error in the CSS.
 

CSS can be applied in 3 ways:

   
1. Directly written to the tag head.

   
2. Using an external file. That is, any css code stored in a file with type. Css and later declared head tag in the following manner:

   
3. Applied directly to the relevant tag

In writing CSS code has its own rules. Perhaps for those of you who are still very common on CSS, this article could be used as learning material for you.

How to declaring and writing CSS

   
1. Using sign # as the prefix. Examples:

      
# my_style (
      
background-color: # 000;
      
font-color: # fff;
      
)

      
To declare, as will be labeled # then attribute that is used is id. So the example declaration is:

      
blah blah blah

      Well .. so the result will be like this:

      
bla bla bla

      
But remember, the nature of the id is unique. Hence there can be no other elements that use the same id in a CSS.

   
2. Using the dot or dot (.). as a prefix, for example:

      
. my_style (
      
background-color: red;
      
font-color: # fff;
      
)

      
To declare, for wearing the sign (.) Then the attribute is the class used. So the example declaration is

      
text

      Well .. so the result will be like this:

      
bla bla bla

      
Well .. if the nature of the id is unique, then the other hand, if the class is not unique and can be applied more than the same class 1 in a html doc.

   
3. Without wearing a # or (.) But directly applied to a html code, for example:

      
div (
      
background-color: blue;
      
)

      
Well if you use this way, then all the div tags will have the same style as CSS code.

 

Read More...

View blog reactions

Friday, 28 August 2009

The easy way to put adsense only within 48 hours

For the bloggers around the world who use the facility from blogger.com can rejoice because now they can start an online business only 48 hours of activation.

language of the bloggers would blog is different, there are french, germany, india, china, japan, and so forth. And, to start Google Adsense with fairly easily, change the language of your blog into English.

It's easy once:
1. sign in your account.

2. emerged as the dashboard, click settings.

3. select format

4. Replace the languages available in English.

5. save settings

6. after that will appear next to link the new CSS layout called "cash".

7. click the link and start your Adsense.

8. wait until 48 hours activation.

9. check your email to find out more.

10. please try.
Read More...

View blog reactions

how to turn bitmap images into vector images in Macromedia Flash 5

Bitmap image can cause a large file size. You can use the Trace Bitmap command to convert bitmap images into vector images that can be edited.

When you import a bitmap image and use it in a flash movie you MUST include it in LIBRARY. but when you turn it into a vector image, you can just delete them from the library for bitmap and vector images are stand alone.
If the imported bitmap image has a level of difficulty of complex image and color very much, turning it into a vector image will reduce the file size. You can use several options in the dialog box to match the trace bitmap file size and image quality.

Step work:

1. Select the image that will be imported into flash.

2. click on the bitmap image.

3. MODIFY menu-> TRACE Bitmap dialog box that appears like this:

* Color Threshold: the larger (1-500), the fewer colors used.
* Minimum Area: The smaller (1-1000) more detail.
* Curve Fix: select very smooth in order to use a pencil with a fast and smooth movements.
* Corner Threshold: determines the resulting corner (sharp / blunt)

4. You can experiment yourself in changing these values for the effects meghasilkan interesting.

5. Click OK in the Trace Bitmap dialog box.

6. Select the Arrow Tool and click a few colors. each time you click on different pictures, will appear showing the dotted image area. This is what is meant by minimum areapada Trace Bitmap dialog box.

7. To edit a picture in the Trace Bitmap to vector. Select all select tool and click on the image.
Read More...

View blog reactions