StylizedWeb is a web design trends and tutorials blog, maintained by Ross Johnson who also runs a web design company and design blog.

Categories Archive

Popular Posts
Advertisement
Basecamp The Web Design Sketchbook
Najbolje ponuda IT poslova u Srbiji na itposlovi.info Advertise on Stylized Web

MoreCSS Library Review

add to Save to Delicious Save to Stumble Save to Digg
The Web Design Sketchbook

MoreCSS is a fantastic Design oriented JavaScript library made by YellowGreen which offers a CSS coder lots of new possibilities inside the CSS file itself like creating popups, various effects and better properties control. And also, when you get used it ti, a real time saver!

There's no new syntax to learn and no programming skills needed, file is really small - 6 KB core script (GZIP compressed, 12 KB uncompressed), cross-browser compatible for Internet Explorer 6+, Firefox 2+, Opera 9+, Safari 2+, valid W3C CSS...

MoreCSS

You can download latest version directly here or you can go to the download page for changelog and more resources. MoreCSS is very well documented with good descriptions and working examples.

How to install

MoreCSS runs automatically on page load and applies the properties written in external stylesheets to the specified elements. You do not need to configure the code or anything. Just include MoreCSS.js and the external stylesheet(s) in your page header. Be sure that you include the stylesheet(s) at first, then MoreCSS.js and at least all plugin scripts.

What can you do with it?
  • add-class - Add the specified CSS class to an element, very good example is zebra-style table, it can be used for script generated lists for example in WordPress (list of archives, posts...)
  • content - Adds dynamic content before / after static content. Enhanced cross-browser solution for CSS property.
  • default-value - Adds a default value with typical on focus behaviour to the specified input field.
  • include-content - Includes the content of a file (via AJAX).
  • target - Opens the link target in a new window, popup or layer.
  • tooltip - Adds a styleable tooltip to the cursor position.
  • fade - Opacity fade effect.
  • and much more ...
How to use

Syntax Elements
The syntax in MoreCSS is very similar to real CSS, but with some limitations because of performance reasons. But MoreCSS has also some special syntax elements for advanced functions.

Properties
Once you have installed MoreCSS you can use the properties in the same way as regular CSS properties. In the left menu you will find all currently built in properties and working code examples for each property. With plugins you can include special properties for visual effects and more.

Write your own plugins
MoreCSS allows you to write your own plugins using the Library Functions and using the Core Properties

Example code
 
 
/* HTML */
<table id="example_1">
<tr>
<td>Lorem ipsum dolor</td>
<td>Lorem ipsum dolor</td>
</tr>
</table>
 
/* CSS */
 
tr.blue td {
	background-color:#D0E3FF;
	color:#FFFFFF;
}
 
/* MoreCSS */
#example_1 tr:every-second-child {
	add-class: blue;
}
 

Leave a comment on Stylized Web Have some feedback? Leave a comment



Talk of the town
  • Section09: Thanks so much for this! I was wondering if there is a way to limit the amount of posts that are viewable?...
  • KUYUMCU KARAGĂ–Z: What is saying.Really it ripe nice.Yours respectfully.
  • Mike: The golden section is a really interesting and highly applicable bit of maths. I’m sure there are many...
  • CharlieM: I think they really went beyond on this article. Keep up the great work!
  • Dan: Thank you, thank you, thank you!
Amigos

What do you think?





9 Responses so far

By Carlos Hermoso
on December 2, 2008

It looks good. It’s worthy to try it

By James
on September 24, 2008

Looks really good actually. I’m gonna stick with jQuery because it offers more in the way of non-presentational features, however MoreCSS is impressive!

By lee
on September 17, 2008

Awesome, this will save some time!

By Ignacio Ricci
on September 15, 2008

Cool. It’s not like JQuery or other stuff.
This is really made people who know a bunch about CSS, but few JS.

And that’s me :D

By Thomas Milburn
on September 15, 2008

Sounds very much like JQuery to me except with different syntax. Looks goo so I might try it out.

By Dan Harper
on September 15, 2008

Nice! I’ve definitely got to try this out. Looks great.

By Cris
on September 15, 2008

looks very easy to use, thanks

By Ivan
on September 15, 2008

awesome stuff, very helpful!

  1. Jan 22, 2009: www doyle s room com