473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

blockquote in a speech buuble?

hi,

can anyone tell me how to use CSS, whether using blockquote or a CSS
class, to allow me to show quotes in a speech bubble?

thanks.

Oct 11 '06 #1
5 3889
Carter Brandon schrieb:
can anyone tell me how to use CSS, whether using blockquote or a CSS
class, to allow me to show quotes in a speech bubble?
What is a speech bubble?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Oct 11 '06 #2
Johannes Koch <ko**@w3development.dewrites:
Carter Brandon schrieb:
can anyone tell me how to use CSS, whether using blockquote or a CSS
class, to allow me to show quotes in a speech bubble?

What is a speech bubble?
_______
/ \
| this is |
\ ______/
//
'
O_/
/|
|
/ \

Which looks like the sort of thing that could be done with a
border and some images covering up the corners.

--
Jón Fairbairn Jo***********@cl.cam.ac.uk
Oct 11 '06 #3
Jón Fairbairn schrieb:
Johannes Koch <ko**@w3development.dewrites:
>What is a speech bubble?
_______
/ \
| this is |
\ ______/
//
'
O_/
/|
|
/ \
I wondered whether the OP really meant this.
Which looks like the sort of thing that could be done with a
border and some images covering up the corners.
and the little triangle pointing to the speaker's mouth.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Oct 11 '06 #4
"Johannes Koch" <ko**@w3development.dewrote in message
news:45***********************@authen.yellow.readf reenews.net...
Jón Fairbairn schrieb:
>Johannes Koch <ko**@w3development.dewrites:
>>What is a speech bubble?
_______
/ \
| this is |
\ ______/
//
'
O_/
/|
|
/ \

I wondered whether the OP really meant this.
>Which looks like the sort of thing that could be done with a
border and some images covering up the corners.

and the little triangle pointing to the speaker's mouth.
Can you do backgrounds on the pseudo elements before and after?

If so you might be able to do a fixed-width, variable height speach bubble,
with square edges and rounded corners...

300px wide example...

blockquote {width: 300px; border-left: 1px solid black; border-right: 1px
solid black}
blockquote:before {width: 300px; height: 10px; background:
url("300x10pxImageOfRoundedCornersAndTopBorder.png ")}
blockquote:after {width: 300px; height: 20px; background:
url("300x20pxImageOfRoundedCornersTriangleBitAndBo ttomBorder.png")}

However, I suspect that backgrounds aren't supported in the before and after
pseudo elements. If not, these might be a good addition to a future css
spec.

Martin
Oct 16 '06 #5
"Martin Eyles" <ma**********@NOSPAMbytronic.comwrote in message
news:12*************@corp.supernews.com...
"Johannes Koch" <ko**@w3development.dewrote in message
news:45***********************@authen.yellow.readf reenews.net...
>Jón Fairbairn schrieb:
>>Johannes Koch <ko**@w3development.dewrites:
What is a speech bubble?
_______
/ \
| this is |
\ ______/
//
'
O_/
/|
|
/ \

I wondered whether the OP really meant this.
>>Which looks like the sort of thing that could be done with a
border and some images covering up the corners.

and the little triangle pointing to the speaker's mouth.

Can you do backgrounds on the pseudo elements before and after?

If so you might be able to do a fixed-width, variable height speach
bubble, with square edges and rounded corners...

300px wide example...

blockquote {width: 300px; border-left: 1px solid black; border-right: 1px
solid black}
blockquote:before {width: 300px; height: 10px; background:
url("300x10pxImageOfRoundedCornersAndTopBorder.png ")}
blockquote:after {width: 300px; height: 20px; background:
url("300x20pxImageOfRoundedCornersTriangleBitAndBo ttomBorder.png")}

However, I suspect that backgrounds aren't supported in the before and
after pseudo elements. If not, these might be a good addition to a future
css spec.

Martin
A little experimentation, and it appears to work in firefox 2 RC 2 (but
unsuprisingly, not IE6) with a slight modification

You need to add this to the css off the pseudo elements

content: ''; display: block;

Martin
Oct 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Toby A Inkster | last post by:
In "the other place" Jukka has pointed out that semantically <blockquote/> is useless in many browsers, so I'm experimenting with Javascript to put some functionality back into <blockquote/>. ...
63
by: Tristan Miller | last post by:
Greetings. Do any popular browsers correctly support <q>, at least for Western languages? I've noticed that Mozilla uses the standard English double-quote character, ", regardless of the lang...
6
by: John Dunlop | last post by:
Suppose I want to mark up discourse within a BLOCKQUOTE, for example, from Lewis Carroll's /Alice's Adventures in Wonderland/: | 'Have some wine,' the March Hare said in an encouraging tone. |...
2
by: Onur | last post by:
Hi.All I'm working on a TTS application. It runs on my local pc (WindowXP pro) without any error. Microsoft Visual Studio .NET 2003, Microsoft .NET Framework SDK v1.1, Microsoft Speech...
14
by: Zhang Weiwu | last post by:
Hello. I have been using word processor like OOO for nearly 10 years and such layout is very usual to me: gopher://sdf.lonestar.org/I/users/weiwu/ooo_wrap_correctly.png but I found it's very...
37
by: Prisoner at War | last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits' end: I want to make bold several lines of text which have a pair of <br /tags between them...seems like the <b></bdo not "carry...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.