Tuesday, April 26, 2005

CSS Print Command

If you ever have a page that looks great on the screen but when you print it the info is cut off. Problematic right? Well, there’s a fix, it may not work for all pages, but it will help you hide the unwanted portions of a page when the user prints.

Code:
********************************************************
PLEASE MAKE SURE YOU REMOVE ALL $'s from this code
They were added so code would show up in the page
********************************************************

<$style type="text/css" media="print">
.nodisplay{display: none;}
<$/style>


The media=”print” is the key here. It dictates that on the print command to apply this style or styles.

Add a class=”nodisplay” to the portion you want to hide.

Cut and paste this to see how it works. NOTE: use the print preview option so you don’t burn ink.


<$table class="nodisplay" id="Table" cellspacing="0" cellpadding="0" width="100%" border="0" runat="server">
<$tbody><$tr>
<$td valign="top" width="30%">
***************************************
THIS INFORMATION SHOULD NOT PRINT!!!!!!
***************************************
<$/td>
<$/tr><$/tbody><$/table>
<$br>
<$br>
<$br>
<$table class="nodisplay" id="Table" cellspacing="0" cellpadding="0" width="100%" border="1" runat="server">
<$tbody><$tr>
<$td valign="top" width="30%">
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_
THIS INFORMATION SHOULD PRINT!!!!!!
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_
<$/td>
<$/tr><$/tbody><$/table>

Neeed more help? Check out Downtown Digital for more cool tips and tricks.

Monday, April 18, 2005

Good Web Design

So you have an idea and you want to build a web site. A GOOD web site (Goal Oriented Objective Design) is essential if you are going to have a site that is both usable and effective.

First, what is the goal of your website? That is what is it you wish to achieve once it is up and running?

Second Orient your website, and by this I mean align or position the site with respect to the clients you wish to attract and keep.

Third, what is the Objective of the site? Do you want to sell products? Do you want to provide information? You should have clear goals in mid before you start the design process as this will better assist you when you actually begin coding you site.

Last is the Design. Your design is arguably the most important part of your site. A bad design could turn of a visitor before they have a chance to realize the value of the service or products you offer. If you rush into a design that is not thought out you risk failing from the start of your project

Any website design that we at Downtown Digital undertake will follow this process. Asking a client questions up front can save immeasurable hours of coding and provides an end result that will achieve fantastic results.