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

Home Forums CSS Auto style for first sentence of post

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #25575

    I know there’s CSS for the first letter of a post (magazine style, etc.), but wasn’t there also a way to make (for example) the first sentence bold, or a different colour?

    I’m going to Google it myself, I’d just said I’d post it here should anyone else have the same idea… If I find anything I’ll post.


    Heh – first result on Google brought up another forum where the response to a user was:

    You have two choices; you can either add an element around the first sentance using either Javascript or a server side language when used in conjunction with regex. Then the element that’s been created can by styled with CSS.

    Fair enough. If I don’t want to use spans I have to use Javascript. Any idea’s there?

    @admin – move to Javascript forum if you want.

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