Home > Mobile >  How to display the whole web app inside a html element
How to display the whole web app inside a html element

Time:10-25

I want to create a layout like this :

Example layout

I want to display the whole page in that black element, How to do this with html and css. It has scrollabe content, and the content should stay within that black element.

CodePudding user response:

you can use iframe html elements for solve your problem.

example:

 <iframe src="https://www.youtube.com" width="1000" height="1000">

CodePudding user response:

Try this:

     <div >
        <p >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
 

    .block {
        overflow-y: scroll;
        width: 200px;
        height: 200px;
    }
  • Related