--- On Wed, 2/10/10, fred dagg <[email protected]> wrote:
> For example: given an in-line citation such as (McConnell,
> 2002) in an academic/scientific paper, the bibliographic
> reference might be:
>
> McConnell, S. (July, 2002) The Business of Software
> Improvement. IEEE Software pp. 5-7
>
> Note that, in the one line, part (the title) is to be
> underlined, part (the journal title) to be itallicized and
> the remainder in normal face font.
>
>
> I can't see any way to perform the process using CSS.
> Perhaps someone can help with that. Thanks.
No-one's really addressed the original issue - that of the markup - possibly
because it didn't come through cleanly in your post, Fred. Maybe you can try
again (and ensure you're posting in plain text).
There are - broadly speaking - 3 options that I can think of:
Presentational markup:
McConnell, S. (July, 2002) <u>The Business of Software Improvement</u>. <i>IEEE
Software</i> pp. 5-7
This has all the disadvantages associated with presentational markup that have
led to the W3C discouraging these kinds of elements.
Semantic markup using specific elements:
McConnell, S. (July, 2002) <strong>The Business of Software
Improvement</strong>. <em>IEEE Software</em> pp. 5-7
And targeting them via CSS (e.g. strong { font-weight: normal; text-decoration:
underline; } em { font-style: italic; }) - presumably the entire citation would
sit in an element with its own class (quite possibly a list item if this is in
a references section at the foot of the document) which should be included in
those selectors. Alternatively, you could use class names on the individual
strong/em elements, in a very similar way to:
Semantic markup using generic elements:
McConnell, S. (July, 2002) <span class="article-title">The Business of Software
Improvement</span>. <span class="journal-title">IEEE Software</span> pp. 5-7
This is, indeed, quite a bit more typing than the presentational approach, but
the associated downsides depend on how you're entering this data in the first
place. If you're using a CMS, rather than marking-up your documents by hand,
the time taken to type those extra characters should be mitigated.
Do any of those approaches work for you?
- Bobby
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/