Question: I want to code scrollbar like this design:

[![enter image description here](https://i.stack.imgur.com/KTUbL.png)](https://i.stack.imgur.com/KTUbL.png)

it means width of `-webkit-scrollbar-thumb` must `5px` and width of `-webkit-scrollbar-track` must `2px` but i can't change width of `-webkit-scrollbar-track` independent of `-webkit-scrollbar-thumb`.

```css
.main {
width: 100px;
height: 100px;
max-height: 100px;
background-color: #fff;
border: 1px solid red;
overflow-y: auto;
}

/* Scrollbar */

/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #dddddd;
  /*box-shadow: inset 0 0 5px #dddddd;*/
  border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 4px;
}
```

```html
<div class="main">
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
 <div>test</div>
</div>
```

Answer: 
You have some logical errors, the problem is that your code "compiles" as in "is syntactically correct" but it's certainly not what you intended to do.

* `==` is a comparison operator, you want to use the assignment operator `=`
* `:` is used in python code blocks, in php you want to use braces `{ ... }` to define code blocks (such as an `else` code block)

So your code would be:

```
if ($disuzun1 == 'a' || $disuzun1 == 'b' || $disuzun1 == 'c'){ 
    $disadet = 2 * $demiradet;
} else {
    $disadet = $demiradet;
}

```

I would actually write this as:

```
$disadet = $demiradet; // assign the default value (no else required)
if ($disuzun1 == 'a' || $disuzun1 == 'b' || $disuzun1 == 'c'){ 
    $disadet = 2 * $demiradet;
}

```

Or, including [Ivan86](https://stackoverflow.com/users/8202589/ivan86)'s answer to do easily maintainable "is-in-array" lookups:

```
$disadet = $demiradet; // assign the default value (no else required)
if (in_array($disuzun1, ['a', 'b', 'c'])){ 
    $disadet = 2 * $demiradet;
}

```
You can simplify your code like this:

```
if (in_array($disuzun1, ['a', 'b', 'c'])) {
    $disadet = 2*$demiradet;
} else {
    $disadet = $demiradet;
}

```

Also, when assigning a value to a variable you should use the assignment operator `=` and not the comparison operator `==`.