Custom Blocks

Permalink
Hi there!

I am interested in creating my own simple Block. I have read a couple of documents and kinda understand how to add different options to each block.

The one thing I do not understand is, how do I add style/css to the block? I want my block to have a float: left; attribute, so when each block is created instead of appearing underneath, it sits next to its previous block added. I would also like it have a background color and a margin on its left.

How do I go about this? I had a look at the files that make up some of the blocks and could not see anything that would help me understand this.

Thank you

 
Jozzeh replied on at Permalink Reply
Jozzeh
add a file in your block folder named 'view.css'

This view.css file will be loaded when your block is added to a page.