M
M
Mikhail2015-03-15 13:58:57
css
Mikhail, 2015-03-15 13:58:57

How to create such a hat?

How to implement a similar rubber cap?
2faaeffea8bc433786624b2fa9d674a9.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
Kolya K, 2015-03-15
@ArsWay

habrahabr.ru/post/141658

H
he he, 2015-03-15
@tosha_lol_daaa

border-top-bottom-radius: ....

S
seyin, 2015-03-15
@seyin

Alternatively, if transparency is not needed,
1) make a blue container,
2) make white blocks in it,
3) make blue blocks on top, absolutely position, distort with the transform(skewX) property and put on top of the white ones.

M
Maksim Fedorov, 2018-01-15
@Maksclub

Depending on the degree of crutch, but you can just in the forehead:
after:
$_SESSION['reg_user'] = $reg;

E
Eugene, 2018-01-15
@Eugeny1987

if( isset($_POST['user_Email'], $_POST['user_birthsday'], $_POST['user_pass'], $_POST['user_RePass']) ) {
    //reg
    $errors = array();
    
    if(R::count('users', "email = ?", array($data['user_Email'])) > 0) {
        $errors[] = 'already reg';
    }
    
    if(empty ($errors)) {
        $user = R::dispense('users');
        $user->email = $data['user_Email'];
        $user->birthsday = $data['user_birthsday'];
        $user->password = password_hash($data['user_pass'], PASSWORD_DEFAULT);
        R::store($user);
    } else {
        $error = array_shift($errors);
        return $error;
    }
    $reg = R::findOne('users', 'email = ?', array($data['user_Email']));
    $_SESSION['reg_user'] = $reg; 
    header('Location: /other_page');
    die();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question