Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

first-letter pseudo element

Featured Replies

Haven't come across a need to use this one before, but how compatible is the following?

 

#mydiv a:first-letter { font-size: 1.2em; }

 

I've checked various reputable sites, and I get conflicting answers. In particular, does IE like it? Advice please!

  • Author

Funny enough, yeah I had a look there. I will go on their recommendation... bit worried that other sites suggested no compatibility in IE and I can't test that on a mac relatively quickly. Thanks!

I used to play with :first-letter. Most browsers do a pretty fair job of it, but Opera (9.1ish) handles it very slightly different to the others and I've never worked out whether Opera's right or not. If your style was applied to the following piece of mark-up:

<div id="mydiv"><a href="http://www.webdesignerforum.co.uk">web<span>designer</span>forum.co.uk</a></div>

Opera would apply the styles to the W, the D and the F, whereas the other browsers would simply style the W.

 

Like I said, that was around the 9.1 mark... it may have changed since then

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.