Read + Write + Report
Home | Start a blog | About Orble | FAQ | Blogs | Writers | Paid | My Orble | Login

CSS ID and class

May 13th 2012 19:35
CSS ID and class are similar, but also small different. It may be confusing for HTML/CSS beginners.

1) The CSS id selector uses the id attribute of the HTML element, defined with a "#".
ID mycss example in CSS:
#mycss
{
text-align:center;
color:blue;
}


Applied in HTML code
<p id="mycss">My Text after CSS ID</p>

2) The class selector uses the HTML class attribute, defined with a "." The class here is different from the class in Object Oriented Languages, eg C , Python and Java.
Example: CSS class flashContainer:
.flashContainer {
overflow: hidden;
}
applied in HTML:
<p class="flashContainer"> </p>

3) Difference between ID and class

Ids are to be used only once in your html layout. Ids are used for the main elements of the page, such as header, main content, sidebar, footer, etc. Ids have priority over classes. Classes are used for elements that will appear several times on your page.

example:
<!--CSS part:-->
<style type="text/css">
#blueidstyle {color:blue}
.redclassstyle {color:red}
</style>


<!--HTML part:-->
<body>
<p id="blueidstyle">Blue for id</p>
<p class="redclassstyle">Red for class</p>
</body>
29
Vote
   


Google search is a very good search engine. But sometimes it returns too many pages. You can modify your search to narrow down the page returned.
One of the example is to search only in a single website.

Yes, you can use Google to search only over your site, not over whole Internet. For example, I want to search "Canada Economy 2012" only in tsx.com. I just need to input "site:tsx.com, Canadian economy 2012" in Google search. All results are from tsx.com. Similarly, if you used " site:money.cnn.com", then all results are from money.cnn.com.
21
Vote
   


Synchronize in fireftp

March 1st 2012 07:26
In Fireftp, it may take a lot of time when you download or upload a large amount of files. When only a few files modified in the remote or local directory, you do not want to ftp the total directory again. You can use sync tool in Fireftp to synchronize local and remote directory and sub-directories.

In Fireftp, go to "tools", click options, Click Downloads/Uploads at the top menu,
Select
Automatic Mode.
use compress,
keep timestamps in sync
check integrity of file transfer


Select the local directory you want to synchronize, which at the first column of the local site; Select the remote directory you want to synchronize, which at the first column of the remote site;

Click tools at the top menu, select " Sync directories and sub-directories"
After comparing two directories (it may take a few minutes), a new window pop up. You can see Sync Directories

For missing local files, you can select "Download", "delete", "Do Noting";
For newer local files, you can select "Download", "upload", "Do Nothing",
After your selection, click "Sync" button, synchronize between local and remote directories starts.
20
Vote
   


Introduction to PHP

January 12th 2012 20:12
PHP distribution can be downloaded from HERE.

PHP: Hypertext Preprocessor is an object oriented scripting language designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML code and interpreted by a web server with a PHP processor module. You don't need to worry that your PHP code can be stolen. PHP language is open source, free to download and platform independent.

Basic Syntax of PHP:

1) PHP files with extension .php
2) A PHP code block starts with "<?php" or "<?" and ends with "?>". You can embed your PHP code block in html file.
3) The comment line starts with //, or start with /* and end with */
4) Other syntax in PHP is quite similar to C/C
5) Combined with MySQL, PHP is a powerful tool to build dynamic and secure website.

Video: What is PHP

20
Vote
   


SVG-editor is a free online vector graphics editor from Google. You can download SVG-editor for free from HERE.

SVG-editor has free-hand drawing, lines, polylines, ellipses, square and much more features. You just need to copy the download folder to your web server and run svg-editor.html.

One of the website used SVG editor for clipart is clker.com. I do find a lot of nice drawings there using SVG editor.

Below is the example of SVG editor embeded.
20
Vote
   


The speetest.net website can help you check your network connection speed online for free, including upload speed and download speed. The website link is HERE.

This is my test result for wireless and wire network connection


[ Click here to read more ]
29
Vote
   


Design your logo free online

September 11th 2011 05:10
Do you want to design your web logo by a single click?
Click HERE

[ Click here to read more ]
30
Vote
   


WinMerge is an Open Source differencing and merging tool for Windows. You can download WinMerge from HERE:

WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle


[ Click here to read more ]
19
Vote
   


Alleycode is a fast, free, intuitive, robust, fully functional and productive HTML editor, you can download it from: HERE.
Alleycode HTML editor offers Synchro View, which provides real-time rendition with two-way synchronized code/design view.

[ Click here to read more ]
19
Vote
   


Map Network drive in Windows 7

June 18th 2011 15:34
1. Click Start ->Computer
2. Click Map Network Drive, you will see below popup:
Map Network Drive
Map Network Drive

[ Click here to read more ]
20
Vote
   


More Posts
1 Posts
1 Posts
1 Posts
109 Posts dating from May 2008
Email Subscription
Receive e-mail notifications of new posts on this blog:

Jiansen Lu's Blogs

2092 Vote(s)
1 Comment(s)
54 Post(s)
1174 Vote(s)
0 Comment(s)
24 Post(s)
6034 Vote(s)
2 Comment(s)
181 Post(s)
6052 Vote(s)
53 Comment(s)
103 Post(s)
Moderated by Jiansen Lu
Copyright © 2012 On Topic Media PTY LTD. All Rights Reserved. Design by Vimu.com.
On Topic Media ZPages: Sydney |  Melbourne |  Brisbane |  London |  Birmingham |  Leeds     [ Advertise ] [ Contact Us ] [ Privacy Policy ]