Now this is the parent box and these are the two child boxes, two child divs those
are placed inside the parent div over here.
Now all we need to do we need to create this form field.
first of all we can see there are three form elements over here,
among them two are alike do, those are input type text and the other thing is
textarea box actually and at the end we are having a submit button.
So all we need to do now we need to create this form field
right over here.
But before doing that first of all create the form syntax here.
So we are creating the form over here.
Excuse me.
I think we have missed something over here, this one " in hurry?
Contact Us!".
Create this thing first.
Press control + s and get back to you project.
It is been practically created over here.
So let's concentrate on form field over here.
Let's get back to our project and create the form field.
As we have told you in our previous tutorial of forms, we can see this
thing is an empty tag.
It has a definite starting tag that has no definite ending tag
and that is why it is an Empty tag.
So now what we are going to do we are just going
to copy this thing again and place it over here, this time we are going to make
some changes.
press control + s, get back to your project and reload such that we can
see what is happening over here.
So this is the thing that we can see, Enter name,
enter email, and the comment below segment that we can see over here.
Now if we reload we can see that this is the current
display of code we have done so far.
Everything is using the default value.
This thing, this is the actual thing or area that
we have to customize, that we have to make as per requirement or criteria as we
can see over here.
Now let's customize this thing.
As we can see that this form element, it is practically lying within
this form-feature-parent-right-box.
That means we have to have to customize all this
thing, that is why we are taking this name first, and here...
First of all press control + s, get back to your project and
reload and now..
I think the colour is matched over here.
So all we need to do you now we have to change the colour.
I am changing it to yellow.
Now if we reload we can see that this is actually the form field over here.
This are the form elements inside that form field.
So I think we should be getting back to colorzilla.com.
Here I am typing the text colorzilla....
Now get back to your project and reload.
Now you can see that the form field this has been customized as you can
see over here.
No another thing, another important thing that we need to do here is that, comment out
any kind of height over here..
And another thing we do not need any border.
So we are commenting it as none.
Border will be none.
Come back to your web page and reload.
We can see that everything is perfect in order.
We need to change this background colour here which is yellow.
As it is now directly colliding with another property.
Press control + s, get back to your project and reload.
And you can see that this thing is occurring over here.
So this is the exact thing.
now we have to take care of this text area and this submit button.
It was a blue colour I think, this is a blue colour, so all you need to do you need to
get back to colourzila.com and choose a blue colour
and here it is.
Now all we need to do we need to copy this code again.
Now Press control + S, come back to your project and reload now we can see that this thing
is right there where we want it to be.
The background colour is changed here, everything is quite fit and...
Still there is a lot of problem.
In actual template we may see that it is aligning with the, it is practically aligning with
the central position.
But in our project we can see that it is aligned to
the extreme left position.
So all we need to do we need to do now modify this code and we need to make some amendments
over here.
And another thing in the template it is quite a bit larger one, a broader one.
But this is not the broader one.
So we need to rectify these things.
That is so I get back to your project and modify
these things.....
From left we need to make some positional changes.
Still there's no problem in it.
So what should be done over here, such that it lies almost in
the central position.
We have placed it has 300px and the width of this button is 100px, that means there
will be a 200px of gap from both sides, from left and
right.
So we can place here 100px of gap.
Now if you just press reload, we can see that it is aligning right in the central or in
the middle position as we can see over here.
Now this thing is done.
Let's take a look into this text area over here.
This is the text area part.
We have to take a look now.
So we need to modify the text area.
So all we are doing we are just copying this thing again....
There it goes...
Everything is in order.
So all we need to do now we need to press Control + S and get
back to our project and reload.
Now we can see that this thing is happening over here.
this is the comment area, where you may enter your comment and this is the
enter email and this is the enter name, this is the input type submit.
So all we need to do now we need to make some certain amendments.
As if in this border, this border is not needed, we can use our own border
style or we can use box -shadow here.
So, remove the border property first of all.
This is the default property practically.
In case of any form elements this is a default property that the browser will make a border
into these form elements that you have provided.
That is why it is executing a border here.
Now all you have to do you have to remove those borders I am just by coding it as border
none.
Another thing, if you have a close look here you can see that I have used two types
of inputs, the first one is input type text, and the second one is input type submit.
Practically we have provided to kinds of inputs over here, the first one is
text and the second one is submit.
So we have used here text and submit.
There are two kinds of inputs.
So we need to modify both of them, we need to customize
both of them.
That is why we are using these two kinds of input types, first one is text and the second
one is submit.
And all these inputs they are lying under this form field which is inter lying under
this form-feature-parent-right-box.
So that is why we have to classify these class names first, we have to introduce this
class names over here, then we have to introduce this form field under it and then we have
to introduce these inputs and mention the type over here.
This is what we are doing.
Now, press control + s, get back to your project and reload this and you can see that the border
thing is gone.
Another thing, these are not executing any padding properties.
So all we need to do we need to provide some padding properties right into this input type
text.
So we will be providing where?
This is the height which is given here but we won't be providing any kind of height.
Instead we will be providing a wedding of 20px and a box-sizing of border- box.
Now if we come back and reload now we can see that everything is in order.
20px is I think a little bit bigger, broader.
So all we need to do we need to reduce it to 10px.
20px is far more as we can see here.
If we provide 10px we can see that it is been established and you can now input any
kind of name, you can input the email or you may enter the comment below.
All we need to do in this case is we need to mention this input type text and in this
text area you need to mention the colour here.
What colour do you want?
Preferably for this tutorial I would recommend using this white colour.
Now we need to mention some kind of animation over here....To be
continued...
No comments:
Post a Comment