Drop Caps on the Web Using Initial Letter

Поделиться
HTML-код
  • Опубликовано: 18 мар 2018
  • Designers have struggled for years to do robust drop caps on the web. We've tried a series of techniques, but in the end, the enlarged letter usually ends up mis-aligned with the content surrounding it. What's the deal? Well, now we have a new CSS property, Initial Letter, that will make it easy to create a drop cap, an enlarged cap, an initial letter that lines up in every browser.
    When or why would you want to use a drop cap? How can you do it using new CSS?
    Examples:
    labs.jensimmons.com/2016/examp...
    labs.jensimmons.com/2016/examp...
    labs.jensimmons.com/2017/03-00...
  • НаукаНаука

Комментарии • 23

  • @roeltz
    @roeltz 6 лет назад +44

    Jen is like ASMR for frontend developers.

  • @RealToughCandy
    @RealToughCandy 6 лет назад +20

    This kind of CSS is the bridge between lush print graphics (like drop caps) and the brittle Internet. Thank you Jen for showing us this!

  •  6 лет назад +7

    I just found your channel!
    Great content! Subscribed!
    I realize now I missed your way of explaining things and your mannerisms!
    Avid follower of the Big Web Show here.🙋‍♂️

  • @tim_arterbury
    @tim_arterbury 5 лет назад +4

    These are some of the most useful CSS videos I’ve seen. Thank you for these! I got hooked after watching one on CSS grid. Makes me want to start using grid in production.

  • @GiuliaGalastro
    @GiuliaGalastro 3 года назад +1

    I have just started teaching myself to code, and your videos are hugely inspirational! Hopefully one day I'll be able to create something one tenth as elegant looking as this!

  • @imrannazir6931
    @imrannazir6931 5 лет назад

    You have such great delivery, well done 👍

  • @8ytan
    @8ytan 5 лет назад +4

    I just wish it was supported by browsers other than Safari :(

  • @gdublive
    @gdublive 6 лет назад

    Very awesome! Any ideas when this might be supported on other browsers than just Safari? Thanks for the great videos!

  • @lookintomyeyes2681
    @lookintomyeyes2681 5 лет назад +1

    why is this feature not out to the developers already ??

  • @lookintomyeyes2681
    @lookintomyeyes2681 5 лет назад

    can we use css clip path and css shape outside around this first letter?

  • @roceb5009
    @roceb5009 5 лет назад

    So if you specify both a font size and initial-letter, does initial-letter override the font size?

  • @nirmalsh1
    @nirmalsh1 5 лет назад

    Nice video

  • @teguhpurwanto3758
    @teguhpurwanto3758 6 лет назад

    good

  • @techtipsuk
    @techtipsuk 6 лет назад

    Sometimes I see code examples that use one colon sometimes two both seem to work, does it matter?

    • @teacherbuknoy
      @teacherbuknoy 5 лет назад

      They have a difference actually. Single colons are for "pseudo-classes", and double colons are for "pseudo-elements".

  • @Dahon5
    @Dahon5 6 лет назад

    How about a drop cap with text shadow?

    • @LayoutLand
      @LayoutLand  6 лет назад +2

      You know, I'm not sure if it works yet or not. Once Initial Letter is implemented properly in browsers, it should work. As I say in the video, right now the only implementation is the -webkit prefixed experimental implementation in Safari. And it's not complete. So it might not work with text shadow. You should code up a demo and try it out. Does it work?

  • @filip-m
    @filip-m 6 лет назад +1

    Can you do a css course on Udemy pls :)

  • @Cognitoman
    @Cognitoman 6 лет назад +1

    hmmm....

  • @khushbudevi3548
    @khushbudevi3548 4 года назад

    Hi

  • @michaelharings9913
    @michaelharings9913 6 лет назад

    12% usuable? I don't use safari so :-( But thanks for videos anyway. Drop Caps have been in use forever graphically, check out Illuminated Bibles for example.