CSS3 :: User Interface

The user interface property allows you to change any element into one of several standard user interface elements.

Some of the common properties which are using in css3 User interface.

Sr.No.Value & Description
1appearanceUsed to allow the user to make elements as user interface elements.
2box-sizingAllows to users to fix elements on area in clear way.
3iconUsed to provide the icon on area.
4resizeUsed to resize elements which are on area.
5outline-offsetUsed to draw the behind the outline.
6nav-downUsed to move down when you have pressed on down arrow button in keypad.
7nav-leftUsed to move left when you have pressed on left arrow button in keypad.
8nav-rightUsed to move right when you have pressed on right arrow button in keypad.
9nav-upUsed to move up when you have pressed on up arrow button in keypad.

Example of resize property

Resize property is having three common values as shown below −

  • horizontal
  • vertical
  • both

Using of both value in resize property in css3 user interface

<html>
   <head>
      <style>
         div {
            border: 2px solid;
            padding: 20px; 
            width: 300px;
            resize: both;
            overflow: auto;
         }
      </style>
   </head>

   <body>
      <div>TutorialsPoint.com</div>
   </body>
</html>

CSS3 Outline offset

Out line means draw a line around the element at outside of border.

<html>
   <head>
      <style>
         div {
            margin: 20px;
            padding: 10px;
            width: 300px; 
            height: 100px;
            border: 5px solid pink;
            outline: 5px solid green;
            outline-offset: 15px;
         }
      </style>
   </head>

   <body>
      <div>TutorialsPoint</div>
   </body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *

*