Monday, September 20, 2010

CSS - HACKS - FOR ALL BROWSERS

CSS – HACKS

IE Conditional Tags (Which will use as a separate CSS files) 
    
 
 
 
 
Ø      *ALL IE VERSIONS:

#somediv{
width: 100px\9;
}

Ø *IE8 STANDARDS MODE ONLY:

#somediv{
width /*\**/: 100px\9;
}

---------------------------------------------------------------

For Document : *{font-family:Verdana,Arial; margin:0px; padding:0px;} For IE :* html{font-family:Verdana,Arial; margin:0px; padding:0px;}

*NOTE: For Default Dcoument…will use *, and for IE …will use * html

---------------------------------------------------------------

IE 5 Browser : #header {padding: 2em; border: 0.5em; width: 10em;} Other Browsers : #header {padding: 2em; border: 0.5em; width: 15em; width/**/:/**/ 10em;}

*NOTE: IE5 will use the first width value of 15em, 5em of which will be taken up by the two sets of padding and border (one each for the left and for the right). This would ultimately give the element a width of 10em in IE5.

The 15em value will then be overridden by the second width value of 10em by all browsers except IE5, which for some reason can't understand CSS commands with empty comment tags either side of the colons. It doesn't look pretty but it does work!

---------------------------------------------------------------

Valid CSS filter targeting Google Chrome and Safari 4

To target only webkit, which includes Google and Safari, encompass all the CSS that you want to use just to target Webkit in the following @media block:

@media screen and (-webkit-min-device-pixel-ratio:0) {
.myClass { background-color: #FF0000; }
#myId {color: #0000FF;}
p, a, li {text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
}

---------------------------------------------------------------

 
 

---------------------------------------------------------------

HACKS FOR ALL BROWSERS:

If you see black, you are using a newer Standarized browser like Mozilla.
If you see red, you are using an older version of Mozilla (< version 1.01).
If you see yellow, you are using newer Google Chrome (2.01+), Opera, and Safari (4.0+).
If you see blue, you are using Google Chrome (1.0 - 2.01), and Safari (1 - 3).
If you see gray, you are using Internet Explorer 8.
If you see purple, you are using Internet Explorer 7.
If you see green, you are using Internet Explorer 6.
If you see orange, you are using a Internet Explorer 5.

#sample {
font-weight:bold;
font-size:14px;
color:orange;           
voice-family:"\"}\"";
voice-family:inherit;
color:grey;\                à This is Specially for IE8 only
color:black;               à This is for Standard Mozilla
[color:black;              à This is for Mozilla 
color:yellow;]               à This is for Chrome,Safari
 
}
 
html*#test1 {
[color:red;
color:blue;
]color:purple;                 à This is for IE7
}
 
* html #test1 {            à This is for IE6
color:green;
}
 

IMPORTANT CSS HACKS FOR ALL BROWSERS:

/* for all Standard browsers */
.color {color: #777;} 
 
 
/* for IE6 */
.color {_color: #C39;}
.color {-color: #C39;} 
* html .color {color: #C39;} 
 
 
/* for IE7 */
.color {*color: #66F;}
*+html .color {color: #66F;} 
*:first-child+html .color {color: #66F;} 
 
 
 
/* for IE8 (It’ll work Absolutely) */
 
1) body {

font-family: Verdana, Helvetica, Arial, sans-serif;
background-color: white;
color: black; /* for all browsers other than IE8 */
}
2) body, #ie8#fix
{
color: #444; /* for IE8 */
}
3) #IE8Body body {color:yellow;} /* IE8 */
 
 
-------------------------------------------------------
NOTE: This 1)code will set color to black in all browsers, except for IE8, in IE8 it will be red.
 
 
 
 
 
 
 
/* for Mozilla Firefox (It’ll work Absolutely) */
 
/* safari 3+, chrome 1+, opera9+, ff 3.5+ */
body:first-of-type #ocho {  color: red }
/* safari 3+, chrome 1+, opera9+, ff 3.5+ */
body:nth-of-type(1) #siete { color: red }
 
 
 
 
 
For Example:
 
.raj {color:#000;}  /* All Browsers */
* html .raj {color:#efefef;}   /* IE6 */
*:first-child+html .raj {color:blue;}  /* IE7 */
#IE8Body .raj {color:yellow;} /* IE8 */
body:first-of-type .raj { color: red } /* safari 3+,
                                            chrome 1+, 
                                            opera9+, 
                                            Firefox 3.5+
                                        */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
      
Rajkumar
 
 
 
-------------------------------------------------------
NOTE: This code(#ie8#fix) will set color to blue in all browsers, except for IE8, in IE8 it will be red.
 
 
 
 
/* for IE8, going last */
.color {color: #0FC\0/;} 
 
 
/* for IE8 Standard mode only */
.color {color /*\**/: blue\9;} 
.color {color /*\**/: blue;} if the above hack is not work
 
 
 

/* All IE versions including IE8 Standard mode */
.color {color: blue\9;}
 
.divLogRight{color: Blue; color:red\9; *color: Blue;}
 
NOTE : first Blue: for all browsers.
       Red: IE6,7,8 Only
       Second Blue: IE6,7 Only
       Only IE8 will be Red.
 
(Once we use color:red\9, then we should use both color:Blue and *color:Blue also. Otherwise ie8 hack will not work)
 
 
 
 
 

Tri-Fold Brochure,Z-Fold Brochure, Brochures, etc sizes

Bookmarks
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
2" x 6"
Standard Bookmark
2.25" x 6.25"
675 x 1875px
Download
Download
Download
2" x 7"
Extra Tall Bookmark
2.25 x 7.25"
675 x 2175px
Download
Download
Download
2.5" x 8.5"
Jumbo Bookmark
2.75 x 8.75"
825 x 2625px
Download
Download
Download

Brochures
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
8.5" x 11"
Tri-Fold Brochure
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
8.5" x 11"
Half Fold Brochure
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
8.5" x 11"
Z-Fold Brochure
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
8.5" x 11"
Gate Fold Brochure
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
8.5" x 11"
Double Parallel Fold Brochure
8.75" x 11.25"
2625 x 3375px
Download
Download
Download

8.5" x 14"
Tri-Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download
8.5" x 14"
Half Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download
8.5" x 14"
Z-Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download
8.5" x 14"
Roll Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download
8.5" x 14"
Double Parallel Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download
8.5" x 14"
Gate Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download
8.5" x 14"
Double Gate Fold Brochure
8.75" x 14.25"
2625 x 4275px
Download
Download
Download

8.5" x 7.32"
Half Fold Brochure
8.75" x 7.57"
2625 x 2271px
Download
Download
Download

9" x 12"
Tri-Fold Brochure
9.25" x 12.25"
2775 x 3675px
Download
Download
Download
9" x 12"
Half Fold Brochure
9.25" x 12.25"
2775 x 3675px
Download
Download
Download
9" x 12"
Z-Fold Brochure
9.25" x 12.25"
2775 x 3675px
Download
Download
Download
9" x 12"
Gate Fold Brochure
9.25" x 12.25"
2775 x 3675px
Download
Download
Download
9" x 12"
Double Parallel Fold Brochure
9.25" x 12.25"
2775 x 3675px
Download
Download
Download

11" x 17"
Tri-Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download
11" x 17"
Half Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download
11" x 17"
Z-Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download
11" x 17"
Roll Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download
11" x 17"
Double Parallel Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download
11" x 17"
Gate Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download
11" x 17"
Double Gate Fold Brochure
11.25" x 17.25"
3375 x 5175px
Download
Download
Download

11" x 25.5"
Half Fold Brochure
11.25" x 25.75"
3375 x 7725px
Download
Download
Download
11" x 25.5"
Tri-Fold Brochure
11.25" x 25.75"
3375 x 7725px
Download
Download
Download

Business Cards
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
2" x 3.5"
Standard Business Card
2.25" x 3.75"
675 x 1125px
Download
Download
Download
4" x 3.5"
Foldover Business Card
4.25" x 3.75"
1275 x 1125px
Download
Download
Download

Calendars
Final Dimensions
Description
Template Notes
Template
8.5" x 11"
12-month 2010 Calendar
Our Calendar template is provided either as; Adobe InDesignCS3 (*.indd), InDesign Interchange for InDesign CS and CS2 (*.inx), or Adobe Illustrator PDF (*.pdf). These are multi-page templates that allow you to insert your photos for each month. If you want to edit the calendar grids, we suggest opening the PDF pages individually in Adobe Illustrator.
Download
8.5" x 11"
12-month 2009 Calendar
Download
8.5" x 11"
12-month 2008 Calendar
Download

Carbonless Forms
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
4.25" x 5.5"
Quarter-sheet Form
4.5" x 5.75"
1350 x 1725px
Download
Download
Download
5.5" x 8.5"
Half-sheet Form
5.75" x 8.75"
1725 x 2625px
Download
Download
Download
8.5" x 11"
Letter-sheet Form
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
8.5" x 14"
Legal-sheet Form
8.75" x 14.25"
2625 x 4275px
Download
Download
Download

Catalogs / Booklets
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
8.5" x 11"
Catalog - Individual Panel
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
5.5" x 8.5"
Catalog - Individual Panel
5.75" x 8.5"
1725 x 2625px
Download
Download
Download

CD/DVD Sleeves
Final Dimensions
Description
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
5" x 5"
Basic Disc Sleeve
Download
Download
Download
5" x 5"
Fancy Disc Sleeve
Download
Download
Download

Color Copies
Final Dimensions
Description
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
8.5" x 11"
Standard Color Copies
Please Request
11" x 17"
Large Color Copies

Door Hanger
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
4.25" x 11"
Door Hanger
4.50" x 11.25"
1350 x 3375px
Download
Download
Download

DVD Case Covers
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
10.75" x 7.1875"
Insert for Amary-style DVD case
11" x 7.4375"
3300 x 2231px
Download
Download
Download
10.5" x 7.25"
Insert for Slim DVD case
10.75" x 7.5"
3225 x 2250px
Download
Download
Download
10.5" x 5.875"
Insert for Blu-ray disc case
10.75" x 6.125"
3225 x 1838px
Download
Download
Download

Envelopes
Final Dimensions
Description
Submission Notes
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
4.75" x 6.5"
A-6 Envelope
A 3/8" margin must be left along the girpper edge of the envelope so that the press can grip the envelope during printing. If requested, the bottom edge can be used for the gripper.
Download
Download
Download
5.25" x 7.25"
A-7 Envelope
Download
Download
Download
3.875" x 8.875"
No. 9 Envelope
Download
Download
Download
4.125" x 9.5"
No. 10 Envelope
Download
Download
Download
4.125" x 9.5"
No. 10 Envelope Left Window
Download
Download
Download
4.125" x 9.5"
No. 10 Envelope Right Window
Download
Download
Download
9" x 6"
Small Catalog Envelope
Download
Download
Download
9" x 12"
Letter-size Envelope
Download
Download
Download
10" x 13"
Oversized Envelope
Download
Download
Download

Flyers
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
8.5" x 11"
Letter-size Flyer
8.75" x 11.25"
2625 x 3375px
Download
Download
Download
5.5" x 8.5"
Half sheet Flyer
5.75" x 8.75"
1725 x 2625px
Download
Download
Download
4.25" x 5.5"
Quarter-sheet Flyer
4.25" x 5.75"
1275 x 1725px
Download
Download
Download
3.66" x 8.5"
Third-sheet Flyer
3.91" x 8.75"
1173 x 2625px
Download
Download
Download

Greeting Cards
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
5" x 7"
Large Greeting Card
5.25" x 7.25"
1575 x 2175px
Download
Download
Download
3.5" x 5"
Small Greeting Card
3.75" x 5.25"
1125 x 1575px
Download
Download
Download
4.25" x 6"
Regular Greeting Card
4.5" x 6.25"
1350 x 1875px
Download
Download
Download

Letterhead
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
8.5" x 11"
Standard Letterhead
8.75" x 11.25"
2625 x 3375px
Download
Download
Download

Newsletters
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
11" x 17"
Half-Fold - 4-page Newsletter
11.25" x 17.25"
3375 x 5175px
Download
Download
Download

Notepads
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
5.5" x 8"
Large Notepad
5.75" x 8.25"
1725 x 2475px
Download
Download
Download
4" x 6"
Notepad
4.25" x 6.25"
1275 x 1875px
Download
Download
Download

Postcards
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
4" x 6"
Postcard - Standard
4.25" x 6.25"
1275 x 1875px
Download
Download
Download
4.25" x 6"
Postcard - Standard II
4.5" x 6.25"
1350 x 1875px
Download
Download
Download
4.25" x 5.5"
Postcard - Standard III
4.5" x 5.75"
1350 x 1725px
Download
Download
Download
4" x 9"
Postcard - Rack card
4.25 x 9.25"
1275 x 2775px
Download
Download
Download
5" x 7"
Postcard - Large
5.25" x 7.25"
1575 x 7.25px
Download
Download
Download
5.5" x 8.5"
Postcard - Jumbo
5.75" x 8.75"
1725 x 2625px
Download
Download
Download
6" x 9"
Postcard - Giant
6.25" x 9.25"
1875 x 2775px
Download
Download
Download
6" x 11"
Postcard - Wide-format
6.25" x 11.25"
1875 x 3375px
Download
Download
Download
8.5" x 11"
Postcard - Full-sheet
8.75" x 11.25"
2625 x 3375px
Please request this template, or use letterhead template.

Postcards for Mailing
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
GIF Image
4" x 6"
Postcard - 1st Class Mailer I
4.25" x 6.25"
1275 x 1875px
Download
Download
Preview
4.25" x 6.25"
Postcard - 1st Class Mailer II
4.5" x 6.25"
1350 x 1875px
Download
Download
Preview
4.25" x 5.5"
Postcard - 1st Class Mailer III
4.5" x 5.75"
1350 x 1725px
Download
Download
Preview
4" x 9"
Postcard - Rack Card Mailer
4.25 x 9.25"
1275 x 2775px
Download
Download
Preview
5" x 7"
Postcard - Large Mailer
5.25" x 7.25"
1575 x 7.25px
Download
Download
Preview
5.5" x 8.5"
Postcard - Jumbo Mailer
5.75" x 8.75"
1725 x 2625px
Download
Download
Preview
6" x 9"
Postcard - Giant Mailer
6.25" x 9.25"
1875 x 2775px
Download
Download
Preview
6" x 11"
Postcard - Wide-format Mailer
6.25" x 11.25"
1875 x 3375px
Download
Download
Preview

Posters
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
24" x 36"
Poster
24.25" x 36.25"
7275 x 10875px
Download
Download
Download
19" x 27"
Poster
19.25" x 27.25"
5775 x 8175px
Download
Download
Download
18" x 24"
Poster
18.25" x 24.25"
5475 x 7275px
Download
Download
Download
13" x 19"
Poster
13.25" x 19.25"
3975 x 5775px
Download
Download
Download
11" x 17"
Poster
11.25" x 17.25"
3375 x 5175px
Download
Download
Download

Presentation Folders
Final Dimensions
Description
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
6" x 9"
Miniature Presentation Folder
Business Card Slits BOTH Pockets
Download
Download
Download
9" x 12"
Standard Folder
Business Card Slits BOTH Pockets
Download
Download
Download
9" x 12"
Standard Folder
Business Card Slit Right Pocket
Download
Download
Download
9" x 12"
Standard Folder
Business Card Slit Left Pocket
Download
Download
Download
9" x 12"
Standard Folder
No Business Card Slits
Download
Download
Download
9" x 14.5"
Extra Tall Presentation Folder
Business Card Slits BOTH Pockets
Download
Download
Download
9" x 12"
Three Panel Presentation Folder
Download
Download
Download

Rack Cards
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
4" x 9"
Rack Card
4.25" x 9.25"
1275 x 2775px
Download
Download
Download

Rolodex Cards
Final Dimensions
Description
Submission Notes
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
Approx.
4" x 2.6"
Rolodex Card
The front and back template files are named as such for a left-side tab card. If a right-side tab is desired, simply exchange the back and front files.
Download
Download
Download

Sales/Data Sheets
Final Dimensions
Description
Dimensions to Submit
Adobe Illustrator EPS
Adobe Photoshop PSD
JPEG Image
8.5" x 11"
Letter-size Sales / Data Sheet
8.75" x 11.25"
2625 x 3375px
Download
Download
Download