24
Mar

Basic Steps to Create the Site-in-an-Hour

I have to start by saying that the Site-in-an-hour exercise was one of the most valuable lessons that I have completed in a long time. I really learned a lot.

I forgot to include several images in the img folder; please copy the siteinanhour folder to your user directory again.

Here’s what you should do:

Type the XHTML code in TextPad; save the file as index.html in the siteinanhour folder. Proofread your code carefully. After you have completed the XHTML code file, preview it in both Firefox and Internet Explorer. Your document should have no styling and look very bland; you can see my unstyled XHTML document here. Even after the CSS code has been created and attached, the older “legacy” browsers will still see this bland version. This is because of the method that was used to import the default.css file:

Import CSS code - hide from Mac and Legacy Browsers

After completing the XHTML file, start building the CSS. As you add each new declaration, preview the index.html file in Firefox to see the changes to the page. This is a really important part of the building process and it will help you to understand what each declaration is controlling and styling. Remember to add your own comments to each section of the code.

There is a tricky CSS ruleset used to clear the floated elements:


ul#nav:after, #outer:after, #sub:after, form:after, form div:after {
content:".";
display:block;
visibility:hidden;
clear:both;
height:0;
}

In all honesty, this confused me, but Andrew points to this article at CSS Creator that outlines the method used. I was still confused, but then I found an article at position is everything which helped to clear the fog a bit.

In the CSS code we are applying a border and a background color to the #outer div. Unfortunately, this border will not “grow” to accommodate all the floated elements within, so you end up with a border/background that is shorter than the actual contents of the page. We’ve seen this happen on a number of class projects; the background does not grow to fit the contents. It’s probably easier for me to show you; take a look at the bottom of this page and you will notice that the background does not enclose the footer elements. The above code will fix the issue and should be applied to all of the “floated” elements within the #outer div.

From what I understand there is an easier method to achieve the same results that has recently been discovered. I found some information on this method at Quirksmode. I think that the overflow:auto; could be added to the #outer CSS ruleset like this:


#outer {
    margin:0 auto;
	width:94%;
    min-width:40em;
    max-width:70em;
	border:10px solid #fff;
	border-width:0 10px;
    background:#fff;
	overflow:auto;
}

I tried this and it worked, but the bottom margin was slightly different with overflow than the original in Firefox; you can see my test with overflow:auto used here. With the original code you can actually see the background image at the bottom of the page. This overflow:auto also made my Internet Explorer very cranky. I will need to do some more research on this because I have a feeling I’m missing something. I’ll update you with my findings. For today’s exercise, use the original code. Please see the comments below for more information on my adventures with overflow.

You can see my final document here. This was a wonderful exercise and I learned a ton and I think you will too Thank you to Andrew Krespanis of leftjustifed.net for allowing my class to experiment with his wonderful presentation!

Please add your comments and questions below.

23
Mar

Prep for Site-in-an-Hour

Just a reminder, tomorrow we will working on the Site-in-an-Hour exercise. There are a few things you should do before class:

  1. Print and read the presentation. You should also read the associated links on the presentation. If you send the first page of the presentation to the printer, the entire presentation will print.
  2. Print and review the source code of the sample site.
  3. Print and review the css code of the sample site.
  4. Print and review the minmax.js script. Be sure to print the actual script.
  5. Print and review the form.js script.
  6. Print and review ie7-standard.js.
  7. Copy the folder J:\webclass\siteinanhour to the root of your user directory. In Windows Explorer, right-click the folder siteinanhour and select Copy; select your user directory, right-click and select paste. Do not drag and drop the folder. You will use the siteinanhour folder for your site. The necessary images and scripts are already in the folder.

I would recommend that you use Firefox to review and print these files.

23
Mar

Managing Fonts

There are times that you may want to use a font in a graphic program without installing it to your system. Having too many installed fonts uses valuable system resources and slows down your computer. Fonts are installed in the folder C:\Windows\Fonts (winnt\fonts on some systems). While MS says you can have as many as 1,000 installed fonts, you may start running into problems around the 500-800 mark. This of course all depends on your system memory and other computer components. There is actually a registry key that controls fonts and when it is full you can no longer install fonts.

While you can delete fonts, you should be careful when doing so; if you delete system fonts, you could cause more trouble. Fonts that you shouldn’t delete from your system (C:\windows\fonts) are: Arial, Bookman, Book Antiqua, Century Gothic, Comic Sans MS, Courier, Garamond, Georgia, Haettenschweiler, Impact, Lucida, Microsoft Sans, Modern, Monotype, MS Outlook, MS Sans Serif, Palatino Linotype, Roman, Script, Small Fonts, Symbol, Tahoma, Times New Roman, Trebuchet, Verdana, Webdings, Wingdings, in all their various incarnations. Sue Chastain at About.com also has a list of fonts that should not be deleted from a Windows system. Before you delete any fonts, you should make a copy of the fonts folder just in case. Visit Microsoft’s Typography site to see what fonts are installed with all Windows systems and Microsoft programs. Note: These are usually the best fonts to use in XHTML documents because they are available on all Windows systems.

Instead of installing tons of fonts, you can keep a separate folder of fonts on your hard drive. I store the fonts that I don’t use all the time, but I want to be able to access quickly in a separate directory called fonts. Hummm, that’s pretty simple. ;)

When I want to use a font that is located in C:\fonts, I open the folder and double click the font name, a font preview window will display; minimize the preview window. Open the program that you want to use and the font should be available on the program’s font list. You must open the font preview, minimize the preview, then open the graphic program. If the graphic program is already open, the font will not be available. If you need to edit the image that uses the font, the font preview must be opened and remain open whenever you are editing the image/file that uses it. I know this trick works in Paint Shop Pro, Fireworks, and Photoshop.

There are additional fonts available in the classroom on our server for your web projects. They can be accessed in Windows Explorer on drive pm on ‘rop’ (J:). On the J:\ drive there is a folder called webclass with a fonts subfolder. You can use the above directions to temporarily use the fonts in this folder.

To install fonts, right click the Start menu and select Explore. Open the Windows folder on drive C:\ (Click show contents of this folder if necessary). Select the fonts folder from within the Windows folder. Click File > Install New Font. Navigate to the J:\ drive and select the webclass\fonts folder. The available fonts will appear in the list of fonts. Click the font that you want to install/use and click OK. Note: You can select more than one font by holding down the CTRL key while clicking the font names. The installed fonts will now be available for use in all installed applications. If an application is open while you are installing fonts, you must restart the application in order for the fonts to be available. Please do not install all of the fonts in the J:\ drive on your system. There is a folder which contains a printout of all of the fonts on drive J:\ on the top shelf of the bookcase (next to the closet) .

Of course there are also tools that you can use to manage and view your fonts, here are a few:

  1. Font Lister - Is a font utility that allows you to view and install fonts on the fly. You can also print all of your fonts installed on your system. This is a very handy program! There is both a freeware version and a shareware version that costs $5.00. This is an old favorite of mine; I’ve used it on and off for many years.
  2. FontList - This freeware utility quickly creates an HTML file of all of the fonts installed on your system. This is great for on-line viewing and printing.
  3. The Font Thing - A very nice font utility that allows you to browse installed and uninstalled fonts, print font samples, install or uninstall fonts, load fonts for temporary use, rename fonts, and sort and group them. I really like this font utility!
  4. NoNags - Lots of different freeware font utilities. Be sure to check out all the other free programs on the site.

If you’re looking for more fonts, I have some links on putertutor.net. There are probably broken links there, I need to validate, but there are good links too. :)

23
Mar

Have You Checked for Updates Lately?

I have encouraged all of you to download and install some of the powerful extensions that are available for Firefox. Did you know that you can check to see if there are updated versions of your currently installed extensions from within Firefox? Click Tools > Extensions, select the extension you would like to update and click the Update button. If there is an update available you’ll be prompted to install it.

If you haven’t installed Firefox extensions yet, you can learn more about extensions and other cool Firefox features in my tutorial Using Mozilla Firefox

Andrew, leftjustified.net, recommended that we visit the codingforums.com. Looks like a very active forum with a lot of great information! Andrew also mentioned that we should be sure to view the source code of his site-in-an-hour files since they are heavily commented with useful information. Thank you Andrew!

22
Mar

phpMyAdmin

I updated the phpMyAdmin tutorial to include creating tables.

22
Mar

SQL and f2o

For students who are working with PHP/MySQL in Dreamweaver I have a tutorial forimporting SQL tables into f2o using phpMyAdmin that you may find helpful.

We have encountered some issues trying to import SQL files (text files with the SQL statements) into f2o with phpMyAdmin. I have added notes on how to correct this issue to the tutorial and you can find the import notes here. Even if you don’t have problems “importing” the SQL files, you may find this tutorial helpful if you are beginning tutorial 9 of the Dreamweaver book.

The WAMPServer Installation tutorial also has a BRIEF introduction to working with phpMyAdmin.

Here are a couple more tutorials/resources on working with phpMyAdmin/MySQL:

  1. phpMyAdmin Tutorial
  2. Learning SQL Using phpMyAdmin - there are a lot of PHP/MySQL resources on this site.
  3. Margie also found the book Mastering phpMyAdmin for Effective MySQL Management on Amazon. I have not read it, but it looks like a good one. My only hesitation is that the phpMyAdmin interface changes, so it could become outdated. But then again, once you learn the basics you should be able to work with an updated version without too many issues. I went ahead and ordered the book so we would have a class copy. :)

On another note: Dan at f2o contacted me to let me know that your accounts have been approved. Start uploading! I have instructions for uploading with WS_FTP and Dreamweaver.

22
Mar

CSS Tips and Tricks - Site in an Hour

When Andrew Krespanis of leftjustified.net stopped by this blog and left us some tips I was so darn excited. What a nice thing to do! So I ventured back over to his site, which I’ve been meaning to do anyway, and I found this presentation Making Complex CSS Simple: Site in an Hour. My little wheels were turning and I thought this would be a great class project. :) So, on Thursday we will try out Andrew’s tutorial in class. Please try to read the tutorial in class on Wednesday so you’ll be prepared for our project.

456 Berea Street has released two excellent articles: CSS Tips and Tricks Part I and CSS Tips and Tricks Part II. Both articles are worth bookmarking, printing, and filing in your web design binders.

Change of subject - BugMeNot allows you to bypass mandatory web registration for web sites like the New York Times. There is also a Firefox extension for this service.

21
Mar

Designing for Handhelds

There is a lot of buzz on the design sites about designing for handheld devices. With virtually all of the new handheld devices (cell phones & PDAS) offering some kind of web access and usability improving more and more people are turning to their handheld devices to access the Internet when they’re away from their desktop computers.

We’re currently researching several PDA options for Rob to use on his job. He’s a salesman for an equipment rental company and spends 90% of his time on the road. He needs to be able to access his email and corporate web site so he can prepare quotes for clients when he’s on the road. I want a new Palm with wireless access because I have to have all the latest gadgets and my cell phone is just too tiny to surf with. ;)

Handheld devices are yet another reason to write standards compliant XHTML and CSS code. Stylesheets can be written specifically for handheld devices and while this is covered in tutorial 7 of your XHTML books there is a great article at CSS-Discuss by Jim Wilkinson on Stylesheets for handheld devices. Jim’s article has a lot of great tips and resources to other sites. I learned that you can test your handheld CSS sites in Opera by clicking View > Small Screen.

If you’re looking for more info on coding for handhelds, read WebMonkey’s The End-All Guide to Small-Screen Web-Dev article or check the links at the bottom of Jim’s article.

21
Mar

The Issue of Cell Phones in Class

It seems that on a daily basis we can count on a student’s cell phone loudly ringing several times during class. Class is further disrupted by the phone being answered with a loud “Hello” in the middle of the room. This has become a joke in class with students and I threatening to collect a dollar for each class disruption; this has not deterred anyone.

Many students are annoyed and are complaining about the frequent disruptions to class. A phone ringing in class breaks concentration and disrupts the learning process. We need to keep in mind that many people attend classes so that they have a quiet place they can study without the constant interruptions of home life. It is very important that the classroom atmosphere is conducive to learning; this means minimal interruptions and a quiet atmosphere. Cell phones playing Bach are not conducive to the desired atmosphere.

While I will not ban cell phones from the classroom entirely because they are necessary in the case of an emergency; phones MUST be turned off or set to silent mode during class. In the event your device goes off in class, you will be asked to leave the classroom for that day, and given an absence.

20
Mar

The Design Process

I was reading SimpleBits this morning and there was a link to Design Eye for the Idea Guy which outlines the process of redesigning a site for a client, Dirk Knemeyer. Excellent sample logos, color choices, typeface samples, wireframes, and photography ideas are shared on these pages. The pages should give you inspiration and a lot of planning assistance. Of course while I was there I had to check the designer pages which were filled with even more valuable information (my RSS feed list is getting much longer!)

Us.ef.ul is a beginner’s guide to del.icio.us. John does a much better job of explaining del.icio.us than I did in class last week. :?

StumbleUpon “is a network of people and pages. It is a free tool which helps you browse, review and share webpages while meeting new people.” So how does it work? You can install the StumbleUpon Firefox Browser Extension which installs a new toolbar in Firefox. Through the toolbar you can sign up for the service which activates all of the toolbar features. While you are signing up you will be asked to select the kind of sites you like to visit from a list of categories. Once the sign up is complete you can stumble all over the web with a click of a button. You can then rate and comment on sites. This is a great way to see sites that you may not otherwise “stumble upon”!

Next Page »