You can quote me on that

For those designers who want to do the fancy-pants block-quotes thing, here is the CSS. Note that you have to put a DIV element in there to give it padding and close the quotes. That’s because the current specification for CSS do not allow for more than one background image for any single element. This may change in the future, but for now, we must write fairly non-semantic markup in order to achieve the cool effect.

blockquote {
background: transparent url(path/to/quote-left.img) left top no-repeat;
}
blockquote div {
background: transparent url(path/to/quote-right.img) right bottom no-repeat;
padding: 0 50px;
}

… And this is what it looks like:

I used to be really, really humble.

It just made me big-headed.
x jeremy jarratt

I added a :hover behavior to mine. What will you do?

About jeremy

x jeremy jarratt is a blogger, musician, artist, poet, web developer/designer, armchair philosophizer, teller of tales, and gadabout. Also, something he calls a "behavioral artist." (Not sure.) He is currently unemployed, although he has plans. BIG plans. Among the things that he has done for a laugh are minor fractures, cuts, scrapes, and various scabs. Though he's quick to point out that he's no imbecile, we're fairly certain that he thinks the word means some kind of medieval pharmacist. This is his latest home on teh internets - where he stores his swear words, when he's not hurling them at the sun in vain.
Tagged , , , , , , , , . Bookmark the permalink.

Comments are closed.