CSS – border properties

CSS – border properties

border-color – sets border’s color border-width – sets border’s width border-style – sets border’s style. Values can take none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset Instead of using the above three properties you can use only the property border. First you specify the width, then the type and then the color. If you do not want to have all the four borders, then you can use border-left, border-top, border-right and border-bottom. border-radius – defines the shape of the…

CSS – border properties Read More

CSS – background properties

CSS – background properties

Let’s see some properties related to the background. background-color – sets the background color of an element background-image – set an image as a background background-size – specifies the size of the background image As you see from the example above, when the images is smaller than the element, then it will be repeated vertically and horizontally. background-repeat – Specifies how background images are tiled. It can take 6 different values. repeat-x 2. repeat-y 3. no-repeat 4. repeat 5. space 6. round cursor This property specifies the type of cursor…

CSS – background properties Read More

CSS – color and font properties

CSS – color and font properties

background-color With this property you can set the background color for an element. Read more here background-color: #000000; The color should be either a keyword (black), RGB (0,0,0) or Hex code(#000000) color You set the foreground color of an element. Read more here. color:#FFFFFF;The color should be either a keyword (white), RGB (255,255,255) or Hex code(#FFFFFF) font-size You set the font size for a text element. font-size: 2em; At the picture below you can see some units you can use. Read more here. font-weight It sets the weight of the…

CSS – color and font properties Read More

CSS – Spacing and some properties

CSS – Spacing and some properties

padding padding is the space between the content and the border. Available properties are: margin margin-top margin-bottom margin-left margin-right More information here. border You can specify the width, the style and the color. Read more here. Read here all the border styles margin Margin is the space outside the border and between two elements. Available properties: margin margin-top margin-bottom margin-left margin-right Read more here. Note that if two vertical margins meet, then the space between the two elements is the largest of the two elements. All the above properties can…

CSS – Spacing and some properties Read More

Kotlin – Classes Part 3 Properties

Kotlin – Classes Part 3 Properties

Declaring Properties Mutable properties is declared using var and read-only with val You can simplify the above example by declaring the parameter in the primary constructor with the var keyword If you bypass Kotlin’s automatic process for getters and setters, you must not declare the property in the primary constructor and write your own getter and setter method. The syntax is Accessing Properties If you want to access a class property then you use . and the name of the property fun main(args: Array){ var toyota = Car(“Toyota”) toyota.name =…

Kotlin – Classes Part 3 Properties Read More