CSS - Blockquote question

Hello,

I am trying to customize the blockquote so that the quotes appear just in front of the first letter in the text and the end quote just after.  For some reason my code is inserting space instead of having the quote inline.  My code is below.  Any help would be much appreciated.  Cheers!

blockquote {
width:350px;
quotes:"\201C" "\201D";
padding-left:30px;
	font-family:Georgia, "Times New Roman", Times, serif;
	font-style:italic;
	font-size:24px;
	/*line-height:21px;*/
	color:#494949;
	
}

blockquote:before, blockquote:after {
font:bold 60px/1px Times, serif;
color:#359800;
left: -10px;
top: -10px;
color: #7a7a7a;

}

blockquote:before {
content:open-quote;

}

blockquote:after {
content:close-quote;

}

Open in new window

1CougarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alexandre SimõesManager / Technology SpecialistCommented:
Looks good to me.
Here's a jsfiddle demo of your code: http://jsfiddle.net/AlexCode/kkph37go/

I tried it in Chrome.
0
MontoyaProcess Improvement MgrCommented:
when you say "inserting space.... not inline".. are you saying that the text is spreading to the next line, or do you mean that your "quotes" are not staying within the text?
0
MontoyaProcess Improvement MgrCommented:
I'd say to stay away from the 'width' setting, since it will limit what fits within the quotes. Just take it off, unless you have some other kind of restriction.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

1CougarAuthor Commented:
Hello and thank you for your responses.

For some reason this code in the style.css of my wordpress site gives me the attached screen shot.  I would like to know if you have any idea why the end quote is always on the line after the last character?  Also, the line height between the text is too big.  And, is it possible to add transparency to the quotes and position them?

Many thanks again,
0
1CougarAuthor Commented:
screen shot...Screen-Shot-2014-10-13-at-4.42.30-PM.png
0
MontoyaProcess Improvement MgrCommented:
delete width:350px;
0
MontoyaProcess Improvement MgrCommented:
alternatively, you could reduce your font size :)
0
1CougarAuthor Commented:
Taking out width gives me this screen shot.....

Screen-Shot-2014-10-13-at-5.05.42-PM.png
0
MontoyaProcess Improvement MgrCommented:
that's basically because of the size of your 'container', I believe. You have to make the text smaller, to make it fit within your container.

As far as positioning quotes, and making them transparent, you could do that if you 'faked' blockquotes by creating a div structure and using two different images. If you do that, you could basically put whatever kind of quotes you want, and put them anywhere you want.

Let us know and we can help w/ that.
0
1CougarAuthor Commented:
I have made the font smaller and taken width out and it is the same thing.  Screen shot attached.

Yes, I would probably prefer having the "fake" quotes with some transparency and be able to position them how I want.  If you could show with a sample fiddle perhaps....

Screen-Shot-2014-10-13-at-5.17.35-PM.png
0
COBOLdinosaurCommented:
Because blockquote is a block element there is a line feed before and after it.  It probably renders the way you want if you add display:inline; to the blockquote rule.

Cd&
0
GaryCommented:
Not sure what you are after, something like this?

http://jsfiddle.net/kkph37go/2/
0
MontoyaProcess Improvement MgrCommented:
here's a silly example: http://jsfiddle.net/iammontoya/0zjbekvn/

This in no way means that it cannot be done using blockquotes.. this is just a way to do it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1CougarAuthor Commented:
Hello all,

Thank you for your contributions.  I used a combination of your proposed solutions, so will divide up the points!

Cheers,
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.