Similarly to the trick above, this aspect ratio modifier will add the padding-top with different percentages depending on the given modifier class. embed-responsive and an aspect ratio class modifier like. In Bootstrap 3.2 and over, use the predefined class. In each case you need to create a wrapping element and give it a certain class. Some of these frameworks already have predefined classes that will do exactly the same as what is in the above trick but unfortunately not all. Most projects will use some kind of CSS framework to help with keeping the styling uniform throughout the project, may it be Bootstrap or Material-UI. You can play around with your browser size and see how responsive your iframes would be! Using CSS Frameworks Here I have a instead because of some blog restrictions. Once you are done, you should get an iframe that is responsive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |