View Single Post
Old 06-05-2011, 07:32 AM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Question for the CSS experts

I've run across a book from PG that uses a lot of the following to format poetry.

Code:
style="margin-left: 65%;"
style="margin-left: 33%;"
I could build

Code:
.marginleft65{
margin-left: 65%;
}
.marginleft33{
margin-left: 33%;
}

I began to wonder if there is some way to parameterize a CSS definition so that the actual value can be inserted as needed. e.g.

Code:
.marginleft{
margin-left: ??;
}
I've done a lot of searching throught the references but no luck. Probably not possible, .

Last edited by Jellby; 06-05-2011 at 07:42 AM.
crutledge is offline   Reply With Quote