Donate

CSS Pseudo Element Selector ::first-letter Not Working On Mozilla Firefox

I have a css and html markup below using ::first-letter selector. The markup below works in Google Chrome and Internet Explorer which changes the font size, weight and color properties of the first letter but not on Mozilla Firefox.
 .fourthwrapper::first-letter   
  {  
       font-size: 200%;   
       font-weight: bold;  
       color:brown;  
  }  
 <div class="fourthwrapper">  
      <p>  
       This is some text within a div with a class of wrapper.   
      </p>  
  </div>  
The solution would be to change the css code to specify that the first letter of the paragraph should be modified.
.fourthwrapper p::first-letter   
     {  
       font-size: 200%;   
       font-weight: bold;  
       color:brown;  
     }  

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

Remove Cookies From CookieContainer Class

How To Test Or Check Dead Pixels And Backlight Bleed On Your Monitor Using Dead Pixel Checker In Windows 11