• How to round sharp corners in Photoshop. How to round the corners of an image using Photoshop

    Everyone has long been tired of traditional rectangular corners in website design. Rounded corners are in fashion, which are made not using images, but through styles, for which the border-radius property is used. This property can have one, two, three or four values ​​separated by a space, which determine the radius of all corners or each individually.

    In table 1 given different quantities values ​​and the type of block that is obtained in this case.

    Code Description View
    div ( border-radius: 10px; ) Rounding radius for all corners at once.
    div ( border-radius: 0 10px; ) The first value sets the radius of the top left and bottom right corners, the second value sets the radius for the top right and bottom left.
    div ( border-radius: 20px 10px 0; ) The first value sets the radius of the upper left corner, the second - both the upper right and lower left, and the third value - the lower right.
    div ( border-radius: 20px 10px 5px 0; ) Sequentially sets the radius of the upper left, upper right, lower right and lower left corners.

    Example 1 shows how to create a block with rounded corners.

    Example 1. Corners of a block

    HTML5 CSS3 IE 9+ Cr Op Sa Fx

    Radius

    Me is the suppletive form of the accusative case of I.

    Result this example shown in Fig. 1.

    Rice. 1. Block with rounded corners

    An interesting effect can be obtained if you set the rounding radius to be greater than half the height and width of the element. In this case, you will get a circle. Example 2 shows how to create a round button with a picture.

    Example 2: Round button

    HTML5 CSS3 IE 9+ Cr Op Sa Fx

    Button

    The result of this example is shown in Fig. 2.

    Rice. 2. Round button

    IN Opera browser rounding to