473,406 Members | 2,549 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,406 software developers and data experts.

Can I "inline" pull-quotes

I am looking for a reliable cross-browser pull-quote solution in CSS.
See for instance, http://www.sitepoint.com/examples/pullquotes/

The problem seems at first to be sure that it functions across all
browsers, but there seem to be a few very similar solutions, so that
is probably not a major hurdle.

However, just to complicate things, I want to have it "inline" (http://
www.tizag.com/cssT/inline.php)

The reason I want this is that I want to use it as a blogging "plug-
in" - and I want to share this plugin with others. I can't expect them
all to include a CSS file, so I want to do it inline, then users can
post something like ...

"I went down the pub last night, because [[pq:I like beer]]. Hilarity
ensued"
The problem is that "first-letter" seems to be a block level
attribute, so I am not sure if I can use it inline...

Can it be done? Can someone show me how to inline - for instance - the
example from http://www.sitepoint.com/examples/pullquotes/

Thank you very much in advance.
Jun 27 '08 #1
3 3114
Scripsit Baron Samedi:
I am looking for a reliable cross-browser pull-quote solution in CSS.
What do you mean by that?
See for instance, http://www.sitepoint.com/examples/pullquotes/
It doesn't explain what you mean by a reliable cross-browser pull-quote
solution in CSS.
However, just to complicate things, I want to have it "inline"
That depends on what you mean by "it". The pullquote? Or the CSS code
purported to present something as a pullquote?
The reason I want this is that I want to use it as a blogging "plug-
in" - and I want to share this plugin with others.
Wrong approach. Inlined code is not for sharing. It's for quick and
dirty testing, and maybe for some casual tricks. But to create some
shareable CSS code, make it separate CSS code with good instructions on
assumptions about markup.
I can't expect them all to include a CSS file,
In a blog, you should use tools provided by the blog software. If the
software hasn't got suitable tools, get better software.
The problem is that "first-letter" seems to be a block level
attribute, so I am not sure if I can use it inline...
This sounds very confused. It's not an attribute, and CSS has no
attributes at all (though it has attribute selectors). You are perhaps
referring to the :first-letter pseudoelement. Well, you just can't use
pseudoelements in inlined CSS code.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 27 '08 #2
Jukka K. Korpela wrote:
>
re. the :first-letter pseudoelement. Well, _you just can't use_
_pseudoelements in inlined CSS code_.

It could have if there had been follow-through on a 6 year old draft:

<http://www.w3.org/TR/2002/WD-css-style-attr-20020515>

Now on a Low Priority CSS 3 list.

--
Gus

Jun 27 '08 #3
On May 6, 8:02 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
Scripsit Baron Samedi:
I am looking for a reliable cross-browser pull-quote solution in CSS.

What do you mean by that?
Well, I want a CSS pull-quote, but I understand that CSS doesn't have
identical support in all browsers - but, let's just keep things simple
- a solution for *any* browser (or just "valid" CSS will do). My main
problem here is that I want to inline the pull qutoe, but am nit sure
how to.
>
See for instance,http://www.sitepoint.com/examples/pullquotes/

It doesn't explain what you mean by a reliable cross-browser pull-quote
solution in CSS.
Sorry, it's jut one of many pullqutoes examples. Please forget that I
ever said cross-browser, sorry.

However, just to complicate things, I want to have it "inline"

That depends on what you mean by "it". The pullquote? Or the CSS code
purported to present something as a pullquote?
Both - effectively, I want to define a CSS class in HTML and use it
immediately with some text which will be used as the Pull Quote.

>
The reason I want this is that I want to use it as a blogging "plug-
in" - and I want to share this plugin with others.

Wrong approach. Inlined code is not for sharing. It's for quick and
dirty testing, and maybe for some casual tricks. But to create some
shareable CSS code, make it separate CSS code with good instructions on
assumptions about markup.
I will address this below - I don't know much about CSS at all, but I
am the main volunteer plug-in coder for the blog system which I use
and I do know that inline, dirty as it may be, is the optimal solution
for casual bloggers. (I did once go through this same discussion for a
plugin to show tooltips; I believe th CSS gurus when they tell me that
it is not optimal, but when I found one who spoke both CSS and PHP and
who understood the blog system, he concluded that that was the way to
go).

>
I can't expect them all to include a CSS file,

In a blog, you should use tools provided by the blog software. If the
software hasn't got suitable tools, get better software.
I am getting better software - by writing it :-)

>
The problem is that "first-letter" seems to be a block level
attribute, so I am not sure if I can use it inline...

This sounds very confused. It's not an attribute, and CSS has no
attributes at all (though it has attribute selectors). You are perhaps
referring to the :first-letter pseudoelement. Well, you just can't use
pseudoelements in inlined CSS code.
Yes, that's what I feared, thanks for clarifying.

You will probably throw up your hands in disgust, but I am going to
have the PHP plug-in test for the existence of a small CSS file,
generate it on the fly if it does not exist, then include it and use
it for pullquotes. Mwuuuuhahahahah!!!!!
>
--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
Jun 27 '08 #4

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

Similar topics

14
by: Chris Mantoulidis | last post by:
I am not clear with the use of the keyword inline... I believe you add it do a function when you implement the function inside the header file where the class is stored... But is that all? What...
6
by: Mattias Brändström | last post by:
Hello all! I am trying to write code that allows me to initialise one of my classes inline (with a vector like structure). Inline might not be the best term to use here but I can't think of any...
9
by: John Rambo | last post by:
Hi, I made the following test program: //////////////////////// classes_1.cpp #include <iostream> #include "classes_1.h" using namespace std; A::A():i(0){cout <<"const A: i =" << i <<endl;}...
10
by: Christian Staudenmayer | last post by:
Hi, is there any revision of the C standard that allows the "inline" keyword (or a similar feature)? I know it is possible in gcc, but then it might be a gcc feature only. Greetings, Chris ...
14
by: Frederick Gotham | last post by:
The original purpose of "inline" was that code could be "expanded in place". Of course, it has other uses... For one thing, the following two translation units will compile together succesfully...
2
by: Steve Richter | last post by:
I would like to use display:inline and other CSS attributes to build an entry form. Where the heading to the left of the text box is always a set width. It is not working so I am experimenting...
12
by: Dave H. | last post by:
Please redirect me if this message is posted to the wrong group. Given the intention of delivering content to an HTTP user agent (such as Internet Explorer) which is to be immediately opened by...
2
by: mandarchalke29 | last post by:
Can you please tell me that document.getElementById("").style.display="Inline" what does this statement will do.
17
by: Juha Nieminen | last post by:
As we know, the keyword "inline" is a bit misleading because its meaning has changed in practice. In most modern compilers it has completely lost its meaning of "a hint for the compiler to inline...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.