I want to add the quote box below (created in Photoshop) on my website but would love for it to be created “dynamically” with preferably HTML5/CSS3 (+ jQuery if not possible with HTML/CSS alone). Using images for the quotes is also possible, but would prefer none for the best responsive solution. Width can be fixed but height should adjust to contents within the box.
Googled and searched SO for a solution but couldn’t find one.
But! .. found some html blockquote element CSS (see below and [jsbin here][1]) that does everything but the lines, but don’t have the skills to get them “drawn” myself, so will appreciate if someone will help. Thanks!
Update
Getting close now!
See here: http://jsbin.com/giwafo/1/ (locked, clone to make changes)
The idea is to position a box that has the background color on top of the border on the <blockquote>
element, but I can’t seem to figure out how to do this so it adapts to the size of the quote/blockquote and is position correctly no matter what size the blockquote is.
Any ideas?
2
Answers
Thanks to @Jasper (see comments under my question above), I resolved it. Solution can be found here: jsbin.com/ziquzi/2.
CSS:
HTML:
hope it can help you