<!-- --><!-- --><style type="text/css">@import url(http://www.blogger.com/static/v1/v-css/navbar/697174003-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=20981690469561729&amp;blogName=Neo-Faerie+Wings%3A+Your+source+for+hig...&a mp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLACK&amp;layoutType=CLASSIC&amp;searchRoot=http%3A%2F%2Fneo-faeriewings. blogspot.com%2Fsearch&amp;blogLocale=en_US&amp;homepageUrl=http%3A%2F%2Fneo-faeriewings.blogspot.com%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div> Neo-Faerie Wings: Your source for high quality neopets graphics

May 14, 2010

Weblayout Templates

Here are some templates you can use to make your own web layouts. You just need to edit the colours and banner image. Have fun and please don't forget to link back!

Labels: , ,

Iframes

What is an iframe?

An iframe or inline frame enables your visitor to view a page from your site or from a site anywhere else from the net without having to reload your page.

Advantages of iframes

  1. Makes changing or updating links or contents of your site very easy.
  2. You can put multiple iframes in one page.
  3. You can use links from one iframe to change the other.

the code for the iframe above is as follows:

<iframe src="http://neo-faeriewings.comuv.com/tutorials/frame1.html" name="frame1" width="350" height="100" frameborder=1></iframe>

The above frames are what we call interaction frames. Both are pages from different locations and yet when you put them together here you are able to control one frame from another frame!

The code for the above frames are as follows:

<iframe src="http://neo-faeriewings.comuv.com/tutorials/frame2.html" name="frame2" width="150" height="300" frameborder=1></iframe>
<iframe src="http://neo-faeriewings.comuv.com/tutorials/frame3.html" name="frame3" width="150" height="300" frameborder=1></iframe>
respectively

Now, what are the contents of the first frame and the second frame?

On the first frame where we have our link the content is:

This is our navigation area!<P>

click <a href="http://neo-faeriewings.comuv.com/tutorials/frame4.html" target="frame3"> HERE for frame 4</a><br>
click <a href="http://neo-faeriewings.comuv.com/tutorials/frame5.html" target="frame3">HERE for frame 5</a><br>
click <a href="http://neo-faeriewings.comuv.com/tutorials/frame3.html" target="frame3">HERE TO GO BACK TO FRAME 3</a><br>

If you notice the name of the second frame it is "frame3" thus the target of the link should be on the frame we want it to open!

The contents on the second frame is simply the following:

This is frame 3. Click on the links on the left frame and see what happens!


Setting an iframe is very easy to do!

What are the attributes of an iframe

width: you can set this in pixel or page percentage
height: can also be set in pixel or page percentage
frameborder: if you want to place a border around your frames, just enter the number you want depending on how thick you want the border is. If you do not want any border, set the border to 0

How can I make my frames transparent?

Sometimes, you want to make your frames seem to be a part of the layout. Having a white background (which most Iframes are) makes your site look not ... not that pleasing.

To make your iframe background transparent use this iframe code:
<iframe src="frameURL" name="frameNAME" width="frameWIDTH" height="frameHEIGHT" frameborder="frameBORDER" allowTransparency="True"></iframe>

and then on the pages you want to put in your frames put this code in the body tag:
<body style="background:transparent">

Example:

The code for the above frame would be:
<iframe src="http://neo-faeriewings.comuv.com/tutorials/frame6.html" name="frame6" width="250" height="150" frameborder=0 allowTransparency="true"></iframe>

Don't forget to put the body style code on your files: <body style="background:transparent">. If you fail to do it, your frames will not be transparent!

Labels: , , ,

Division Layers

Division layers sets apart a section of the page and can be placed anywhere in your site. It can overlap a table or overlap another division. It's a very handy tool in making weblayouts look even better!

Div 1 code:
<div id="name" style="position:absolute; left:350px; top:675px;
background-image:url(background.gif); border:1px solid #000000; width:100px;
height:100px; background-color:#99CCFF; padding:5px; z-index:2;">
This is Divison 1</div>

Div 2 code:
<div id="name" style="position:absolute; left:400px; top:725px;
background-image:url(background.gif); border:2px dashed #666666; width:100px;
height:100px; background-color:yellow; padding:5px; z-index:3;">
This is Divison 2</div>

Div 3 code:
<div id="name" style="position:absolute; left:485px; top:775px;
background-image:url(background.gif); border:3px dotted #996600; width:100px;
height:100px; background-color:pink; padding:5px; z-index:1;">
This is Divison 3</div>

Div 4 code:
<div id="name" style="position:absolute; left:500px; top:825px;
background-image:url(imageURL);
border:5px dotted #996600; width:100px; height:100px; background-color:none; padding:5px;
z-index:4;"> This is Divison 4</div>

To view the result of the above codes click HERE.

As you can see on our example, we have 4 division layers on this page and they have different style attributes and locations on the page. Just like told earlier, divisions can overlap anything as long as you place them on the right location!

Division Attributes

  1. id - this is the name of the division...you can understand more about this when you check out our css tutorials.
  2. left - this is the position of your division from the left part of your page.
  3. top - this is the position of your division from the top most part of your page.
  4. background-image:url(image.gif) - place this code (subs the image.gif with your image URL) if you want to place an image as your background
  5. border - this would be the line around your division layer
  6. width - the width of your division in pixels
  7. height - the height of your division in pixels
  8. padding - this is the margin within your division. You set this to keep the text from starting and ending at the very edge of your division.
  9. background-color - if you want to set a background color on your division.
  10. z-index - this is to set which division should appear first. The division whose z-index is 1 shall be closest to the background. If you notice from our example Div 1 overlaps division 3 because division 1's z-index is 2 while division 3's z-index is 1, thus division 3 is closest to the background than division 1.

Labels: , , ,

Showing your HTML Codes

This is most important to those writing tutorials! We can show HTML codes on our pages by the following ways:

  1. With the use of textareas:
    <form><textarea rows="3" cols="10" style="background-color:white; border-style:solid"> put your html codes here! </textarea></form>

    The above code will look like this:

    Don't worry, it will scroll when you put a longer html code. Now, this is used when you have a lot of codes you want your visitor to see. You can change the rows, cols, background and border attributes to your liking!

  2. With the use of &lt; and &gt; :
    These codes will appear on your page as follows: for &lt; it will appear as < and for &gt; it will appear as >.
    You can use these on shorter codes like &lt;body bgcolor=#ffffff&gt; which will appear as <body bgcolor=#ffffff>

Labels: , , ,

Tables

Tables are really handy especially since most of the time tables are used in web making. So how did I make the table? Simple here is the code:
<table border=1>
<tr>
<td>YOUR 1ST TEXT HERE!
</td>
<td>YOUR 2ND TEXT HERE!
</td>
</tr>
<tr>
<td>YOUR 3RD TEXT HERE!
</td>
<td>YOUR 4TH TEXT HERE!
</td>
</tR>
</table>

The code for the above table is as follows:
<table border=1>
<tr>
<td colspan="2">HERE ARE MY FAVORITE NUMBERS!
</td>
</tr>
<tr>
<td>10
</td>
<td>13
</td>
</tr>
</table>

As you can see above all you have to do is to add the colspan="2" to the td attribute. You can place 3 or 4 or 5 depending on how many columns you would want for the td to span!

The code for the above table is as follows:
<table border=1>
<tr>
<td rowspan="2">put your text here!
</td>
<td> put your text here!
</td>
</tr>
<tr>
<td>put your text here!
</td>
</tr>
</table>

You can change the rowspan to whatever number of rows you want your td to span!

Other table attributes

  1. border - if you want to place a border on your table just put any value from 1 to the border attribute. (eg. border=3)
  2. width - if you want to define the width of your table or your td you can do so by adding the width="1.2.3..to whatever" (eg. td width=100 ; table width=250)
  3. height - if you want to fix the height of the table you can put height="any number you want" (eg. td height="500" ; table height="850")
  4. cellpadding - this is the padding in your cells. You can place this when you want the contents in your cells to be farther from the edges of the cell. (eg. table cellpadding=0; table cellpadding=5)
    illustrations on cellpadding
    when cellpadding=0 the table would look like this:

    when cellpadding=5 the table would look like this:

    Notice how the text moved farther away from the cells' edges when we added the cellpadding!

  5. cellspacing - this is the space between your cells. (eg. table cellspacing=0 ; table cellspacing=5)

  6. illustrations on cellspacing
    when cellspacing=0 the table would look like this:

    when cellspacing=5 the table would look like this:

    Now you can see how the cells moved farther apart from each other!

  7. th - you can use this to shorten your table code if you want to place a header on your table cells.
    illustration

    The code used above is as follows:
    <table border=1>
    <tr>
    <th>HEADING 1
    </th>
    <th>HEADING 2
    </th>
    </tr>
    <tr>
    <td>put your text here!
    </td>
    <td>put your text here!
    </td>
    </tr>
    </table>

    Notice that we did not have to put the codes <td> <b> <h1> HEADER 1 </h1> </b> </td> to get that header effect! We simply made use of the th atribute which is simpler and easier!

  8. bgcolor - this will set your table background colors!
    illustration

    Put your text here! Put your text here!

    The code used above is as follows:
    <table bgcolor="#333D6F" cellpadding="10" cellspacing="10">
    <tr>
    <td bgcolor="#3394A8">Put your text here!
    </td>
    <td bgcolor="#3373A8">Put your text here!
    </td>
    </tr>
    </table>

    This makes a prettier looking table, doesn't it?

Labels: , , ,

Putting Backgrounds on Your Pages

Here are ways to put backgrounds on your page!

The most simple way is to use this basic html code:

To change the color of your background use the following code:
<body bgcolor="#FF0000">

To put a background image you can use this code:

<body background="image.gif">
The code above will give you a tiled background. And if you wish to place a fixed background on your page you can place this code:
<body background="image.gif" bgproperties="fixed" >

But the most convenient way to put background is by the use of your CSS

You can place this code on your CSS:

You can change the attributes on the above code to your liking.
If you want the background to repeat, change no-repeat to repeat-y
If you want to place your background anywhere but on the right bottom just change where you want the image to be; ex. left bottom
If you do not want your background to be fixed on the page...you can omit background-attachment: fixed
If you do not want any color on your background and only the image you can omit background-color:#ffffff

Labels: , , ,

Putting Images on Your Pages

Inserting an image to your page

<img src="YOUR IMAGE URL HERE">
Example: <img src="http://images.neopets.com/games/new_tradingcards/lg_poogleday09.gif">
The image will look like this:

Aligning your images

To align your image to the left use this code:
<img align="left" src="YOUR IMAGE URL HERE">
To align at the center use this code:
<img align="center" src="YOUR IMAGE URL HERE">
To align your image to the right use this code:
<img align="right" src="YOUR IMAGE URL HERE">

Using Alt

Sometimes you would like to put some descriptions on your images you can do this by inserting an alt.
<img src="YOUR IMAGE URL HERE" alt="your description here">
Example:<img src="http://images.neopets.com/games/new_tradingcards/lg_poogleday09.gif" alt="Just take a flight">
Now just put your mouse over the image below and you will be able to see the description!
Just take a flight

Resizing your images

You just need to adjust the width and height of your image to whatever size you desire!
<img src="IMAGE URL" height="100" width="100">
Just change 100 to whatever number!

Making thumbnails

Here's a way to make thumbnails
<a href="IMAGE URL"><Img src="IMAGE URL" width="100" height="100"></a>
Just change the width and height to whatever size you would like your thumbnail to be!

Labels: , ,

Hyperlinks

Hyperlinks or links as they are commonly called are very easy to do!

How to do text links:

<a href="YOUR ULR HERE"> THE TEXT YOU WOULD WANT TO APPEAR HERE </a>
Example: <a href="http://www.angel-wings.co.nr/"> ANGEL WINGS </a>
and the example link above will look like this:
ANGEL WINGS

What if you want to put an image on your link

<a href="YOUR ULR HERE"><img border=0 src="YOUR IMAGE URL HERE"> </a>
Example:<a href="http://www.neo-faeriewings.co.nr/"><img border=0 src="http://i90.photobucket.com/albums/k260/neofaeriewings/nfw3hi3.gif"> </a>
and the example link above will look like this:

How to send someone on a specific part of the page

If your page is so long that your visitor would have to scroll up and down a lot, no need to worry. You just have to provide them with a link that would take them on the specific part of your page or what we usually call an ANCHOR!
To start of you would need to name the particular part of the page you want to direct your visitor to. In our example let's use the name HERE.
<a name="HERE"> THIS IS THE SPOT</a>
Then on the link you want your visitor to click to go to THIS IS THE SPOT add this code
<a href=#HERE> CLICK HERE TO GO TO THIS IS THE SPOT </a>
let's try our examlpe, click the link below
CLICK HERE TO GO TO THIS IS THE SPOT

What if you want to send your visitor to a specific part of a different page?

It's simple, all you have to do is name the particular part of the page this time let's use THERE
<a name="THERE"> YOU'VE FOUND "THERE"</a>
Then on the link you want your visitors to click to go to "THERE" add this code:
<a href="PUT THE URL OF THE PAGE WHERE THERE IS#THERE"> CLICK HERE TO GO TO "THERE" </a>
Example:<a href="terms.html#THERE"> CLICK HERE TO GO TO "THERE" </a>
Now let's try our example. I want you to go where "THERE" is. Please click the link below to be transporated
CLICK HERE TO GO "THERE"

Please come back here afterwards.

E-mail Links

Here is the link for sending e-mails.
<a href="mailto:YOUR E-MAIL ADDRESS">E-MAIL ME</a>
Example:<a href="mailto:angelwings_staff@yahoo.com">E-MAIL ME</a>
then the link would look like the one below
E-MAIL ME









































THIS IS THE SPOT
wasn't that fun?

Labels: , ,

Text Attributes

Changing Text sizes

<FONT SIZE="+3">This is +3</FONT>... which is the biggest
<FONT SIZE="+1">This is +1</FONT>...which is slightly smaller
<FONT SIZE="-1">This is -1</FONT>... which is more smaller
<FONT SIZE="-6">This is -6</FONT>...and so on

You can also change the sizes of your HEADINGS by typing in these tags!

THE LARGEST SIZE

<h1>THE LARGEST SIZE</H1>
Up to
THE SMALLEST SIZE
<h6>THE SMALLEST SIZE</H6>

Changing Text colors

To change the colors of your font you must insert this tag:

<font color=the hex color/color>your text</font>

Example:

<font color=#c060ff> c060ff</FONT>

or

<font color=red> red</FONT>

Changing Text font

To change the your fonts all you need to do is to put the following code:

<font face="the font you want"> your text here </font>

Example:

<font face="arial"> your text here </font>

the result:

your text here

Using all the font attributes

Let's make the word "Neo-Faerie Wings" in bold, italic, size 4, color red, and in arial font!

The code to make that happen is

<b><i><font color=red size=4 face="arial">Angel Wings</font></i></b>

The result:

Neo-Faerie Wings

Labels: , ,

HTML Basics

Single Tags

Lines can be separated using the <br > tag. When you insert this tag at the end of a sentence, it starts the next sentence on the next line.
Example:
This is line one. <br > And this is line two.
The result:
This is line one.
And this is line two.

If you want to SKIP a line you can use the <p > tag. This has the same use as the <br > tag only it skips a line and starts your sentence from there.
Example:
This is line one. <p > And this is line two.
The result:
This is line one.

And this is line two.

Simple TAGS

Here are a few simple tags you can use:

To make your text bold:

<b>YOUR TEXT HERE!</b>

To make your text italic:

<i>YOUR TEXT HERE!</i>

To underline your text:

<u>YOUR TEXT HERE!</u>

To strike your text:

<s>YOUR TEXT HERE!</s>

To make your text look like that of a typewriter font

<tt>YOUR TEXT HERE!</tt>

If you would want to put a line across your page you can do so by puting this code:


<HR WIDTH=75%>
You just need to adjust the percentage to whatever length you would want your horizontal line to be. In this case I wanted it to be 75% of the width of the page it is contained.

Labels: , ,