In CSS3, some of the new user interface features are resizing elements, box sizing, and outlining.
In this chapter you will learn about the following user interface properties:
| Property | Browser Support | ||||
|---|---|---|---|---|---|
| resize | |||||
| box-sizing | |||||
| outline-offset | |||||
The resize property is supported in Firefox, Chrome, and Safari.
The box-sizing is supported in Internet Explorer, Chrome, Safari, and Opera. Firefox requires the prefix -moz-.
The outline-offset property is supported in all major browsers, except Internet Explorer.
In CSS3, the resize property specifies whether or not an element should be resizable by the user.
The CSS code is as follows:
Specify that a div element should be resizable by the user:
The box-sizing property allows you to define certain elements to fit an area in a certain way:
Specify two bordered boxes side by side:
The outline-offset property offsets an outline, and draws it beyond the border edge.
Outlines differ from borders in two ways:
The CSS code is as follows:
Specify an outline 15px outside the border edge:
| Property | Description | CSS |
|---|---|---|
| appearance | Allows you to make an element look like a standard user interface element | 3 |
| box-sizing | Allows you to define certain elements to fit an area in a certain way | 3 |
| icon | Provides the author the ability to style an element with an iconic equivalent | 3 |
| nav-down | Specifies where to navigate when using the arrow-down navigation key | 3 |
| nav-index | Specifies the tabbing order for an element | 3 |
| nav-left | Specifies where to navigate when using the arrow-left navigation key | 3 |
| nav-right | Specifies where to navigate when using the arrow-right navigation key | 3 |
| nav-up | Specifies where to navigate when using the arrow-up navigation key | 3 |
| outline-offset | Offsets an outline, and draws it beyond the border edge | 3 |
| resize | Specifies whether or not an element is resizable by the user | 3 |
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.