Tuesday, August 25, 2009

Perfect Full Page Background Image

We visited this concept of re-sizeable background images before… but reader Doug Shults sent me in a link that uses a really awesome technique that I think is better than any of the previous techniques.

This technique and the above background image is credited to this site. Here is what this technique is going to accomplish:

  • Fills entire page with image, no white space
  • Scales image as needed
  • Retains image proportions
  • Image is centered on page
  • Does not cause scrollbars
  • Cross-browser compatible
  • Isn’t some fancy shenanigans like Flash

This is a very tall order, and we are going to be pulling out all kinds of different stuff to make it happen. First of all, because the image needs to scale, a traditional CSS background-image is already disqualified. That leaves us with an inline image.

Technique #1

This inline image is going to be placed on the page inside of a bunch of wrappers, each necessary for accomplishing all our goals.











And the CSS:

* {
margin: 0;
padding: 0;
}

html, body, #bg, #bg table, #bg td {
height:100%;
width:100%;
overflow:hidden;
}

#bg div {
height:200%;
left:-50%;
position:absolute;
top:-50%;
width:200%;
}

#bg td {
text-align:center;
vertical-align:middle;
}

#bg img {
margin:0 auto;
min-height:50%;
min-width:50%;
}

That’s quite a little load of markup and CSS, but it does the trick very well! Just doing this alone gets the job done, but what about if we want actual content on the page. Setting that overflow to hidden on the html and body elements should scare you a little bit, as that will totally cut off any content that is below the fold on a site with no scrollbars. In order to bring back scrollable content, we’ll introduce another wrapper. This one will sit on top of the background, be the full width and height of the browser window, and set the overflow back to auto (scrollbars). Then inside of this wrapper we can put content safely.





#cont {
position:absolute;
top:0;left:0;
z-index:70;
overflow:auto;
}

.box {
margin: 0 auto;
width: 400px;
padding: 50px;
background: white;
padding-bottom:100px;
font: 14px/2.2 Georgia, Serif;
}

JavaScript Fixes

For IE 6, there is some MooTools stuff going on to fix it up

In Firefox, default “focus” is placed on the body element when the page loads. That means that pressing the space bar will scroll down the body, which would reveal some ugly white space. We can use some jQuery for a quick fix, to remove that focus and place it on a hidden element instead, removing that problem:

$(function(){
$(".box").prepend('');
$("#focus-stealer").focus();
});

Monday, August 24, 2009

Dreamweaver Extensions and Web Design Tools


The best Dreamweaver extensions available for Adobe Dreamweaver CS4 and CS3. Only Adobe has a larger list of Dreamweaver extensions but i have listed them all on one page

Select from the following categories or scroll through our complete list of Dreamweaver extensions and website development software. Some products may be listed in more than one category if they perform multiple functions.

Bundles and Collections CSS Tools and Editors
Website Builders Website Navigation
User Registration and Login Shopping Carts and E-commerce
Database Management Email and Email Marketing
WYSIWYG Text Editors Charts and Data Display
Web Form Tools and Validation Website User Interaction
Cookies and Sessions Dynamic Lists and Dropdowns
Calendars and Date Pickers Content Management Tools
File Upload/Download Tools Flash Tools
Image Gallery Tools Search Engine Optimization Tools

Free dreamweaver 8 video tutorials

Welcome to our free Dreamweaver tutorial video section, we hope that you enjoy your time with us. The Dreamweaver 8 video tutorials are designed to show you the basics and tools needed to create your own web page or update your skill set in this new version. Video-tutes Dreamweaver tutorial videos can show you how to embed video files, add sounds and interactivity into your web project.

Dreamweaver is the ideal program for anyone wanting to get an on-line presence. Its combination of simplicity and power makes it an excellent choice for the novice and professional alike!

Animate using DHTML in Dreamweaver with video-tutes our tutorial videos, or create css styles and how to apply them, we teach you from the ground up.

Our Free video tutorials will show you how to build great-looking sites, and let Dreamweaver handle the details.

Our free tutorials are designed with all users in mind from the very basics through to advanced effects and keyboard shortcuts. It's all here in video-tutes free video tutorials. Go ahead get started right now.

Website: http://www.video-tutes.com/packages/DWDesign1.php

Dreamweaver 8 video tutorial Define Your Site Dreamweaver 8 video tutorial = Define Your Site
Dreamweaver 8 video tutorial Making New Pages Dreamweaver 8 video tutorial = Making New Pages
Dreamweaver 8 video tutorial Files Menu Dreamweaver 8 video tutorial = Files Menu
Dreamweaver 8 video tutorial Preview in Browser Dreamweaver 8 video tutorial = Preview in Browser
Dreamweaver 8 video tutorial Tracing Images Dreamweaver 8 video tutorial = Tracing Images
Dreamweaver 8 video tutorial List Menus Dreamweaver 8 video tutorial = List Menus
Dreamweaver 8 video tutorial Jump Menus Dreamweaver 8 video tutorial = Jump Menus
Dreamweaver 8 video tutorial Adding Flash Content Dreamweaver 8 video tutorial = Adding Flash Content
Dreamweaver 8 video tutorial Simple Contact Form Dreamweaver 8 video tutorial = Simple Contact Form
Dreamweaver 8 video tutorial Flash Buttons Dreamweaver 8 video tutorial = Flash Buttons
Dreamweaver 8 video tutorial Adding Images Dreamweaver 8 video tutorial = Adding Images
Dreamweaver 8 video tutorial Working with Tables Dreamweaver 8 video tutorial = Working with Tables
Dreamweaver 8 video tutorial Working with Layers Dreamweaver 8 video tutorial = Working with Layers
Dreamweaver 8 video tutorial Layer Visibility Dreamweaver 8 video tutorial = Layer Visibility
Dreamweaver 8 video tutorial Animating Layers Dreamweaver 8 video tutorial = Animating Layers
Dreamweaver 8 video tutorial Adding Rollovers Dreamweaver 8 video tutorial = Adding Rollovers
Dreamweaver 8 video tutorial Image Navigation Menu Dreamweaver 8 video tutorial = Image Navigation Menu
Dreamweaver 8 video tutorial Ads by Layers Dreamweaver 8 video tutorial = Ads by Layers
Dreamweaver 8 video tutorial Working with CSS Dreamweaver 8 video tutorial = Working with CSS
Dreamweaver 8 video tutorial Dreamweaver Templates Dreamweaver 8 video tutorial = Dreamweaver Templates
Dreamweaver 8 video tutorial Editing Templates Dreamweaver 8 video tutorial = Editing Templates
Dreamweaver 8 video tutorial Using Snippets Dreamweaver 8 video tutorial = Using Snippets
Dreamweaver 8 video tutorial Rollover Status Bar Message Dreamweaver 8 video tutorial = Rollover Status Bar Message
Dreamweaver 8 video tutorial Validate Forms Dreamweaver 8 video tutorial = Validate Forms
Dreamweaver 8 video tutorial Check for Plugins Dreamweaver 8 video tutorial = Check for Plugins
Dreamweaver 8 video tutorial Pop Up Windows Dreamweaver 8 video tutorial = Pop Up Windows
Dreamweaver 8 video tutorial Control Flash Movies Dreamweaver 8 video tutorial = Control Flash Movies