Learn PHP,HTML,CSS,Javascript,MySQL,Jquery

Saturday, 27 July 2019

Bulma CSS User Registration Page Design

Sign Up Page Design using HTML and Bulma Style Sheet


 Description:

Bulma Style Sheet:

Bulma style sheet is the advanced version of bootstrap. Bulma css is very simple and easy to understand. Create web pages using bulma stylesheet because bulma css is very advanced and it covers all the remianing things of bootstrap. Bulma flexbox is very good and highly recommended to all web designers and developers. Bulma classes are easy to understand and use. for example you want to add a textbox its class will be class="input" its very unique name. Another example if you want to add abutton its class will be class="button is-info" common class of button is 'button' is-info is its color propery,Bulma uses some other color properties like is-primary,is-danger,is-warning.

First of all create a folder in local disk c ->xamp->htdocs with the name as you want but now it called tutorials. It’s a php root directory in this directory apache server looed when we open our browser and display a web page. So you must have to follow the rules. In the tutorials folder add bulma stylesheet and save it into folder style. You can jquery files in a separet folder under the tutorials folder give it a name scripts and add jquery files into this scripts folder.


Now create a register.php page under the folder tutorials and add the below code into it.
<html> <head> <title>Sign Up </title> <link href="&lt;?php echo $base_url; ?&gt;/style/bulma-0.7.4/css/bulma.min.css" rel="stylesheet" type="text/css"></link> <link href="&lt;?php echo $base_url; ?&gt;/style/bulma-0.7.4/css/bulma.css" rel="stylesheet" type="text/css"></link> <script src="&lt;?php echo $base_url; ?&gt;/scripts/jquery-3.3.1.js"></script> <script src="&lt;?php echo $base_url; ?&gt;/scripts/jquery.min.js"></script> </head> <body bgcolor="lighblue"> <section class="hero is-fullheight"> <div class="hero-body"> <div class="container has-text-centered"> <div class="box"> <form action="" method="post"> <h1 class="title"> Create Account</h1> <div class="field is-horizontal"> <div class="field-body"> <div class="field"> <div class="control"> <label class="label">First Name</label> <input class="input is-info is-large" id="txtfname" name="txtfname" type="text" value="" /> </div> </div> <div class="field"> <div class="control"> <label class="label">Last Name</label> <input class="input is-info is-large" id="txtfname" name="txtfname" type="text" value="" /> </div> </div> </div> </div> <div class="field is-horizontal"> <div class="field-body"> <div class="field"> <div class="control"> <label class="label">Email</label> <input class="input is-info is-large" id="txtfname" name="txtfname" type="text" value="" /> </div> </div> <div class="field"> <div class="control"> <label class="label">Phone Number</label> <input class="input is-info is-large" id="txtfname" name="txtfname" type="text" value="" /> </div> </div> </div> </div> <div class="field is-horizontal"> <div class="field-body"> <div class="field"> <div class="control"> <label class="label">Password</label> <input class="input is-info is-large" id="txtfname" name="txtfname" type="text" value="" /> </div> </div> <div class="field"> <div class="control"> <label class="label">Confirm Password</label> <input class="input is-info is-large" id="txtfname" name="txtfname" type="text" value="" /> </div> </div> </div> </div> <div class="field is-horizontal"> <div class="field-body"> <div class="field"> <div class="control"> </div> </div> <div class="field"> <div class="control"> <input class="button is-info is-large is-fullwidth" id="txtfname" name="txtfname" type="submit" value="Sign Up" /> </div> </div> <div class="field"> <div class="control"> </div> </div> </div> </div> </form> </div> </div> </div> </section> </body> </html>&nbsp;


In this code above is a config.php file included into the page. config file has base url of the site.Also config.php file has information of database connection. You can See that file code into video. Bulma style sheet is a advanced level of stylesheet as compared to bootstrap. We can say Bulma is an advanced version of bootstrap.

If you will add more these two class filed and control under the filed is-horizontal and field-body it creates more columns for every textbox.In this create other firstname,lastname,email,phone number and password textboxes and at the last create a button. Now you will see a responsive web form created in front of you. Run this file into broswer and check the result.

No comments:

Post a Comment