2007-10-24

Fluid, Three-Column Layout

HOME||CONTENTS

In terms of adjustability, there are actually two basic types of web layouts. The first type is the fixed layout. Most blogsites have this type of layout. While the second type of layout is the fluid layout. In both types of layouts, there are corresponding advantages and disadvantages. The specific type of layout can be determined or identified by the behavior of the texts and elements of a particular web page. If you horizontally adjust the size of the web browser, the texts and page elements may or may not shift their respective positions. If the texts and elements do not change their respective positions, the layout of that particular page you are viewing is fixed. Conversely, if the texts and elements of the page shift positions to fit the size of the window browser, the particular page that you are viewing has a fluid layout.

First, we will change the standard two-column layout of your Blogger blogsite template. It is advisable that you first switch to minima template. This is the easiest Blogger template to edit.

NOTE: If you find it hard to directly edit the HTML template of your blog, you can use Notepad or Word to do the editing. Copy-paste the entire template onto a separate Notepad or Word document. Simply use the CTRL+F command to find the specific sections that are enumerated here. After you have done all the editing, you can again copy-paste the edited template codes onto the template editor box of your blogsite.

I. Change to Three-Column Layout:

Step1: Backup your template by copy-pasting the template codes onto Notepad and saving the file. Make sure that you checked the "expand widget" box.

Step2: Find these sections in your HTML template:

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>

Change the above codes into these:

<div id='right-sidebar-wrapper'>
<b:section class='sidebar' id='right-sidebar' preferred='yes'>

Step3:In the style sheet portion of your blog template, change this element: "#sidebar-wrapper" into this: "#right-sidebar-wrapper"

Step4: Find this section: <div id='content-wrapper'>

Add these codes below it:

<div id='left-sidebar-wrapper'>
<b:section class='sidebar' id='left-sidebar' preferred='yes'/>
</div>

Step5: Add these codes to your style sheet:

#left-sidebar-wrapper {
width: 220px;
float: left;
word-wrap: break-word;
overflow: hidden;
}

Step 6. Change outer-wrapper and header-wrapper width. In your CSS-style sheet look for the #header-wrapper and #outer-wrapper definitions, and change the width definitions from 660 to 860.

Step7: Add a page element. Save the template and go to the Page Elements Tab. Now, you can finally add a page element to your left sidebar. Save the template and view your blog. The Page Elements Tab should look like the illustration shown below.


NOTE: Always save your template every time you make changes.

The layout that you have just created is a fixed layout. You can change this layout into fluid layout by adjusting the wrapper elements.


II. Change to Fluid Layout:

Step1: Locate these element wrappers or CSS definitions in your style sheet:

HEADER

#header-wrapper {
width:950px;
background:#000000;
margin:0 auto 10px;
border:4px outset $bordercolor;
}

OUTER

#outer-wrapper {
width: 950px;
margin:0 auto;
padding:15px;
text-align:left;
font: $bodyfont;
}

MAIN

#main-wrapper {
width: 450px;
border:4px outset $bordercolor;
background:#C9BE62;
padding:10px;
float: left;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

RIGHT SIDEBAR

#right-sidebar-wrapper {
text-align:center;
width: 200px;
background:#EAC117;
border:2px solid $bordercolor;
padding:0px 5px;
float: right;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

LEFT SIDEBAR

#left-sidebar-wrapper {
text-align:left;
width: 190px;
padding-left:50px;
float: right;
word-wrap: break-word;
overflow: hidden;
}


Step2: Change the width definitions from pixels (px) into percentage (%). An ideal percentage proportion would be: 100% for the header and outer wrappers; 60% for the main wrapper; and 20% for both the sidebar wrappers. You can experiment on this to see the best result that you prefer.


Please continue reading...

2007-10-19

Adding a Menu Bar

HOME||CONTENTS

There are actually several methods of adding a horizontal menu bar in your blogsite. However, the method that I have used in this blogsite is quite straightforward and does not involve any modification of the style sheet of the template. A menu bar is actually just a horizontal link list found on the header area. For instance, the menu bar may contain links to a profile page or to an interactive page for games or embedded chat rooms such as found in this blogsite. These pages could be separate posts within your site or external links. Remember, every blog post that you make has its own unique page URL. Simply click the title of the specific post you want to link to display the URL address.

