Pseudo-Elements - ::first line and ::first Letter

Developer
Size
2,067 Kb
Views
12,144

How do I make an pseudo-elements - ::first line and ::first letter?

::first-line::first-letter. What is a pseudo-elements - ::first line and ::first letter? How do you make a pseudo-elements - ::first line and ::first letter? This script and codes were developed by Fezzik on 25 November 2022, Friday.

Pseudo-Elements - ::first line and ::first Letter Previews

Pseudo-Elements - ::first line and ::first Letter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pseudo-Elements - ::first line and ::first Letter</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<!DOCTYPE html>
<html>
<head>	<title>Pseudo-Elements</title>	<link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Pseudo-Elements – <em>::first-line</em> and <em>::first-letter</em></h1>	<p class="intro">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod	tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,	quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo	consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse	cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non	proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nullam	lobortis elit id sem placerat sagittis. Phasellus aliquet ac sem ut aliquet.	Maecenas eu magna at nulla viverra euismod.</p>
</body>
</html>
</body>
</html>

Pseudo-Elements - ::first line and ::first Letter - Script Codes CSS Codes

body {	margin: 80px auto;	width: 70%;	color: #222;	font: normal 1.1em/1.5 Sans-Serif;
}
/***** Pseudo-elements *****/
/* pseudo-elements use two colons (::) Pseudo-elements target virtual elements that are not defined in the markup and don’t appear in the source code. NOTE: pseudo-classes use one colon (:)
*/
p::first-line { color: royalblue; font-weight: bold; font-size: 32px;
}
.intro::first-letter { float:left; margin: 10px 10px; padding: 5px 10px; background: #e0e0e0; font-size: 100px; line-height: 1;
}
Pseudo-Elements - ::first line and ::first Letter - Script Codes
Pseudo-Elements - ::first line and ::first Letter - Script Codes
Home Page Home
Developer Fezzik
Username Fezzik
Uploaded November 25, 2022
Rating 3
Size 2,067 Kb
Views 12,144
Do you need developer help for Pseudo-Elements - ::first line and ::first Letter?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Fezzik (Fezzik) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!