WebRef.eu  - Internet Marketing and Online Business Resources  

Home / Site Map | Contact


How to Apply a CSS Style to an HTML Tag that is Within a Particular Class

We have the HTML code below, and we want to apply a CSS style specifically to an h4 tag found within the div that has the carousel-caption class:

<div class="carousel-caption">

<h4>High Quality Domain Names</h4>
<p>View our portfolio of domains for sale below</p>

</div> <!-- close carousel-caption -->

To do this, we use the following CSS:

/* Carousel text h4 */
.carousel-caption h4 {
font-size: 32px;
color: #BFDF0D;
background-color: #333;

So the CSS syntax is:

.class HTMLTag {





Low Prices UK Shopping

Compare Prices
at LowPrices.co.uk

Home / Site Map | Contact

All Content ©2020 WebRef.eu