Before the end of this tutorial I am going to show you two more properties.



1. Rounded corners

By adding one more property you can make rounded corners that will look like this:




The code for rounded corners is: border-radius: 10px;

So, your code will now look like this:


Note: By changing the number 10 you can modify how rounded you want your corners to be.


2. Border

One more thing that you could add, is a border.

The code for adding a border is this: border: 1px solid red;

So, your code will now look like this:



The result:



Note: i) The number in the code is responsible for the thickness of the border.
ii) Try replacing solid with dotted or dashed.


We've now reached the end of this tutorial :)
I hope it was helpful for you. If yes please click on the LIKE button below.
If you have any kind of questions, leave a comment and I will come back to you.

Thank you for your time,

Athanasia









Join the Discussion
Write something…
Recent messages
Chrissies Premium
Many thanks for this Athanasia :)
Reply
Athanasia Premium
You're welcome Chrissie :)
Reply
SadieChan Premium
Thanks, Great training.
Reply
Athanasia Premium
My pleasure Sadie :)
Reply
GautamWorld Premium
Useful information. Thank you, Athanasia!
Reply
Athanasia Premium
You're welcome Gautam :)
Reply
reanna1 Premium
Thank you so much, Athanasia!
Reply
Athanasia Premium
You're very welcome Reanna :)
Reply
jvranjes Premium
This is very useful. I use these color blocks a lot. Have problems with tables but it works somehow. No idea if this is well accepted by readers or not. Do you know more?
Reply
Athanasia Premium
Thank you Jovo :)

If it's well accepted by readers?
Well it depends on how you use it. Everything matters; the colors, where you will place it, if the content inside of the box needs to be highlighted etc.
A website can have a bad or good user experience and that depends on many things.
Here is an interesting article about user experience
https://www.usertesting.com/blog/2015/09/16/what-is-ux-design-15-user-experience-experts-weigh-in/
Reply
jvranjes Premium
Obviously very hard to find an answer.
Reply
Athanasia Premium
yes lol
Reply
Top