Twitter Updates

Saturday 21 March 2009

Ruby Shoes defining centre point of text

I figured out this method for defining the centre point of a block of text. Actually you define the start and width of a flow element of which text can be centred in.
#Centred Text
@app.flow (:left => 50, :width => 60) {
para ("Centered Text", :align => "center")
}

No comments: