交換

用我的皮膚換到智慧
用我的眼睛換到知識
用我的生命和熱情又會換到甚麼呢?
Advertisements

Open Source License Research

因為使用open source的比例越來越重

也是時候研究一下他們的license

不過那些條款實在太難懂了

先記下來以後再慢慢看

Apache License, Version 2.0

GNU General Public License version 3 (GPLv3)

The GNU Lesser General Public License (LGPLv3)

Mozilla Public License 1.1 (MPL 1.1) :Licensing

Common Development and Distribution License (CDDL)

Common Public License Version 1.0 (CPL)

最好是有研究過的人跟我講是有甚麼分別啦~ 😛

Centering horizontally with CSS

Try to center a web page like wordpress blog with css.

center01

add this to you main container inside <body>

usually a <form> with this css properties.

.maxiForm{

  margin-left : auto ;

  margin-right : auto ;

  width : 700px ;

  height : 100% ;

  text-align : left;

}

width means the width of the content you want to show.

text-align : left I am going to explain it.

with this setting you can see the aligning is working in FF.

center02

But IE6 will fail because it ignores margin-left and margin-right.

We need to get around this by adding this CSS property.

body
{
text-align: center;
}

This will going to cause you trouble since all the things inside <body> is

now centered! That’s why we set text-align : left previously.

center03

I play this with Icefaces and Tomcat.

Your page should look alright now.