Here are the simple steps you can follow to create a menu bar above the blog header:
STEP1. Open the HTML template editor of your blogsite and check the box that says "expand widget."

STEP2. Copy and paste the entire template onto Notepad or Word. Save the document as backup template. You may also use this document to edit the HTML codes of your template.

STEP3. Locate this section in the HTML template of your blog:

<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>

STEP4. Change the maxwidgets to "2" and also change the showaddelement to "yes". Save your template and view the Page Elements tab of the template. You will notice that an additional Page Element box appear above the Header box.



STEP5. Click the "Add a Page Element" on the new Page Element box above the Header box. Select the add text option.

STEP6. Type the names of links that you want to appear on your menu bar. Type these names as one line with verical separators. For instance, you may type the following:

HOME|ABOUT ME|CHAT|PICTURES

STEP7. Now comes the tricky part. You must link each link name to a particular post on your blogsite. First, go to that particular post page by clicking the title of the post. For instance, if you have a post about a short autobiographical profile, copy the URL address of this particular link. You will use this URL address to create a link for the "ABOUT ME".

STEP8. Here are the codes that you should use to link each link name on your menu bar: <a href="url address"> and </a>. You have to enclose each link name inside these codes to create specific links. You simply have to specify the url address.
There is another method of creating a menu bar. But this requires the modification of the style sheet. I will make a post about this later. For now, the method that I have explained in this post will suffice for your basic need.

Please continue reading...

2007-10-15

Linking Graphics

HOME||CONTENTS

You can easily insert pictures or graphics in your blog post using the upload picture button. You may upload directly from your computer or from an internet source. You may also easily link the picture or graphics to any web address you prefer by simply highlighting the picture and clicking the link icon/button of the tool options available on the menu bar of the rich-text editor box of your blog post.









However, linking a graphic or picture is not straightforward when it comes to the widgets of your side bars. Hence, a simple knowledge of HTML tags would be helpful.

The basic HTML tag used for displaying a graphic is this <img src="url address">. This HTML tag will insert the graphic of the URL address that you specified. It it is advisable that you use jpeg images.

On the other hand, to link the said image to a particular web address, you simply have to enclose the above codes inside these codes: <a href="web address"> and </a>.

Save your post and view your blog. As you hover, the mouse arrow over the image, you will notice, that it will change into hand, indicating that the image is a linked image. The aformentioned HTML codes will give you flexibility in inserting images and linking those images whenever the text editor does not provide easy clickable options such as in the case of sidebar picture and text widgets.

For instance, the codes used for the image shown below are the following:

<a href="http://homar.wordpress.com/" target="new">
<img src="http://homar.files.wordpress.com/2007/09/rizalman.jpg"></a>




Please continue reading...

2007-10-11

Dropcaps Effect

HOME||CONTENTS

Have you noticed the styles of most magazines and some books? The first letter of each article is typically exaggerated in size. The rest of the paragraph wraps around the overly-sized capital letter as if it is a picture or graphic. This style is primarily for aesthetic purposes. However, it is also intended to give emphasis to the start of the article. This style is called drop caps.

You can actually imitate this style in your web articles such as blogs, provided that you have access to the template style sheet of your blogsite. When it comes to flexibility in style, Blogger is the best free blog host. Other blog hosts do not allow access to the template style sheet.

To display the drop caps effect, you must first open the HTML-CSS template of your blogsite. Then, insert the codes listed below into the style sheet of your template. The style sheet is the collection of CSS codes found between the <head> and </head>tags of your template.

As you can see, the first letters of my posts are all displayed as drop caps. These do not involve the mere resizing of the texts in the blog post template. Drop caps involve the modification of the style sheet. Below are the codes that I have used.

.dropcaps
{
float:left;
color: $#C68E17;
font-size:100px;
line-height:80px;
padding-top:1px;
padding-right:5px;
}

After inserting the above codes in the style sheet of your template, save the template and view your blog. You will notice that no change has occured. This is because you still need to enclose each first letter of your posts inside these codes: <span class="dropcaps"> and </span>.

After enclosing the first letter of your post save your blog and view the result. You always have to enclose the first letter of your post to display the drop caps effect.

I still do not know how to automate this style (if it can really be automated at all). If someone reading this post knows the solution to this, please post a comment. I will be trully grateful for the information.

Please continue reading...

Check Page Rank of any web site pages instantly:
This free page rank checking tool is powered by Page Rank Checker service