Lab 4

The Css Border Property

This property is used to add a border to your element. It is important that you include 3 things.

You can set these values for each of these borders:

The Css Padding Property

The CSS padding properties are used to generate space around an element's content, inside of any defined borders. Some of the specific properties are:

And they each could have values of: lenght, %, or inherit.

Tip: Some people might confuse margin with padding. But the margin property controls the space outside an element, and the padding property controls the space inside an element.

The Css Font-family Property

Because each computer downloads different fonts, this property specifies the font for an element, if your browser/computer does not have the first one it tries the next font. Some important things is that each font name should be sepparated by a comma and if it has white space it should be in quotation marks.
There are five generic font families:


Tip: Put all fonts in quotation marks so you don't get confused.

The Css Font-Size Property

Just like the name, this property sets the size of a font. Its most typical default value is medium, but it can also have the following values:

Lab 5

How to Center an Image in bootstrap

You can add different classes in order to center an image in bootstrap. This is important for the visualization of your web page, when you do this you make sure your web page is user friendly.
To adapt the footer to the screen size you need to apply the grid classes to all your div elements. And you want to have div elements in order to group things that you want to apply the same property to. For this, you need to think as your sreen having 12 different divisions, so to calculate how much space your elements need you need to assing a portion of those 12 spaces.

Lab 6

Creating and Using Snippets

Snippets are like shortcuts for code or text that you can reuse. They're super handy for saving time and avoiding repetitive typing. They are specially good if there is a piece of code you use often. To create one you take a piece of code you have used before and that can be customized for future purposes. For this, its important that you add placeholder to the values, so that when you add it you can put the values you need for that code.

Snippets for Lab Notes

                    
                        <section>
                        <h1>Lab ${1:Labnumber}</h1>
                        </section>
                        
<article> <h1>${1:Lab-title}</h1> </article>

SCSS

Lab 7

Styling Tabs

To give the tabs a Hope theme I used SCSS so that I could take advantage of the nesting rules feature. To apply most of the properties I went to the developer tools to find the specific fonts, sizes, and color of the elemets. For this I used rules like:

And as my selectors I used

Styling accordions

Here are a few tips to style accordions;

Lab 9

This lab was extremely helpful to get more comfortable with navigational menus, using CSS to style them and using google fonts in our webpages.

Lab 10

In this lab we learned how to create forms and program it so we receive emails when someone answers it.

The Input Element

The input element is used in situations were you want the user to respond to an open ended question. It has several different attributes to it like input type which can have values like text, color, button, date, file and much more. One that we specifically use was radio, which gives you radio buttons to select from.

If your input type is text you want to add a text area where users can type in ther comment. This can have specific sizes depending on character lenght and also placeholders for users to know what goes in there

This is how a question with an input element will look like

           
               <div class="form-group row">
                <label for="firstname" class="col-form-label col-md-2">
                    First Name
                </ltlabel>
                <div class="col-md-10">
                    <input type="text" id="firstname" name="firstname" class="form-control"
                        placeholder="Enter your first name" required>
                </ltdiv>
                   </ltdiv>
           
       

The Select Element

This function creates a dropdown menu for users to choose the answer from. It is something that is very commonly used on various forms and is good to learn the html behind it.

You can creat option groups which facilitate how the customer finds the categories, specially when you have too many or when they are completely different and you want to separate them.

        
              <div class="form-group row">
                <label for="category" class="col-form-label col-md-2">
                    Category
                </ltlabel>
                <div class="col-md-10">
                    <select id="category" name="category" class="form-control">
                        <optgroup label="Negative">
                            <option>Complaint</ltoption>
                            <option>Bug</ltoption>
                        </ltoptgroup>
                        <optgroup label="positive">
                            <option>Suggestion</ltoption>
                            <option>Compliment</ltoption>
                        </ltoptgroup>
                    </ltselect>
                </ltdiv>
            </ltdiv>