Tip for IE6 fixes in Dreamweaver

By Tim Priebe on November 27, 2009 at 5:03 pm in How-To, Technical, css

Dreamweaver and conditional IE6 CSSIf you’re a Dreamweaver user and you try to make sure your sites work in Internet Explorer 6, this tip is for you.

When using Dreamweaver templates, one of the things that Dreamweaver does well is automatically correct paths for you. This is extremely helpful, because you don’t have to worry about what directory you’re in when linking to files.

So you might link to a style sheet in your template Templates/main.dwt like this:

<link href="../_css/reset.css" rel="stylesheet" type="text/css" />

Then, when you look at a file index.php one directory up, it looks like this:

<link href="_css/reset.css" rel="stylesheet" type="text/css" />

Or, in a file /misc/news/index.php, it looks like this:

<link href="../../_css/reset.css" rel="stylesheet" type="text/css" />

Internet Explorer 6 often requires several CSS fixes to get your website to look like it does in other browsers. The method I personally prefer (and that we use at T&S) is a separate CSS file for IE6 that’s applied only when IE6 is used.

Here’s what that looks like:

<!--[if lte IE 6]>
<link href="_css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

The only problem when using this technique in Dreamweaver-based sites is that Dreamweaver sees the entire thing as an HTML comment, and therefore does not update the CSS file’s path when it’s in a different folder. So it might work in some files, and not in others.

If your files are PHP files, there’s a workaround. You can use the following code:

<?php echo "<!--[if lte IE 6]>\n"; ?>
<link href="_css/ie6.css" rel="stylesheet" type="text/css" />
<?php echo "<![endif]-->\n"; ?>

And there you go. Now Dreamweaver will skip over the PHP code, and will assume that the IE6 stylesheet is just a normally linked stylesheet. Your browser will interpret the code correctly, but Dreamweaver will still update the path for you.

Podcasts have helpful tutorials

By Dave Roach on August 11, 2008 at 3:07 pm in Design, General, Mac

So as an aspiring designer in the digital world, I am always looking for ways to increase my knowledge about the programs I use to design, mainly Photoshop, Illustrator and Flash. Personally, I got my footing through school, and then started reading books and looking at tutorials online. All of these have helped me gain knowledge, but recently I found out another excellent source for learning about these programs. Podcasts!!

The other night I was looking through the free podcast directory for some videos for my ipod, when I stumbled upon all sorts of podcasts that had video tutorials for pretty much anything I would ever need! There are hundreds of these video podcasts that have tips and tricks from professionals and they are all free! So if you are ever in need of some Photoshop knowledge in advanced layering on 3D objects or just need to know how to touch up an image, check out the free podcasts!!! Here is a link to get you started with Photoshop, it will open up itunes and send you to the podcast directory (you don’t have to have an itunes account to get podcasts).