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: 10 Inheritance and Overriding it

This is Sasha and welcome another training video here on CSS. Hopefully, this will give you some more insight on how to edit your business website a little bit better. Let’s take a look at how CSS and inheritance works and how you can use it to your advantage.

Hierarchy in HTML

If you really look at HTML and you see how it’s broken down as far as the hierarchies go, you have HTML first at the very top then you might have the heading tag or the body tag within that. Then within the heading tag, you have the metadata. But we don’t really stylize anything within the heading tag.

There’s no CSS styling that goes into that but it is part of the hierarchy. Within the body area, that’s where we stylize everything. Within the body area, you might have an H1 tag, H2, H3, there might be a paragraph tag or UL tag like an unordered list and within those tags you may even have another level within the inheritance properties.




	
	TItle goes here

	


    Like for an H1 tag, you might an underlined or an emphasis tag and that, of course, is another level and these things can continue to go deeper and deeper and deeper especially as you get in to divs and styling div tags. This can go on for quite a bit of time because the tags continue to have hierarchies and as they’re nested, they continue to evolve.

    Inheritance in CSS

    Within our example here, if you take a look at the website here that we have, if we go ahead and put something within the body element and let’s just say we change the font color and I can go ahead and change the font color to red, okay? Let me remove this H2 font color right here so you can see everything is black.

    I’ll go ahead and change this color to red. I’ll go ahead and hit save and you can see everything including all font colors have changed to red. That includes the forms. That includes everything because the body tag is the highest level.

    --------------------- HTML CODE ------------------
    
    
    
    		Backstageincome : Learn to grow a business and evolve your life!
    
    		 	
    
    
    
    	
    
    
    

    Welcome to My New Website!!!!!

    Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.

    These are my books and products

    Thank you for visiting

    --------------------- CSS CODE ------------------ body {color:red;} h2 { } p {font-size:17px;}

    If you want to go ahead and specifically target one of these tags which we’ve kind of covered in the past already and you’ve seen some examples, let’s say, the H2 tag and I want to go ahead and change that color to, let’s say, this green color, what I could is just go ahead and write it since it’s a little bit later down the page.

    I can go ahead and just write it and change it to that color and you can see now we have the heading tags for the H2 element green right there. If we go ahead and change the H3 element I can go ahead and do the same thing. I can target that specifically and change it maybe to this blue right here. I’ll go ahead and make that quick little change, go ahead and you’ll notice this H3 tag right there changes to that blue.

    --------------------- HTML CODE ------------------
    
    
    
    		Backstageincome : Learn to grow a business and evolve your life!
    
    		 	
    
    
    
    	
    
    
    

    Welcome to My New Website!!!!!

    Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.

    These are my books and products

    Thank you for visiting

    --------------------- CSS CODE ------------------ body {color:red;} h2 {color:#3baf6e;} h3 {color:#377def;} p {font-size:17px;}

    Be careful with the inheritance

    Ultimately this is how you do it if you wanted to even target both elements I could have wrote the H3 up here and then all three of those elements would have been targeted but you can see since we’ve put in into the body element that it’s red, it changes it everywhere to red.

    This is great for certain things like div tags or a little characters that you want to use and you want to use the same styling throughout like font size and so on but in general, you know, this is something you want be really careful of because it’ll change it everywhere including let’s your paragraph tags.

    If I want to go ahead and change this color to black and I know that 0,0,0, we can just write in three 0s for the time being, we can make it black and you can see right there all the paragraph tags now are actually black. Keep in if you didn’t have that, it would take the color red from the body because the body is the highest level.

    --------------------- HTML CODE ------------------
    
    
    
    		Backstageincome : Learn to grow a business and evolve your life!
    
    		 	
    
    
    
    	
    
    
    

    Welcome to My New Website!!!!!

    Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.

    These are my books and products

    Thank you for visiting

    --------------------- CSS CODE ------------------ body {color:red;} h2, h3 {color:#3baf6e;} p {font-size:17px; color:#000;}

    Ultimately that’s what inheritance is as you’re inheriting a certain property from that element. If I did the same thing with, let’s say, border 1 pixel solid red right here, you’ll see that on the body there’s the 1 pixel solid red around the body because we’re targeting the body element.

    --------------------- HTML CODE ------------------
    
    
    
    		Backstageincome : Learn to grow a business and evolve your life!
    
    		 	
    
    
    
    	
    
    
    

    Welcome to My New Website!!!!!

    Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.

    These are my books and products

    Thank you for visiting

    --------------------- CSS CODE ------------------ body {color:red; border: 1px solid red;} h2, h3 {color:#3baf6e;} p {font-size:17px;}

    In this case, it only affects one thing because of that border. But when it comes to a color, it actually affects multiple things. It doesn’t affect everything but things like text properties like text transform and watch if we do everything uppercase, watch how this actually affects everything.

    But a border property doesn’t necessarily do that. There are certain little caveats to it and learning to play with the code, you’ll learn a little bit more about it but anything text related, you’ll see how those things actually get inherited and that’s where some things can cause you to have problems in the future especially as you get into writing more complicated code.

    --------------------- HTML CODE ------------------
    
    
    
    		Backstageincome : Learn to grow a business and evolve your life!
    
    		 	
    
    
    
    	
    
    
    

    Welcome to My New Website!!!!!

    Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.

    These are my books and products

    Thank you for visiting

    --------------------- CSS CODE ------------------ body {color:red; text-transform: uppercase;} h2, h3 {color:#3baf6e;} p {font-size:17px;}

    Keep those things in mind as you dig deeper into the code and different properties start inheriting from different areas.

    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​