Posted on 1 Comment

CSS : Difference between # and . (ID’s and classes)

# represents an id ( #content)
. represents a class ( .highlight_text)

ID’s are a unique identifier and as such can only be used once per page. Use these to define the main structure of your site. The # symbol is used to declare your ID styles.

Classes can be used an unlimited amount of times within a page. It is good to use classes for formatting that will be used to keep your layout consistant and easily adaptable to changes. The . symbol is used to declare your class styles.

When you want to amend a preset html tag, do not put any characters ( . or # ) before it. These only apply when defining whether a style is a class (.) or ID (#) For example:
BODY { font-size:1.0em; }
A { color:#F00; }

however you do apply the identifying character to its classes / ID’s as shown below:

A .quick_link { color: #067; }

Posted on Leave a comment

CSS : Center your page (The better way)

I previously had a post showing how to completely center a page, which works, however if the browser becomes too narrow then the page’s far left side becomes hidden as the center of the page continues to take precedence. (Also the previous post would explain how to also center vertically as WELL as horizontally)

Use this instead, besides, its less div’s and quicker:

BODY {
text-align:center;
}

/* Set left & right margins ‘auto’ keeps .content in the center of the screen */
/* Left aligns .content text (otherwise it would follow suit and be centered) */
/* Set desired width (I use 775 so fits on 800*600 with scrollbar) */

.content {
margin:0px auto;
text-align:left;
width:775px;
}

And the html code as follows:

<div class=”content”>
This is my content. Everything inside these tags will be constrained within the 775px boundary however it will adjust depending on the width of the screen to always be centered
</div>

Posted on Leave a comment

CSS: Three Column Layout ( with duplicated rows)

Sometimes you’ll need to display data in rows which also align vertically. (See the example).

For this it is best to create a div for your row holder with individual divs to set the column constraints.

[div class=’row’]
[div class=’cell’]Column 1[/div]
[div class=’cell’]Column 2[/div]
[div class=’cell’]Column 3[/div]
[/div]
And within the stylesheet:
.row {
clear:both;
}

.cell {
float:left;
width:100px;
}

Duplicate the row div and you will have equal rows and columns for your data.

Posted on Leave a comment

Setting UK as default language in Word

Apparently the language setting is a property and not a program level setting so you have to define it for the document you are creating.

New documents are actually created with a paragraph present by default, and this paragraph is set by default to be US English.

To set your new document and ALL FUTURE NEW DOCUMENTS to UK english by default:
Office 2003 / XP Tools > Language > Set Language … > Have English U.K. highlighted and click ‘Default…’
Office 2007 Review tab > ‘Set Language’ option

A popup will ask you to verify that you would like to change the default setting of the normal paragraph, agree to this and close the language box.

All new documents you create will have UK as the default setting.

Note: Old documents will not be converted to UK language setting and you will need to change the setting again when you go back to edit previously created word documents.

Posted on Leave a comment

Popping / Cracking / Static Noises in Video ( Nero )

I found that my video became crackly whenever there was background music. I couldn’t understand why because when I played it in any other player on my computer it sounded fine, only in Nero Vision Express and Nero Showtime did it all go downhill.

After trying multiple codecs and updates and even other programs altogether I was getting pretty angry.

I finally discovered that if I pay for and download an additional plug-in called Multichannel Plug-in the problem is fixed!

Hurray! It looks like my sound needed the 5.1 support from the plug-in.

I hope this helps other people because during my issues I saw many other people with similar sounding problems and I think this could be your solution. They really should provide this plugin for people with older versions of Nero and not just Nero 7.