![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
to simply add two quote images around some text. [...] anyone know a way to make it work at all? thanks. |
#3
| |||
| |||
|
|
liketofindoutwhy schrieb: to simply add two quote images around some text. [...] anyone know a way to make it work at all? thanks. Use the appropriate characters instead of images? -- Johannes Koch In te domine speravi; non confundar in aeternum. * * * * * * * * * * * * * * *(Te Deum, 4th cent.) |
#4
| |||
| |||
|
|
to simply add two quote images around some text. seems quite simple at first but turns out all the obvious solutions are not as desirable as a perfect solution: please see http://www.0011.com/css/quote.html basically, Style 1 is just inlining the image, text, and image. Style 2 is using a table. Style 3 is using images as background. None of them actually is perfect... it seems so easy at first... anyone know a way to make it work at all? thanks. |
#5
| |||
| |||
|
|
Seehttp://tcl.sfs.uni-tuebingen.de/~hendrik/eclipse64.shtmlon what it |
#6
| |||
| |||
|
|
to simply add two quote images around some text. |
#7
| |||
| |||
|
|
liketofindoutwhy wrote: to simply add two quote images around some text. Just an idea: If you are fetching the quote dynamically anyway, can't you explode the quote, take the last word and put it in a non-breakable span (or inline div) together with the rightquote gif, then concatenate the whole thing again? This is not tested, and just an idea. - Daniel |
#8
| |||
| |||
|
|
is your method the same as what I suggest in Style 1b on that page? |
#9
| |||
| |||
|
|
liketofindoutwhy wrote: is your method the same as what I suggest in Style 1b on that page? * Oh, sorry, yes, it would be the same. I had forgotten that one when I came down to your last example. I don't think you can achieve what you want with HTML and CSS (2.1) - there seems to be a (mental) if- or unless-condition (quote never as the first element on a line) which would be hard, or impossible, to achieve with these non-programming languages. I tried a little bit with the :after thing, but it dosn't react to nbsp - neither in itself nor before it (as the last char in the quote itself. Seems like you are stuck with using a programming language. That said, I can't really see why that should represent such a big CPU-issue (you're not on a Commodore 64-server, are you? The strings are fetched anyway, right? Why not put the images around the string in the scripting language? - Daniel |
#10
| |||
| |||
|
|
On Oct 24, 4:08 am, Daniel Jung <j... (AT) uib (DOT) no> wrote: liketofindoutwhy wrote: is your method the same as what I suggest in Style 1b on that page? Oh, sorry, yes, it would be the same. I had forgotten that one when I came down to your last example. I don't think you can achieve what you want with HTML and CSS (2.1) - there seems to be a (mental) if- or unless-condition (quote never as the first element on a line) which would be hard, or impossible, to achieve with these non-programming languages. I tried a little bit with the :after thing, but it dosn't react to nbsp - neither in itself nor before it (as the last char in the quote itself. Seems like you are stuck with using a programming language. That said, I can't really see why that should represent such a big CPU-issue (you're not on a Commodore 64-server, are you? The strings are fetched anyway, right? Why not put the images around the string in the scripting language? - Daniel haha funny... the servers we use are based on Superboard II... hm... maybe if the string is scanned backward for the space character that will be faster. otherwise, if the page has 20 of such quotations, and each quotation is 80 to 500 words, and 500,000 people use the server each day, then they can add up! oh yeah... i might be able to do that by javascript, so that it happens on the user's machine instead. (and if no javascript enabled, then just a different format... no big deal). |
![]() |
| Thread Tools | |
| Display Modes | |
| |