Saturday, September 17, 2011

Playing with css: working with position absolute

If you always want an element at a certain place without relativity to any other element, then we use this property "position:absolute;". While playing around with "position absolute", I learned that we do not use "margin", instead we use properties such as "top, bottom, right and left".

For instance, I have an element with class "example", I use "position absolute" in it as:
Hello

We can also give "float" values to "absolute positions" like
float:left or float:right

Pfeed for mongoid

As pfeed was originally for ActiveRecord, I had some problem integrating it in the mongoid. However, I forked the original pfeed and made it compatible for mongoid. The modified version of pfeed for mongoid can be found https://github.com/sadiksha/pfeed. This is suitable for mongoid version 2.0.2 and rails 3.0.0.