Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Drop cap with Small Caps first word & CMS

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #46320
    iknowdavehouse
    Participant

    So I can manually do this – http://codepen.io/iknowdavehouse/pen/vpfxz

    Using – p:nth-of-type(1):first-letter for the drop cap and a span for small caps but how would I deal with this within a CMS?

    Ideally I’d need to detect the length of the first word and apply the styling of the span from character 2 until the end of the first word. Possible?

    #142307
    Paulie_D
    Member

    Could you not wrap the whole first word in a span and then use `first-letter` on the span?

    #142308
    Paulie_D
    Member

    Found this on Stack Overflow

    http://stackoverflow.com/questions/5458605/first-word-selector

    Dunno if it will help.

    #142313
    chrisburton
    Participant

    Fake small caps using Georgia with Arial as a drop cap? Please, no.

    But as a side note, you know you can use `column-count` to get that paragraph separated effect, right?

    #142315
    iknowdavehouse
    Participant

    Definitely a solution in there somewhere yes – got the first word sorted from that but it doesn’t like the drop cap. Very helpful though, thanks…

    #142318
    iknowdavehouse
    Participant

    Hey Chris, don’t worry – that was just for a quick mockup, looks nice with the web fonts I’m using (that I can’t link to in code pen)

    Paragraph effect was also just a quick visual to show that I need it to only apply to the first letter / word of the first paragraph without the user having to add any spans in manually.

    Thanks though, I haven’t actually used column-count before…

    #142319
    chrisburton
    Participant

    Which webfonts? I’m having a hard time thinking that a sans-serif drop cap with a serif as the main text type would have any sort of typographic appeal.

    #142354
    iknowdavehouse
    Participant

    It was actually inspired by the drop caps in “Type Matters”. I quite like it…

    [Photo](http://www.creativereview.co.uk/images/uploads/2012/02/raised_drop_caps_0.jpg “”)

    #142382
    chrisburton
    Participant

    That’s clearly what matters.

    Good luck, Dave.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.