Grow your business, income, & life

20+ yrs of experience to offer you education and business services that launch and grow your business

CSS3 Tutorial for Beginners: 30 Before and After Pseudo Elements In CSS

This is Sasha and welcome to another CSS training video tutorial. In this video, what I’d like to do is share with you some more CSS tips and tricks so that way if you’re editing your business website, you know how to do it or if you’re learning CSS, it’ll help you out.

Today, we’re looking at CSS pseudo elements and elements are a little different than pseudo-classes, but they do some interesting things that can be very beneficial still, especially if you’re doing things like with font awesome of if you’re adding in custom bullets and things of that nature. Let’s take a look at how to use this and incorporate this.

How pseudo-elements work

Looking at the screen here, what you’ll see if I have a few different paragraphs or multiple paragraphs. The way that the pseudo elements work is similar to pseudo-classes but the elements they have two semicolons.

--------------------- HTML CODE ------------------

Welcome to My Website

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

These are my books and products

 

Thank you for visiting

 


--------------------- CSS CODE ------------------

p::before {
	content: "...";
}

You’ll notice right here on my CSS code. There are two colons, not a semicolon, but two colons. So, double dots. What you do or typically what I used this for is, for example, you’ll go ahead and type content and then if you do the double dots or the quotes right there. What you could do is create something like, okay, like three or four dots at the beginning.

You save it and you’ll notice what it does is that if you do it before, it goes ahead and adds those few dots beforehand. If you have it after, you go ahead, and you see that right there, it adds those dots back.

--------------------- HTML CODE ------------------

Welcome to My Website

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

These are my books and products

 

Thank you for visiting

 


--------------------- CSS CODE ------------------

p::after {
	content: "...";
}

If you’ve seen a WordPress blog where they have a summary and then you have a few dots right there, that could be created with a pseudo element like this where at the end of that paragraph or that summary, you have those few dots right there that says, you know, this is done or that is your little summary, go ahead and hot the read more button. That’s how you can do that.

Also, the other way or approach to go about doing this is sometimes you could use it for bullets, for things like font awesome, you know, you include the content right there.

I won’t show you with the font awesome at the moment just because I don’t the font awesome installed here but I will show you that here in a future video. In either case, this is how this works, you basically have the before, the after, you can do the first letter as well and when you do the first letter I can say color blue and font size let’s say 35 pixels so you could see right there, it just makes it a little bit bigger kind of like a book, you know, so you could do it in that way.

--------------------- HTML CODE ------------------

Welcome to My Website

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

These are my books and products

 

Thank you for visiting

 


--------------------- CSS CODE ------------------

p::first-letter {
	color:blue; font-size:25px;
}

You could also do the first line is another variation so that it also does the first line and if I resize it, you can see it makes that change. That first line is a little bit bigger right there, okay? Or it’s blue or whatever color you want it to be.

--------------------- HTML CODE ------------------

Welcome to My Website

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

These are my books and products

 

Thank you for visiting

 


--------------------- CSS CODE ------------------

p::first-line {
	color:blue; font-size:18px;
}

In either case, that’s how they work as far as the pseudo-elements are a concern and that’s how you use them within your page. Usually, I don’t use the first line or the first letter. I typically would use something like before, and in that case you would just type in the content, add in the quotes and you could even include the little thing that you want to add right there and there’s kind of like a small bullet that you could create or customize your bullet and things like that.

--------------------- HTML CODE ------------------

Welcome to My Website

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad Business Launch Pad
Business Launch Pad Business Launch Pad Business Launch Pad

 

These are my books and products

 

Thank you for visiting

 


--------------------- CSS CODE ------------------

p::before {
	content: "> ";
}

You can see that when you select the paragraph, it works but you can’t select that because it’s created in a way like an image within CSS. You can’t click that and select that little element there because we are using CSS to generate that. In either case, that’s your pseudo elements example.

Download our online toolbox for free! Simply click the get it now button below and see the must-have tools for online business owners!

Struggling to make your blog business profitable? Want to turn your hobby blog into an income-generating blog? Learn the right way to plan a highly successful and profitable blog business.

Learn how to create Pinterest Pins that are attractive, click-worthy, and make people want to click your Pins! Great skill to have to promote your content or make side-income designing Pinterest Pins for others.

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get MyOnline Business Toolbox
 

Had enough of the expensive and useless online business tools?

 

Stop wasting your money and time and get my list of awesome business tools.

 

Just enter your email address below so we know where to send it.

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Video Gear Guide for YouTubers

Are you ready to improve your YouTube channel? If you want to see the best YouTube gear for YouTubers, then download my latest gear guide!

 

Enter your email below to get started...

FREE DOWNLOAD

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Wow! Get Ready to Start your Online Business Journey!

Just enter your email address below and be one of the fast growing online businesses roght now!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Want to Create Videos that Convert Viewers into Buyers?

Are you tired of making videos that don't produce results?

 

Get my Video Formula cheat sheet and see how to create videos that get clicks and attracts buyers!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My Youtube Video Creation Checklist for FREE...
 

Overwhelmed by number of tasks that you need to do to make high-quality YouTube videos?

 

Then grab this YouTube Video Creation Checklist if a strategic procedure list for producing your YouTube videos.

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My List of The 125 Most Profitable YouTube Niches

This is a List of the 125 Most Profitable YouTube Niches that might be a real eye-opener for you.


Sign up for FREE and gain some extraordinary ideas...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Profit from My 35 Local Strategies to Make Extra Money
 

Are you interested in making some money on the side? That don't need to be extra hard.

 

You can use My 35 Local Strategies to Make Extra Money and in seriously short time reap the benefits.

 

Grab this opportunity by entering your email below...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

FREE Guide to the Best Cameras for a Youtuber

Eager to find out which cameras are the top choices to producing and recording videos?

 

Grab my FREE Guide below by entering your email address... 

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

225 Profitable Pinterest Niches

Are you interested in learning which Pinterest niches are profitable?

 

Grab our FREE Pinterest Niche Guide by entering your email below

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

How to Get Started Selling Your Own Digital Products

Get my free mini-series by entering your email address below

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Want to Find a Profitable Niche?

If you are interested in starting an online business and want to find the perfect niche to start making tons of money.

 

Then grab our FREE email series on how to find a highly profitable niche!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Want to Get My Quick-Start Guide to Build Your Empire?

If you are interested in starting your own online business and making money online.

 

Then grab our quick email series on how to start a profitable business fast!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Learn How to Get Thousands of

Visitors to Your Website
 

This FREE email series will show you exactly how to get thousands of real visitors to your website even if you are an absolute beginner.

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

5,000 SUBSCRIBERS

Derek will teach you simple tactics to attract life-long customers through real-world examples.

FOR FREE?

Want to learn how to get

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My List of The 125 Most Profitable YouTube Niches

Get my list of the 125 Most Profitable YouTube Niches. It will be an eye-opener for you!


Sign up for FREE and get extraordinary ideas...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My List of The 125 Most Profitable YouTube Niches

Get my list of the 125 Most Profitable YouTube Niches. It will be an eye-opener for you!


Sign up for FREE and get extraordinary ideas...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

don't call us.
we will coconut
you

organic pop up market store is heading your way​