Skip to main content

Overflow property

To control the overflow of the fixed box.There are four types of overflow property and they are: visible(default), hidden, scroll and auto.

visible overflow:
If you don’t set the overflow property at all the default is visible.
For eg:
.box{
overflow:visible;
height:20px;
}



hidden overflow:
The opposite of the default visible is hidden. This literally hides any content that extends beyond the box.
For eg:
.box{
overflow:hidden;
height:20px;
}

scroll
Setting the overflow value of a box to scroll will hide the content from rendering outside the box, but will offer scrollbars to scroll the interior of the box to view the content.
For eg:
.box{
overflow:scroll;
height:20px;
}

auto overflow:
Auto overflow is very similar to the scroll value, only it solves the problem of getting scrollbars when you don’t need them.
For eg;
.box {
overflow:auto;
height:20px;
}
Now, write a div as below and try out all four property for the box class as below:
<div>
This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.This is an example of overflow.
</div>

Comments

Popular posts from this blog

CSS List

CSS allows you to customize the lists that can be made with HTML  to the extent that even images can be used as bullet points for unordered lists. CSS List Style Type If you want to use something different from the default numbering of ordered lists, or the bullets/discs of unordered lists, then all you have to do is choose a different style for your lists. CSS allows you to select from a wide variety of different list item shapes. Unordered list styles: square, circle, disc (default), and none Ordered list styles: upper-alpha, lower-alpha, upper-roman, lower-roman, decimal (default), and none Code:

Accessible Forms

Forms aren't the easiest of things to use for people with disabilities. Navigating around a page with written content is one thing, hopping between form fields and inputting information is another. Because of this, it is a good idea to add a number of elements to the form. Labels Each form field should have its own label. The label tag sorts this out, with a for attribute that associates it to a form element:

Join in MySQL

Join clause is used to combine rows from two or more tables depending upon common field between them. There are different kinds of Joins. The most common and useful Join is Inner Join. Inner Join: It will return all rows from multiple tables where the condition is met.