W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Vertical rhythm and images

From: Rob Crowther <robertc@boogdesign.com>
Date: Tue, 15 Feb 2011 18:48:04 +0000
Message-ID: <4D5ACA64.6090608@boogdesign.com>
To: www-style list <www-style@w3.org>
Hi All

I came across this question on StackOverflow today 'Is it possible to 
keep vertical rhythm using only CSS?':

http://stackoverflow.com/questions/4986944

Ignoring the specifics of the question, it seems like a useful thing for 
CSS to be able to do is set some element height to the closest multiple 
of a given value (eg: for a line height of 2em, either 2em or 4em or 6em 
or ... depending on the intrinsic size).

The functionality already exists (sort of) in the 'round' value on 
'border-image-repeat' - this is doing the same sort of thing, but with 
the appropriate slice of the border image.  How feasible would it be to 
extend this to arbitrary elements?

Rob
Received on Tuesday, 15 February 2011 18:48:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT