Skip to content

Instantly share code, notes, and snippets.

@Alphabetus
Created December 21, 2018 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alphabetus/129a92e365096466738607bccc02b8d0 to your computer and use it in GitHub Desktop.
Save Alphabetus/129a92e365096466738607bccc02b8d0 to your computer and use it in GitHub Desktop.
style p isolated anywhere.
<!DOCTYPE html>
<html>
<head>
<!-- header content here -->
</head>
<body>
<section class="jumbotron">
<!-- jumbotron content -->
</section>
<section class="someOtherSection">
<!-- some other content -->
</section>
</body>
</html>
.jumbotron p {
/* style your jumbotron here */
}
.sometOtherSection p{
/* style the other content here */
}
/*
There are several ways to approach here. you can assign id="uniqueID" to any element and style it isolated.
Or you can add class="someClass" and style the class. No matter what is the selector you choose or the way you pick
it should be really easy to style p inside jumbotron only.
On my personal choice, main sections have unique IDs so i can style specific element inside by using:
#sectionID selector {
stylyng parameters;
}
*/
@ckaltenbach904
Copy link

Hello Diogo,

so basically i did exactly what you told me but it is still the same, but no changes on jumbotron p

regards,

Catharina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment