- 1). Right-click the HTML file or CSS file where you want to place the code. Select "Open With" to view a list of editors. Double-click the editor you want to use to add the code.
- 2). Place the "div" CSS style in the code. Type the following within the "Style" tag in the HTML file or the CSS file, if you use an external CSS file:
div
{
} - 3). Type the overflow style you want to use. For instance, if you want to clip the content in the div tag and eliminate the scrollbar, type the following CSS code:
overflow: hidden - 4). Press the "Ctrl" and "S" keys to save the changes. To view the CSS changes, double-click the file to open it in the computer's default Web browser.
previous post
next post