Login Page With Bootstrap
Couple weeks ago i finished to learn CSS. In CSS, to specify a class we need to make one by one. For example, if we want to make a beautiful blue button with a complete style, we need to code like this.
.login-btn {background-color: #007bff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
width: 100%;
cursor: pointer;
}
There is so many styles that we have to insert into our CSS button and it could be irksome if we want to work fast.
However, there is a solution for that.
The solution is to use Bootstrap, we can make a nifty button by just calling "btn" on the css class. Here's what it looks like.
<button class="btn">Button</button>
As a result, we can make the same button as the css class we specify one by one with just only a second.
- What if I want to add more or change the current style?
Another interesting part about this bootstrap framework is you can combine with classic css. So indeed, you can add more style or even change the current style.
By specifying another css class, the style will be merged with the bootstrap style, or if you want to change the current bootstrap class, you can make the class that you want to change with css and it will automatically overwrite the current bootstrap style.
That is a slight basis of bootstrap and how it works, here's my exercise using bootstrap to build a login form.
You can check the code through my github: https://github.com/farrasnazhif/pweb-a/tree/main/bootstrap
Comments
Post a Comment