margin (CSS2)

Defines the widths (in pixels, points, or a percentage) for the margins for the element.

Syntax

length | percentage | auto | inherit

Examples having uses of: 'margin'

2 votes
12k views

CSS Shadow

CSS shadow work with different elements like box shadow, text shadow etc.
3 votes
11k views

CSS Padding & Margin

A margin is the space outside of the element, whereas padding is the space inside the element.
0 votes
11k views

CSS 2D Transform

CSS3 transform property allows us to scale, rotate, spin, stretch, and turn elements.
1 votes
10k views

HTML5 Drag and Drop

Now HTML 5 came up with a Drag and Drop (DnD) API that brings native DnD support to the browser making it much easier to code up. HTML 5 DnD is supported by all the major browsers like Chrome, Firefox 3.5 and Safari.
0 votes
10k views

CSS Floating Images

In this example, four thumbnails are floating below heading. Try to resize the browser window to see how the float to the right.
4 votes
9k views

CSS Attributes

In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called "id" and "class". "id" and "class" are attributes to most HTML elements.
0 votes
9k views

jQuery Support

jQuery.support is a collection of properties that represent the presence of different browser features or bugs. Primarily intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance.
3 votes
9k views

jQuery Basic Manipulation

jQuery provides methods to manipulate documents in efficient way. You do not need to write big code to modify the value of any element's attribute or to extract HTML code from a paragraph or division.
0 votes
3k views

HTML5 Drag and Drop between four elements

Drag and Drop magic with HTML5 using an image to drag back and forth between four <div> elements.
1 votes
2k views

HTML5 Canvas Image

The drawImage method allows you to insert other images (img and canvas elements) into your canvas context. To draw an image using HTML5 Canvas, we can use the drawImage() method which requires an image object and a destination point. The destination point is relative to the top left corner of the image.
0 votes
2k views

HTML5 Canvas Text

To align HTML5 Canvas text, we can use the textAlign property of the canvas context, which can be set to start, end, left, center, or right. Unless otherwise specified, the textAlign property is defaulted to left.
0 votes
1k views

jQuery Replace Element

Using jquery manipulation methods, we can replace elements with another elements.
0 votes
1k views

jQuery Fade

The jQuery fade methods gradually change the opacity for selected elements.
0 votes
1k views

jQuery Create Element

jQuery provides methods to manipulate documents in efficient way. Using jquery manipulation methods, we can insert element in given document. Like here we add a new element before the blue square.
1 votes
1k views

jQuery Browser Detection

jQuery.browser contains flags for the useragent, read from navigator.userAgent. We recommend against using this property; please try to use feature detection instead (see jQuery.support). jQuery.browser may be moved to a plugin in a future release of jQuery.
0 votes
1k views

CSS Container Margin

CSS margin and padding properties are used to spacing out the elements. A margin is the space outside of the element, whereas padding is the space inside the element.
1 votes
1k views

CSS Multiple Classes

It is possible to add more than one class to an HTML element. Classes are written within the same attribute, with spaces separating each class. The advantage of multiple classes is that you can write a CSS rule to select either of the classes – and they both affect the same element.
0 votes
1k views

Box Modal

Creating a on Margins, padding,and borders.
0 votes
1k views

CSS attribute selector

This selector is used to apply the CSS property on the element which matches the value with the give attribute.
1 votes
1k views

jQuery Remove Element

Using jQuery manipulation methods, we can remove elements.