CSS outline-width Property

Set the width of an outline: div {outline-width: thick;} Try it Yourself » More “Try it Yourself” examples below. Definition and Usage An outline is a line that is drawn around elements (outside the borders) to make the element “stand out”. The outline-width specifies the width of an outline. Note: Always declare the outline-style property before the outline-width property. An […]

CSS outline Property

Set an outline around a <h2> element and a <div> element: h2 { outline: 5px dotted green; }div.a { outline: 2px dashed blue; } Try it Yourself » Definition and Usage An outline is a line that is drawn around elements, outside the borders, to make the element “stand out”. The outline property is a shorthand property for setting […]

CSS order Property

Set the order of the flexible items: /* Code for Safari 6.1 to 8.0 */ div#myRedDIV {-webkit-order: 2;} div#myBlueDIV {-webkit-order: 4;} div#myGreenDIV {-webkit-order: 3;} div#myPinkDIV {-webkit-order: 1;} /* Standard syntax */ div#myRedDIV {order: 2;} div#myBlueDIV {order: 4;} div#myGreenDIV {order: 3;} div#myPinkDIV {order: 1;} Try it Yourself » Definition and Usage The order property specifies the order of a flexible item relative to the rest of the flexible items inside the same […]

CSS justify-content Property

Make some space around the items of the flexible <div> element: div { display: -webkit-flex; /* Safari */ -webkit-justify-content: space-around; /* Safari 6.1+ */ display: flex; justify-content: space-around; } Try it Yourself » Definition and Usage The justify-content property aligns the flexible container’s items when the items do not use all available space on the main-axis (horizontally). Tip: Use the align-items property to align the […]

CSS top Property

Set the top edge of the absolute positioned <div> element to 80px below the top edge of its nearest positioned ancestor: div.absolute { position: absolute; top: 80px; width: 200px; height: 100px; border: 3px solid #8AC007; } Try it Yourself » Definition and Usage For absolutely positioned elements, the top property sets the top edge of an element to a unit above/below […]

CSS right Property

Set the right edge of the absolute positioned <div> element 20px to the left of the right edge of its nearest positioned ancestor: div.absolute { position: absolute; right: 20px; width: 200px; height: 120px; border: 3px solid #8AC007; } Try it Yourself » Definition and Usage For absolutely positioned elements, the right property sets the right edge of an element to a […]

CSS position Property

Position an <h2> element: h2 { position: absolute; left: 100px; top: 150px; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage The position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky). Default value: static Inherited: no Animatable: no. Read about animatable Version: CSS2 JavaScript syntax: object.style.position=”absolute”Try it CSS Syntax […]

CSS padding-top Property

Set the top padding for a <p> element to 25 pixels: p.ex1 { padding-top: 25px; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage An element’s padding is the space between its content and its border. The padding-top property sets the top padding (space) of an element. Note: Negative values are not allowed. […]

CSS padding-right Property

Set the right padding for a <p> element to 150 pixels: p.ex1 { padding-right: 150px; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage An element’s padding is the space between its content and its border. The padding-right property sets the right padding (space) of an element. Note: Negative values are not allowed. […]

CSS padding-left Property

Set the left padding for a <p> element to 50 pixels: p.ex1 { padding-left: 50px; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage An element’s padding is the space between its content and its border. The padding-left property sets the left padding (space) of an element. Note: Negative values are not allowed. […]

CSS padding-bottom Property

Set the bottom padding for a <p> element to 25 pixels: p.ex1 { padding-bottom: 25px; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage An element’s padding is the space between its content and its border. The padding-bottom property sets the bottom padding (space) of an element. Note: Negative values are not allowed. […]

CSS padding Property

Set the padding for all four sides of a <p> element to 35 pixels: p { padding: 35px; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage An element’s padding is the space between its content and its border. The padding property is a shorthand property for the padding-top, padding-right, padding-bottom, and […]

Using Kuler with Adobe Illustrator

Kuler is Adobe’s internet application that lets you create, modify and save color schemes. You can download these schemes to use in various Adobe applications, or you can use the Kuler extension built right into Illustrator. Learn more about Kuler and how to make swatch groups in this Video Quick Tip. 

How to Create Glowing Progress Bars

Progress Bars: Follow this quick tip and learn how to create a glowing progress bar. We will take advantage of the Appearance Panel and use multiple attributes plus plenty of effects: Outer Glow, Inner Glow, Feather, Drop Shadow, Gaussian Blur and Radial Blur. Let’s begin!. Step 1 Open a new web document and let’s start […]

Create a Grungy Launch Button

In the following tutorial you will learn to create a grungy launch button. You will learn how to make a 3D style button and an industrial looking background with a few simple techniques some vector texture. Let’s begin! Step 1 Create a 700 by 700px document then select the Rectangle Tool (M). Create a 256 […]

CSS visibility Property

Make <h2> elements invisible: h2 { visibility: hidden; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage The visibility property specifies whether or not an element is visible. Tip: Even invisible elements take up space on the page. Use the display property to create invisible elements that do not take up space! Default value: visible […]

CSS overflow-y Property

Clip the top/bottom edges of the content inside the <div> element – if it overflows the element’s content area: div { overflow-y: hidden; } Try it Yourself » Definition and Usage The overflow-y property specifies what to do with the top/bottom edges of the content – if it overflows the element’s content area. Tip: Use the overflow-x property to determine […]

CSS overflow-x Property

Show different overflow-x property values: div.ex1 { overflow-x: scroll; }div.ex2 { overflow-x: hidden; }div.ex3 { overflow-x: auto; } div.ex4 { overflow-x: visible; }   Try it Yourself » Definition and Usage The overflow-x property specifies whether to clip the content, add a scroll bar, or display overflow content of a block-level element, when it overflows at the left and right edges. Tip: Use the overflow-y property […]

CSS overflow Property

Show different overflow property values: div.ex1 { overflow: scroll; }div.ex2 { overflow: hidden; } div.ex3 { overflow: auto; } div.ex4 { overflow: visible; }   Try it Yourself » Definition and Usage The overflow property specifies what should happen if content overflows an element’s box. This property specifies whether to clip content or to add scrollbars when an element’s content is too big […]