Web Tutorial #1 | The Warning Boxes 08-25-2015, 12:55 AM
#1
Hello, today we'll be going over the basic warning boxes
So let's get started. Â
First off you're going to want to open up your preffered text editor, I'm using Brackets. Â
You'll start with a blank canvas, we in the design community love this because it means much typing
You'll need to add
To tell the browser it's an HTML file, not just a text document. Â
Once you're done that I prefer to give our Pandora a head. Â
In her head we'll implant the knowledge of our CSS file. Â
To do so we'll type. Â
We've also given her a very nice title
She's looking a bit bland though, so let's give her a NICE body!
We'll also want to add a couple <div> or divider tags, Using Div tags is the best way to keep everything nice and clean!
Let's see. Â
Now we should always give her some feet. Â
![[Image: e64d733e12d4f88d50e71a7f566e5474.png]](https://i.gyazo.com/e64d733e12d4f88d50e71a7f566e5474.png)
OK, now if you've done all of this and only see "warning" and "Success" printed onto your screen, don't panic! We haven't given Pandora any makeup
Let's give her some nice body gel ^,^
![[Image: c6c1aaf5a01d8c15fc9fb5854831e689.png]](https://i.gyazo.com/c6c1aaf5a01d8c15fc9fb5854831e689.png)
You can use any color you want. Â
Now we need to give her some nice looking divs. and a good size font!
![[Image: 0fdcc5308c153a2e3c65cc61b78d2518.png]](https://i.gyazo.com/0fdcc5308c153a2e3c65cc61b78d2518.png)
![[Image: 2d4ccce8ebf5aa1186cdb68ac704d633.png]](https://i.gyazo.com/2d4ccce8ebf5aa1186cdb68ac704d633.png)
We use "em" because it will automatically pick the best size based on the device/screen resolution viewing, meaning that it won't make the div annoyingly big on an iPhone
The colors are yours too. Â
Now, let's give her a foot massage!
![[Image: 27556a86e5ae4c481c6cc3fceebef23e.png]](https://i.gyazo.com/27556a86e5ae4c481c6cc3fceebef23e.png)
Bottom:0; mixed with position: fixed; will lock her feet to the ground!
The colors and shadow are your choice
Stay tuned, next time we'll be going over how to make them disappear when you click on them ;D
Post your results, use your own colors ^,^
I had to use some code tags because of the image limit.
I prefer to not make it easy to copy/paste
So let's get started. Â
First off you're going to want to open up your preffered text editor, I'm using Brackets. Â
You'll start with a blank canvas, we in the design community love this because it means much typing

You'll need to add
Code:
<DOCTYPE HTML>
</DOCTYPE>To tell the browser it's an HTML file, not just a text document. Â
Once you're done that I prefer to give our Pandora a head. Â
In her head we'll implant the knowledge of our CSS file. Â
To do so we'll type. Â
Code:
<head>
   <link rel="stylesheet" type="text/css" href="index.css" media="screen" />
   <title>Azzurra Web Design | Just ~ Elegance</title>
   </head>We've also given her a very nice title

She's looking a bit bland though, so let's give her a NICE body!
We'll also want to add a couple <div> or divider tags, Using Div tags is the best way to keep everything nice and clean!
Let's see. Â
Code:
<body>
<div class="warning">
  <span class="text">Warning</span>
    </div>
  <div class="success">
    <span class="text">Success</span>
  </div>
 Â
  </body>Now we should always give her some feet. Â
![[Image: e64d733e12d4f88d50e71a7f566e5474.png]](https://i.gyazo.com/e64d733e12d4f88d50e71a7f566e5474.png)
OK, now if you've done all of this and only see "warning" and "Success" printed onto your screen, don't panic! We haven't given Pandora any makeup

Let's give her some nice body gel ^,^
![[Image: c6c1aaf5a01d8c15fc9fb5854831e689.png]](https://i.gyazo.com/c6c1aaf5a01d8c15fc9fb5854831e689.png)
You can use any color you want. Â
Now we need to give her some nice looking divs. and a good size font!
![[Image: 0fdcc5308c153a2e3c65cc61b78d2518.png]](https://i.gyazo.com/0fdcc5308c153a2e3c65cc61b78d2518.png)
![[Image: 2d4ccce8ebf5aa1186cdb68ac704d633.png]](https://i.gyazo.com/2d4ccce8ebf5aa1186cdb68ac704d633.png)
We use "em" because it will automatically pick the best size based on the device/screen resolution viewing, meaning that it won't make the div annoyingly big on an iPhone

The colors are yours too. Â
Now, let's give her a foot massage!
![[Image: 27556a86e5ae4c481c6cc3fceebef23e.png]](https://i.gyazo.com/27556a86e5ae4c481c6cc3fceebef23e.png)
Bottom:0; mixed with position: fixed; will lock her feet to the ground!
The colors and shadow are your choice

Stay tuned, next time we'll be going over how to make them disappear when you click on them ;D
Post your results, use your own colors ^,^
I had to use some code tags because of the image limit.
I prefer to not make it easy to copy/paste
[img=0x150]http://imgur.com/BD5LxZb.png[/img]
I'm done being an autism. Â
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

