Thursday, July 30, 2009

LI in CSS

CSS CODE


.iconlist{list-style: none;margin: 0;padding: 0;}





li.pdf{background-image: url(bullet_pdf.gif);

background-repeat: no-repeat;

background-position: 0 50%;

padding: 3px 0 3px 20px;

margin: .4em 0;}




li.doc{background-image: url(bullet_doc.gif);

background-repeat: no-repeat;

background-position: 0 50%;

padding: 3px 0 3px 20px;

margin: .4em 0;}





li.text{background-image: url(bullet_text.gif);

background-repeat: no-repeat;

background-position: 0 50%;

padding: 3px 0 3px 20px;

margin: .4em 0;}





li.htm{
background-image: url(bullet_htm.gif);
background-repeat: no-repeat;

background-position: 0 50%;

padding: 3px 0 3px 20px;

margin: .4em 0;}





Code in HTML:











Source file From: http://css.maxdesign.com.au/listutorial/10.htm
Change Background images for bullets~
CSS code:
li{
background-image: url(arrow.gif);
background-repeat: no-repeat;
background-position: 100% .4em;
padding-right: .6em;
margin: 1em 0;
}
*Margin can be set on the top, bottom or top and bottom of each list item. This version has a margin of ".1em" on top and bottom of the list items.


Tuesday, July 28, 2009

Tutorials and Texture website for Blender

Export GIF from Flash

Don't export your animation from flash to animated gif. flash doesn't create clean looking gif files, the lines are usually jagged and the colors dithered.My suggestion is to first export your movie as a bitmap sequence, and then import these bitmaps into a program such as JASC Animation Shop or Adobe ImageReady, which will produce a sharp and clean animated gif.

Thursday, July 23, 2009

3D Blender: Material indice

Source file from:
Topic: How to give many different materials to the same mesh (up to 16 different indice)

Select a cube and press TAB to change it to edit mode; activate the Face Select mode(CTRL + TAB). Click on the center of the face that is facing you in order to select it (Right Mouse Button). In the Editing menu (F9 key), press the New button in the Link and Materials tab. Material should increase from 1 Mat: 1 to 2 Mat:2. Using the small arrows pointing toward the left or the right, on each side of this field, you can toggle from a material index to another. Come back to 2 Mat:2. By clicking on the Assign button, you will give at the selected face the material bearing the index 2 Mat: 2, while all the other faces will keep the 2 Mat: 1 index.
In the Shading menu (F5 key), search in the Material tab the button which reads 2 Mat: 1. Change the Col of the Material.

"!important" in CSS

Cascading Style Sheets cascade. This means that the styles are applied in order as they are read by the browser. The first style is applied and then the second and so on. What this means is that if a style appears at the top of a style sheet and then is changed lower down in the document, the second instance of that style will be the one applied, not the first. For example, in the following style sheet, the paragraph text will be black, even though the first style property applied is red:
p { color: #ff0000; }p { color: #000000; }

The !important rule is a way to make your CSS cascade but also have the rules you feel are most crucial always be applied. A rule that has the !important property will always be applied no matter where that rule appears in the CSS document. So if you wanted to make sure that a property always applied, you would add the !important property to the tag. So, to make the paragraph text always red, in the above example, you would write:
p { color: #ff0000 !important; }p { color: #000000; }
User Style Sheets
However, the !important rule was also put in place to help Web page users cope with style sheets that might make pages difficult for them to use or read. Typically, if a user defines a style sheet to view Web pages with, that style sheet will be over-ruled by the Web page author's style sheet. But if the user marks a style as !important, that style will overrule the Web page author's style sheet, even if the author marks their rule as !important.

Sunday, July 12, 2009

What is Chinese Gooseberry and Foie Gras refering to?

Chinese gooseberry refers to Kiwi
Kiwi, Fruit of Actinidia sinensis, originally a native of China and also known as Chinese gooseberry; commercial growing began in New Zealand in 1906. A 60-g portion (one fruit) is a rich source of vitamin C; supplies 25 kcal (105 kJ).

Foie gras refers to Goose liver
Foie gras (French for "fat liver") is a food product made of the liver of a duck or goose that has been specially fattened. This fattening is typically achieved through gavage (force-feeding) corn, according to French law, though outside of France it is also produced using natural feeding. Pâté du foie gras was formerly known as "Strasbourg pie" in English due to that city being a major producer of this food product.