home Twitter RSS feeds

Tutorial: How to code a Classic Blogger layout - Part 2

Blogged by: Kitty on Wednesday, August 10, 2011  
Commentators: Anonymous Anonymous, Blogger Kitty,
Facebook comments: comments

Right, this is the second part of the How to code a Classic Blogger layout series. In Part 1 I've explained how to code the basic structure of the layout so in this part we'll continue on how to add navigation links.


Step 1
Okay, first we are going to create a list. Open up the HTML document that we created in Part 1. Go to the sidebar section (where it says <div id="sidebar"> </div>) The navigation links in this example will be vertically positioned.




The reason why we create a list is that, this is the easiest way to create navigation links. Paste the following code right after the <div id="sidebar">:


<ul>
<li><a href="link1.html">Link 1</a></li>
<li><a href="link2.html">Link 2</a></li>
<li><a href="link3.html">Link 3</a></li>
</ul>


For now, the navigation will look like the example above. But of course we wouldn't leave it like that, as it doesn't look presentable. So we will have to polish it up.


Step 2
Go to the CSS section as we are going to write up the styling for the navigation menu. The first step is to assign an id to the <ul>. This is to remove the elements that give the appearance of a list (like the bullets).


#navigation {
margin: 0 auto;
padding: 0;
list-style: none;
}


Then apply the id to the <ul>:

<ul id="navigation">


The list now looks like this:


Link 1
Link 2
Link 3


Technically we're done with the navigation. But it looks rather too simple. So we'll spice it up a bit.


Step 3
Paste this codes into your stylesheet.


#navigation a {
display: block;
width: 150px;
background-color: #ffccff;
border-left: 5px solid orange;
padding-left: 5px;
color: red;
}


This will make the background of each of the links to have background colour #ffccff and red for the links. Display:block makes the links to be rendered as a block element which means only one link for each line. The width of the links will be 150px and we assign an orange colour for the left border. The links will be shifted/padded 5px from the left.


Step 4
If you want to add some excitement to the links, we will throw in the :hover selector.


#navigation a:hover {
background-color: #ff99ff;
color: #ffffff;
}



Step 5
Lastly, we also need to space out the links from each other so that they don't look to crowded.


#navigation li {
margin-bottom: 5px;
}



Now we're done styling the navigation links! Play around with the codes and see if you can come up with different styling.

The next tutorial will show you how to create pseudo-pages.


// Please leave a link back to Codeislove if you have followed this tutorial so that I can see what you have achieved from this tutorial. Thank you. //


Buy a domain for your website!
Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting

Labels: ,


Comments to Tutorial: How to code a Classic Blogger layout - Part 2:


how can i add the freebies or tutorial collum on my blogskins? just like this blogskins http://www.blogskins.com/info/367125/ , i mean the link that show the tutorials or freebies? where should i replace it and do i need make another blog?

Do you mean, you want to add "pages"? If that's what you are looking for, please refer to Part 3 of this tutorial.

Post a Comment

Commenting policy:
1. Please leave comments that are relevant to the blog post.
2. Comments on posts that are more than 14 days old will be moderated.
3. Do not post advertisements to your own site/products here.
4. Do not post private information, it will be deleted.
5. Refrain from using abusive/vulgar words, if you have personal issues with me, contact me directly through the contact form or my email instead.

Facebook comments to Tutorial: How to code a Classic Blogger layout - Part 2:


Tutorial: How to code a Classic Blogger layout - Part 2

Blogged by: Kitty on Wednesday, August 10, 2011  
Commentators: Anonymous Anonymous, Blogger Kitty,
Facebook comments: comments

Right, this is the second part of the How to code a Classic Blogger layout series. In Part 1 I've explained how to code the basic structure of the layout so in this part we'll continue on how to add navigation links.


Step 1
Okay, first we are going to create a list. Open up the HTML document that we created in Part 1. Go to the sidebar section (where it says <div id="sidebar"> </div>) The navigation links in this example will be vertically positioned.




The reason why we create a list is that, this is the easiest way to create navigation links. Paste the following code right after the <div id="sidebar">:


<ul>
<li><a href="link1.html">Link 1</a></li>
<li><a href="link2.html">Link 2</a></li>
<li><a href="link3.html">Link 3</a></li>
</ul>


For now, the navigation will look like the example above. But of course we wouldn't leave it like that, as it doesn't look presentable. So we will have to polish it up.


Step 2
Go to the CSS section as we are going to write up the styling for the navigation menu. The first step is to assign an id to the <ul>. This is to remove the elements that give the appearance of a list (like the bullets).


#navigation {
margin: 0 auto;
padding: 0;
list-style: none;
}


Then apply the id to the <ul>:

<ul id="navigation">


The list now looks like this:


Link 1
Link 2
Link 3


Technically we're done with the navigation. But it looks rather too simple. So we'll spice it up a bit.


Step 3
Paste this codes into your stylesheet.


#navigation a {
display: block;
width: 150px;
background-color: #ffccff;
border-left: 5px solid orange;
padding-left: 5px;
color: red;
}


This will make the background of each of the links to have background colour #ffccff and red for the links. Display:block makes the links to be rendered as a block element which means only one link for each line. The width of the links will be 150px and we assign an orange colour for the left border. The links will be shifted/padded 5px from the left.


Step 4
If you want to add some excitement to the links, we will throw in the :hover selector.


