Question

I have two lines of h2 size of texts in my CSS style page. I want...

I have two lines of h2 size of texts in my CSS style page. I want to Make 200% larger only for first letter for my 2nd text, but when I apply 200% larger font then it changes both text`s first letter to 200%. How can I apply for just one h2 text and get rid from the other one? Please provide with correct code.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

********************************CODE***********************************

<!DOCTYPE html>
<html>
<head>
<style>
.second::first-letter {
font-size: 200%;
color: #8A2BE2;
}
</style>
</head>
<body>

<h2>First Text</h2>

<h2 class ="second">Second Text</h2>

</body>
</html>

Screenshot:

Please upvote the answer if you find it useful and comment down below for any queries.

Add a comment
Know the answer?
Add Answer to:
I have two lines of h2 size of texts in my CSS style page. I want...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I want make keyboard's font size become to 50pt, so I wrote the css code: span...

    I want make keyboard's font size become to 50pt, so I wrote the css code: span .test { font-size:50pt; } but, it doesn't work, why? Can you help me with this? You can't change the html code. span class="test" keyboard /span〉 〈div class-"test"> mouse

  • (Below I have posted my full assignment so my question makes sense with context. The part...

    (Below I have posted my full assignment so my question makes sense with context. The part I am struggling with is section e. I am not sure how to create the said class. If you could help it would be appreciated. Also, this is all HTML code.) In this assignment you will create a web page about your favorite TV show of all-time and link it to an external style sheet to apply a few CSS rules to it. Follow...

  • HTML css When i refresh the page, the picture doesnt move at all for #i1 i...

    HTML css When i refresh the page, the picture doesnt move at all for #i1 i have width and height but the pictuers doesn't move please fix it. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title of the document</title> <style> body{ background-color:#FFA07A; } #h1{ color:white; text-decoration:none; padding:30px; } #h2{ color:white; text-decoration:none; padding:30px; } #navbar1{ background-color:grey; text-align:center; font-size:35px; height:100%px; border:1px solid black; position:absolute; text-decoration:none; margin-left:300px; } #h3{ color:white; text-decoration:none; padding:30px; } #b1{ background-color:grey; font-size:30px; } i1{ width:10px; height:20px; } </style> <body> <div...

  • In my HTML and CSS pages I want to make this aside output in 2 even...

    In my HTML and CSS pages I want to make this aside output in 2 even columns rather than the way it is (do I need a column layout?), below is my code for the html AND the CSS: HTML: <aside>        <h3>Surfer Slang</h3>     <dl>        <dt>barney</dt>        <dd>A new and inexperienced surfer</dd>        <dt>boost</dt>        <dd>To take off from a wave into an aerial</dd>        <dt>cutback</dt>        <dd>To change direction when streaking ahead of the curl</dd>        <dt>gandalf</dt>...

  • In my HTML and CSS project I want to apply a picture to the bottom right...

    In my HTML and CSS project I want to apply a picture to the bottom right corner... can I get help on how to do this (ie code and a good example)? Here is a sample of my css code: CSS: html {     background: url(jb_back2.png) center center / cover no-repeat fixed; } body {     max-width: 960px;     margin-left: auto;     margin-right: auto;     /*display: -webkit-box;     display: -moz-box;     display: -ms-flexbox;     display: -webkit-flex;*/     display: flex;    ...

  • the is my HTML and CSS code. I didn't attach the image or the CSS file...

    the is my HTML and CSS code. I didn't attach the image or the CSS file because of the space limit. two things I wanted to incorporate on this page are to make "MY TOP 3 MUSIC GENRES" blink using javascript and to make the video links autoplay using javascript both should be using javascript requirement: our professor told us not to use <div> or alert. thank you for your help <!DOCTYPE html> <!-- I used w3school for the formatting...

  • Currently, my image size is 960 x 515 How do I make it so my header...

    Currently, my image size is 960 x 515 How do I make it so my header image covers the whole width of my page? The code for it is above skistowe Home Add a Skier Add a Trail! Tables 9 header{ background-repeat: no-repeat; max-width: 85%; padding: 145px; background-image: url("../Images/gondala2.jpg"); #site-header { margin-bottom: 1em; min-width: min-content; text-align: center; flex-shrink: 0; #site-h1 { font-family: Optima; font-size: 4em; letter-spacing: 7px; padding-bottom: 0.2em; padding-top: 65px;

  • How do I get my HTML and CSS to look similar to this mockup? HTML: <!DOCTYPE...

    How do I get my HTML and CSS to look similar to this mockup? HTML: <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>nitro site</title>     <link href="css/main.css" rel="stylesheet"/> </head> <body>     <header class="header">     <section class="navlist">         <img class="logo" src="assets/logobeans.png"/>         <h2 class="headertitle">nitro</h2>     <nav>         <ul>             <li><a href="index.html" target="_parent">About</a></li>             <li><a href="/html/menu.html" target="_blank">Menu</a></li>             <li><a href="/html/menu.html">Shop Now</a></li>         </ul>     </nav>     </section>     <section class="headerContainer">         <h1 class="heading">Nitro Coffee</h1>         <p class="productDesc">Coffee is a brewed drink prepared from roasted coffee beans, the seeds of berries from certain Coffea species.</p>...

  • I have to make a pixel art maker using javascript. HTML and CSS were already provided....

    I have to make a pixel art maker using javascript. HTML and CSS were already provided. I only had to do the JavaScript part. Every time I run the HTML folder nothing happens when I choose the width, height, and color. This is my code: (ONLY JS IS SUPPOSED TO BE FIXED). JS: // Select color input // Select size input const colorPicker = document.getElementsById('colorPicker'); const rowNum = document.getElementsById('inputHeight'); const cellNum = document.getElementById('inputWidth'); const pixelCanvas = document.getElementById('pixelCanvas'); const form =...

  • 2 Apply Your Knowledge Reinforce the skills and apply the concepts you learned in this chapter Styling a Webpage Instru...

    2 Apply Your Knowledge Reinforce the skills and apply the concepts you learned in this chapter Styling a Webpage Instructions: In this exercise, you will use your text editor to create external, embedded, and inline styles for the Durango Jewelry and Gem Shop home page. You will style the sections of the semantic wireframe header, nav, main, and tooter and a div element that surrounds all of the content to center the content on the page. You will also float...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT