Archive for the ‘Web Design’ Category

Dreamweaver 5.5 HTML5 / CSS / JS Setup done right

Saturday, February 18th, 2012

At work I recently upgraded to Adobe Dreamweaver 5.5. I forgot that I added the HTML5 Pack via Adobe Extensions to DW, but was quickly reminded when I created new files and no longer had CSS reset or dom.ready in my files. I soon found that the HTML5 Pack is ‘included’ with the defaults of DW5.5, except my default files were all lame and empty.

[I already know that most 'professionals' poop all over DW, but it is the program I learned to code in and mocking me will not get me to change my mind]

This led me to learn how actually customize the default files for DW and eventually I created a nice little stripped down DW Boilerplate for myself. I didn’t find any good documentation, so I figured I use the moment of inspiration to write a post.

Setup the default html file

  • Summary: HTML5 Template with generic links to styles, scripts, etc
  • 1. Set DW to open your html files with the HTML5 doctype.
    – Dreamweaver -> Preferences -> New Document -> Default Document Type (DDT):
    – change the setting to HTML5
    This will give you a nice little naked HTML5 file, but we can make it better.
  • 2. Build you preferred HTML template that will open each time you open a new html document.
    – In your computer, find: Dreamweaver 5.5 -> Configuration -> DocumentTypes -> NewDocuments -> Default.html
    Open the file in DW, then just type or copy/paste in your new html template. Save, then open a new html file, and you should see exactly what you just added!

Setup the default javascript file

  • Summary: basic js file with jQuery doc.ready and window.load ready to rock
  • 1. Build you preferred javascript template that will open each time you open a new javascript document. Really, the html file is the hardest to to, because it is two steps.
    – In your computer, find: Dreamweaver 5.5 -> Configuration -> DocumentTypes -> NewDocuments -> Default.js
    Open the file in DW, then just type or copy/paste in your new javascript template. Follow the same process for testing.

Setup the default css file

  • Summary: default css file with reset, author comments, indexing and device widths
  • 1. HTML5 is sweet, JS is ok, but the CSS is where I really pat myself on the back.
    – In your computer, find: Dreamweaver 5.5 -> Configuration -> DocumentTypes -> NewDocuments -> Default.css
    Thats it, you are good to go.

So now knowing these principles, you know where every default file template is in DW and you can customize all the templates you use.

As for more details about my boilerplate. I found other boilerplates to be informative, but bloated. I was always removing things or noticing things I forgot to remove. I wanted to come from the other direction. Just the proper basics that will provide the things I need and save me time. This is my first draft of these files, but this shit is organic and will evolve, so feel free to take mine and use them as your starting point.

  • HTML: HTML5 document with title tag, favicon link, screen/mobile/print css linked, html5 shiv, some base html tags (header/content/footer), js file linked.
  • js: I always find myself using jQuery, so the file has the standard doc.ready and window.load functions
  • css: This is the file that I really appreciate. It starts with project details, including the math my heights & widths are based on (used for my mobile specific css). It is followed by a basic index, I do this because css files always become a mess if you don’t stay on top of them. Then we roll into Eric Meyer’s reset css with html5 selectors included (I remove the body {line-height} css because it causes me more problems that it solves). It then has the comments that match the index setup. Finishing with some CSS Media Queries for device width. This has it’s own index for all my testing devices and then the corresponding widths breaking down the devices again. Like I said above, I’m pretty proud of this file, makes my life easier.

Download the files(html, css, js)[8kb]

I would love to hear how other folks start there projects off. Their default files.

this site is now HTML5

Tuesday, July 13th, 2010

As of today, this site is built using version 5 of Hyper Text Markup Language (HTML5). The bloggery is next! Combining WordPress and HTML5, here we go.

Please update your browser to see the full set of features. The update option is usually under the help option in your browser.

Thanks for keeping your browser technology up to date!

Learning HTML5, as much as I can…

Wednesday, June 2nd, 2010

This is a template for HTML5 pages, I think this is the first technological upgrade in mark up language that I will be actively involved with while it transitions.

This layout is very simple, it uses header, section, footer, aside, nav, article, & figure tags as well as the google js and minor CSS styles needed to make it work cross browser. It also has some notes I collected while reading up on said tags. This is the first draft, but I will use it from here on out to get myself going, HTML5 style. I just want a simple, clean starting point to learn from, I felt other sites were making templates that were over complicated. It has no styles, except one, but it’s pretty self explanatory. Hope it helps you too!

My HTML5 Template

Subtle SEO tips

Sunday, October 18th, 2009

I chilled with a friend recently who specializes in SEO, dare I say he is a SEO ninja. Anyways, I took notes on one rant he went on on free ways to boost a sites SEO, especially if your demographic is local and select.

Sign up for web hosting for 10+ years – Spam sites pay for hosting for one year periods. If google sees you are only paid up for a year, it questions your site.

Get your business on the free directories
- Google maps & Google Coupons
- Yahoo! Directory
- Yellowbook

Take advantage of Facebook Fan pages – Free, and word of mouth is the best advertising and you can be super specific about the demographic you focus the page towards.

UPDATE: we should also add Bing to the registry list!

Internet Explorer Glitch, new to me.

Thursday, September 24th, 2009

I learned about a new annoying issue when using tables and images in IE6 & IE7.

I was working on a email newsletter that is primarily images, except for a small box of body text. I viewed the page in IE7 & IE7 via IE Tester and I was getting a gap under each image that butted against the cell aka td. I tried playing with cellspacing, cellpadding, margin and padding for the cell, links and images. Nothing worked, still had the gap. I did a little research and found out why.

When I code tables and just in general, I like to put the closing tags on their own lines, makes it easier for me to read. Apparently IE6/7 will add a 1px gap after your image if you don’t close the cell/td on the same line as the image. Simple and annoying. Thanks again Microsoft and Internet Explorer.

I tested in these browsers because they are the closest to the good old email apps that treat code like it’s 1999. On a further not, here are some good anti-IE6 websites to check out.