#navigation a:hover {
background-color: #ff99ff;
color: #ffffff;
}



Step 5
Lastly, we also need to space out the links from each other so that they don't look to crowded.


#navigation li {
margin-bottom: 5px;
}



Now we're done styling the navigation links! Play around with the codes and see if you can come up with different styling.

The next tutorial will show you how to create pseudo-pages.


// Please leave a link back to Codeislove if you have followed this tutorial so that I can see what you have achieved from this tutorial. Thank you. //


Buy a domain for your website!
Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting

Labels: ,



Comments to Tutorial: How to code a Classic Blogger layout - Part 2:


how can i add the freebies or tutorial collum on my blogskins? just like this blogskins http://www.blogskins.com/info/367125/ , i mean the link that show the tutorials or freebies? where should i replace it and do i need make another blog?

Do you mean, you want to add "pages"? If that's what you are looking for, please refer to Part 3 of this tutorial.

Post a Comment

Commenting policy:
1. Please leave comments that are relevant to the blog post.
2. Comments on posts that are more than 14 days old will be moderated.
3. Do not post advertisements to your own site/products here.
4. Do not post private information, it will be deleted.
5. Refrain from using abusive/vulgar words, if you have personal issues with me, contact me directly through the contact form or my email instead.

Facebook comments to Tutorial: How to code a Classic Blogger layout - Part 2:


Hire me to design your blog!

I offer designing and re-designing of Classic Blogger templates. Examples of my design can be found on my portfolio website.

The basic rate for a design starts from $25 USD. The rate is based on the complexity of the design. The more elaborate the design is, the higher the price is.

How to place your order

Send me an email via the contact form and state clearly how you want your design to be. This includes colour scheme, layout (with or without sidebar, number of columns, etc), any extra features, etc.

Your email should be in this format:
Name:
Design: Please give detailed explanation on how you want your template to look like
Preferred payment method: Paypal/Moneybookers/Payza/Bank transfer to Baiduri bank

I shall respond to your email within 3 (three) days. Your order will be placed into a Waiting Queue as orders are processed on a first come, first serve basis.

Payment methods

Payment has to be made to either by PayPal, or Moneybookers.

However, if you choose to pay via (international) bank transfer, be aware that you may be charged for the transfer service.

Other important information

Throughout the designing process, I may need to refer back to you for questions/opinions so do check your email frequently. This is to ensure the design can be done as soon as possible.

Depending on the design, your template make take up to over 1 (one) week to finish. You will be informed once the template is done.

I will send you an email requesting for the payment after the template is done. Once the payment is received, I will email you the complete template along with the necessary files.

All of my designs/templates will come with a credit section. This section must be left intact and you may not remove nor alter them. Resources that come with the designs/templates may not be redistributed or reproduced.

The designer

Kitty

Kitty. 29. Blogger, web design hobbyist, compulsive shopper and bibliophile based in Brunei. Enjoys creating and designing websites, dabbling with HTML, CSS and PHP.

I've been blogging since 2005 (or earlier) though my experience with the internet started back in 2000. My main interest is in web design and development. Other times you can see me wrapped around a book or glued to Astronomy and web design magazines.

The website

This website was created in January 2011 and the domain was purchased by me in late December 2010. Initially the website was intended to house tutorials for Classic Blogger/Blogspot only however over the time it has developed into what you see today.

Several of the tutorials and articles can also be found on Nekonette.com, which is the my main website where I mostly blog about my personal life. Also some of the tutorials here have been moved to that website.

Categories/Labels

Past layouts

These are the layouts that have been used on Codeislove.net previously.

Wooden board

Layout #1

Dark chic

Layout #2

Royal crimson

Layout #3

Articles, Tutorials and Contests

Articles


Please do not copy the articles verbatim and/or redistribute them on your site. And I'd appreciate it if you link back to me.

Tutorials


Please do not copy the tutorials verbatim and/or redistribute them on your site. And I'd appreciate it if you link back to me.

Popular tutorials:

Converting HTML layout to Wordpress series: How to code Classic Blogger template series:

Other tutorials:

Contests

Linkages

On-site navigation

Network

Looking for money-making opportunities? Check out these websites.

Blog Advertising - Advertise on blogs with SponsoredReviews.com

Business 2 Blogger

banner

Contact the webmistress

You can email me your messages/tutorial requests using the contact form:

Advertising

Codeislove: Geek Is Chic is a blog which houses various articles, tips and tutorials on web design as well as a mix of personal insights published by the website owner.

Simple site statistics:
Monthly Unique Visitors: 5000+
Monthly page views: 7,000 ~ 9,000

Also, if you think that you have a good advertisement offer to discuss with me, do contact me and let's discuss about it.

Get reviewed

You can have your website/blog reviewed here on Codeislove. Alternatively, you can also apply to get your website/blog reviewed on my other website, Amalina.org. You can request your review to be public or private. If you choose to have it public, it will be posted here on Codeislove. Similarly, if you want it to be private, I will send the review to you via email.

Please send an email to me in this format and I will get back to you as soon as I can:

Name:
Email:
Website/blog:
Do you want the review to be public/private?

Websites/blogs currently being reviewed:
Aroha - Ashleenah
Twinkle Toes - Eryn - completed
Gadis bermata cokelat - Nurul Nabila - completed

Related Posts Plugin for WordPress, Blogger...