X
Component Shop Home Editor Entry Page

Latest items added:

Hoverable Sidebar Btns Spinning Text Drop Capitals

Full Component List:

Accordion Alert / Callout Animated Rules Another Lightbox Gallery Audio Player with Playlist Auto Sidebar Backbutton Basic Form Before/After Comparison Buttons Clickable Dropdown Collapsible Alert Contact Form Count-down Script Crossfade Slider CSS Parallax Cut-out Text Decorative Background Details/Summary Classes Drilldown Menu Drop Capitals Dropdown Buttons Easy Mega Menu Easy Modal Gallery Equal Height Columns Filtered Portfolio Flip-cards Glossary Table Hamburger Menu Hoverable Sidebar Btns HTML Quiz Horizontal Tabs Flex Image Gallery Image Modal Image Shapes Image Slider with Fade Jquery Parallax Lazy Loading Lightbox Gallery Magnifying Glass Masonry Grid Gallery Mega Menu Modal Optimal Image Sizes Oval Image PHP Includes Range Slider Read More Button Responsive Card Table Responsive Navbar Responsive Shrinknav Responsive Sidebar Responsive Table Round Image Scroll to Top Searchbox Simple Audio Simple Cards Simple Shapes Simple Slider Skill Bars Slide-in Nav Spinning Text Sticky Mega Menu Sticky Navbar Sticky Vertical Menu Subnav in Dropdowns Tabbed Gallery Tab Navigation Text on Image Translucent Image Translucent Text Layer Vertical Tabs Video Video Scroller Wrapping Text Years Completed Zebra Striped Table

Drop Capitals

P
lace or drop a paragraph element here, remove its first letter, and put that letter instead of the drop-capital 'P' in the text element. The trick is to give the initial letter its own class name and float it left inside the same container as the paragraph with the rest of the text. You can make any style changes you want, be it the font-face, size, colours or any margins or padding.
 
Thanks to Wayan for introducing this drop-capital method in the CoffeeCup forum.


The 'How-to' explanation is included in the actual component. There is no separate CSS file connected with this. It has only a little styling that could be included in the document head.

Download the component.