{Carrer web log} ←
Prototyping with Malo CSS Library
Monday, January 26, 2009 { 11 Comments }
Malo is ultra small css library for building web sites. It is meant to be structural base for small or medium web sites.Benefits:
- Ultra small (compressed is only 0,25 kb or 8 lines of CSS!)
- Personalized width of the page in (%, px, em)
- Super flexible
- Easy to use
Malo is build of simple CSS reset and the grid system. You can personalize everything else.
Malo works on the principle that every column can be divided into two, three, four and five parts. It also supports nested columns meaning divided columns can be divided again and again forming complex grid.
Practically if we have one column of 100%
100% = 50% + 50% /divided in two
100%=33,33% + 33,33% + 33,33% /divided in three
100% = 25% + 25% + 25% + 25% /divided in four
100% = 20% + 20% + 20% + 20% + 20% /divided in five
Or more complex:
100% = 50% + 50%(33,33% + 33,33% + 33,33% ) / second half is divided in three
Can you see the potential?
Lets Prototype!
We want site which has 955px width (we can use % or ems), centered layot and looks something like this:
Header
Navigation
2 – columns
4 - columns
3 -columns
Footer
First you should the naming system of Malo we have only .dp (div percent) and .clear class. Meaning dp20 is div 20%.
And that is it!
Some code
Ok we don’t have the main center container, so lets build it:
.main { margin:0 auto; width:955px; }
And the structure:
<div class="Main"></code>
<div class="dp100">Header</div>
<div class="clear"></div>
<div class="dp100">Navigation</div>
<div class="clear"></div>
<div class="dp50"> 1 Column</div>
<div class="dp50"> 2 Column</div>
<div class="clear"></div>
<div class="dp25"> 1 Column</div>
<div class="dp25"> 2 Column</div>
<div class="dp25"> 3 Column</div>
<div class="dp25"> 4 Column</div>
<div class="clear"></div>
<div class="dp33"> 1 Column</div>
<div class="dp33"> 2 Column</div>
<div class="dp33"> 3 Column</div>
<div class="clear"></div>
<div class="dp33"> Footer</div>
</div>
And the structure is ready!
We can add some text, pictures and navigation. In that case, we need some css:
We need to connect the main css library malo.css:
<link rel="stylesheet" href="css/malo.css" type="text/css" media="screen">
Then to add some extra css for navigation, images and border:
/* top border */ .dp100,.dp50,.dp33,.dp25{ border-top:1px solid #111;} p { padding:1em 0 1em 1em;color:#111;} p img { float: left; margin: 0.3em 0.5em 0.5em 0.5em; } p img.right { float: right; margin: 0.3em 0.5em 0.5em 0.5em; } blockquote { padding-left:1em; font-style:italic; } /* navigation */ #nav { margin: 0; padding: 0 0 0 10px; list-style-type: none; font-size:1.2em; font-weight:700; float: left; } #nav li { margin: 0; padding: 0; float: left; width: 70px; }
And the final result:
The Result
Malo is tested almost in every browser. In IE you have around minus 1px for only column. IE doesn’t handle percentage calculation very well without this fix there is a possibility that the grid won't work correctly.
You can download Malo at: http://code.google.com/p/malo/
11 Responses to “Prototyping with Malo CSS Library”
-
// Danny
// 1/28/2009
ciao Vladimir, mi chiamo Daniele e gestisco il blog ALTAMENTEDEORATIVO.COM.
vorrei chiederti il permesso di tradurre la tua pagina in italiano (se non lo hai già in programma tu)
dai un' occhiata al mio blog e se ti piace l'idea fammi sapere.
chiaramente i credits ti verranno dati ed anche i linkbacks.
aspetto tue notizie. - // Vladimir // 1/28/2009
- // // 2/05/2009
- // Vladimir // 2/06/2009
- // MacSkolan/Spotylist // 2/10/2009
- // Vladimir // 2/11/2009
- // Danny // 2/11/2009
- // Vladimir // 2/11/2009
- // Danny // 2/11/2009
- // // 12/30/2009
- // ardianzzz // 3/25/2011
<< Home
About Me <<<
Name: Vladimir Carrer
vladocar [at] gmail.com
Location: Verona, Italy
I'm a web designer, developer, teacher, speaker, generally web addicted ...
My projects <<<
- AI Prompt Directory
- Hand Drawn Icons
- Font Design Inspiration
- Font Pairings
- Free SVG Cut File
- Upcoming NFT projects
- Discord Tutorials
- Free Sublimation Designs
- Tech Feed
- MySQL Lite Administrator
- Quark Mini PHP CMS
- Formy - CSS Form Framework
- Emastic - CSS Framework
- Malo - CSS Library
- The Golden Grid
- 1 line CSS Grid Framework
- Two Lines CSS Framework
- Child Selector System - CSS Framework
- Better Web Readability Project
- Azbuka - CSS Typographical Base Rendering Library
- ClipR - bookmarklet for better reading
- CSS3 Action Framework
- CSS Mini Reset
- HTML5 Mini Template
- CSS Mobile Reset
- picoCSS - JavaScript Framework
- HTML Lorem Ipsum Crash Test
- Object Auto Documentation - JavaScript
- o - JS Library for Object Manipulation
- Foxy - CSS Framework
- Tumblr Free Theme - Better Readability Project
- Box - CSS Framework
- SMART CSS GRID
- nanoJS - Minimal JS DOM Library
- Flexy CSS Framework
- Katana is CSS Layout System made with Flexbox
- Micro CSS Reset
- 60 Grid System
- Simple CSS Button
- ramd.js JavaScript library for making web applications.
- Minimal Notes web app build with Vue.js
- Scribble Font for Prototyping & Wireframing
- Flex One - 1 CSS Class System
- Floaty - CSS Float Based Layout System
- Infinity CSS Grid
- CLI Convert websites into readable PDFs
- keywords-extract - CLI tool, extract keywords from any web page.
- screenshoteer - Make website screenshots and mobile emulations from the command line.
- Basic.css - Classless CSS Starter File
§§Previous Posts <<<
- Formy CSS Framework out of Beta
- 2008 Summary Report
- In the search of Holy Web Grid
- Emastic CSS Templates
- Malo CSS Library
- Emastic Beta3 released!
- Emastic - CSS Framework (Beta2) is out!
- When to use CSS framework?
- Emastic - CSS Framework(beta1) is out!
- Updates on Formy
Other Profiles <<<
Content is licensed under a Creative Commons Public Domain License