- 1). Launch a code editor, such at Notepad, on your computer. Alternatively, you may need to log in to an online editor in your browser.
- 2). Open the "File" menu and select "Open." Locate your Web page file and double-click it, if using Windows, to open it.
- 3). Specify the width for your current elements, such as tables or divs. For example, if your main element is a div, you may specify a 90 percent width:
<div style="width: 90%">
Your Content Here
</div> - 4). Use the overflow property to add scrollbar to any containers (tables, divs, paragraphs) if they contain images, videos, ads or other content that is wider than the element.
<div style="width:90%; overflow:auto">
Your Content Here
</div> - 5). Click the "File" menu and choose the option to save your changes. You can now view the file in your browser to see the changes.
SHARE