<link rel="stylesheet" > affect only one section of html

Asked

Viewed 65 times

0

Is there any way to make one affect only one section of html? For example I want to put an external link that will only affect one of the Divs with a specific id, how do I do this?

  • I don’t know if I got it right, but just leave inside the <link rel="stylesheet" > that you will index only the ID classes that you want to achieve. #seuID { suas classes css }

  • I needed to use a bootstrap to create a slideshow of images, but after putting the bootstrap several things on the website became disorganized, I wish the bootstrap only had effect on the div id="galley"

  • This is probably because you are using classes that have the same name as the native Bootstrap classes.

  • yes, I had already understood that, there is some way to get the bootstrap to work only on a div?

  • You will have to do a CSS Scope and probably convert the . Less from Bootstrap to CSS and unlink the HTML/Body styles. If you understand of pre-processed CSS here you will find the answer. https://stackoverflow.com/questions/10568065/limit-the-scope-of-bootstrap-styles

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.