CSS Browser Hacks for Internet Explorer, Safari, Firefox, Chrome and Opera

Here is a list of CSS Browser Hacks for the majority of popular browsers. Using this as a personal guide to some of my most common daily headaches. I’m still trying to figure out how to target FF2.0 w/ Mac… [coming soon].

/***** Selector Hacks ******/

/* IE6 and below */
* html #uno  { color: red }

/* IE7 */
*:first-child+html #dos { color: red } 

/* IE7, FF, Saf, Opera  */
html>body #tres { color: red }

/* IE8, FF, Saf, Opera (Everything but IE 6,7) */
html>/**/body #cuatro { color: red }

/* Opera 9.27 and below, safari 2 */
html:first-child #cinco { color: red }

/* Safari 2-3 */
html[xmlns*=""] body:last-child #seis { color: red }

/* safari 3+, chrome 1+, opera9+, ff 3.5+ */
body:nth-of-type(1) #siete { color: red }

/* safari 3+, chrome 1+, opera9+, ff 3.5+ */
body:first-of-type #ocho {  color: red }

/* saf3+, chrome1+ */
@media screen and (-webkit-min-device-pixel-ratio:0) {
 #diez  { color: red  }
}

/* iPhone / mobile webkit */
@media screen and (max-device-width: 480px) {
 #veintiseis { color: red  }
}

/* Safari 2 - 3.1 */
html[xmlns*=""]:root #trece  { color: red  }

/* Safari 2 - 3.1, Opera 9.25 */
*|html[xmlns*=""] #catorce { color: red  }

/* Everything but IE6-8 */
:root *> #quince { color: red  }

/* IE7 */
*+html #dieciocho {  color: red }

/* Firefox only. 1+ */
#veinticuatro,  x:-moz-any-link  { color: red }

/* Firefox 3.0+ */
#veinticinco,  x:-moz-any-link, x:default  { color: red  }

/***** Attribute Hacks ******/

/* IE6 */
#once { _color: blue }

/* IE6, IE7 */
#doce { *color: blue; /* or #color: blue */ }

/* Everything but IE6 */
#diecisiete { color/**/: blue }

/* IE6, IE7, IE8 */
#diecinueve { color: blue\9; }

/* IE7, IE8 */
#veinte { color/*\**/: blue\9; }

/* IE6, IE7 -- acts as an !important */
#veintesiete { color: blue !ie; } /* string after ! can be anything */

Create Simple 3D Text in Adobe Illustrator

Creating 3D text in Adobe Illustrator is simple and easy. We could use 3Ds Max or Maya but this is way easier.  This is a good tutorial for beginners getting into the industry. You can take the fundamentals with you and add to the project.

1) Open Illustrator, Press [Ctrl + N] to open a new document. (Web – 800×600px – Landscape)

image

2) Using your Type Tool [T], create a box about half the size of the document. Type anything into the box. I’ll use XYHD.TV. My type settings were (72pt, Gill Sans MT); I also made sure to save my project.

image

3) Highlight the box with your arrow key [V], and move the text box to the middle of the canvas so you can see the 3D effect. Also change the color of the type from black to anything, so you can see it’s shadows. Afterward go to: Effect > 3D > Extrude & Bevel,

image

4) When a dialogue box pops up go to the checkbox that says preview and click that. This will allow you to see the 3D real-time while editing. This could slow down your computer if you have an older model. Going to the drop down box at the top left select from different styles which will save you time figuring out how to work the 3D model from their built in rotator. We used (Front-Axis Off), to give it a perspective of us looking down on it.

image

Select OK, and your finished……for now   :)

Well I hope that wasn’t too painful. Check out a piece I did using this same formula.

sky

Create A Simple 3D Bar Graph in Illustrator

Using Bar Graphs in Presentations can be extremely helpful to pitch your company idea. Using Illustrator I will create a simple and basic bar graph which you can use in your PowerPoint. The image is vector so we can easy adjust the perspective and depth we have on our graph. Also easily being able to update color and style of graph. You could also choose to work in Cinema 4d, but for beginners Illustrator is the easiest.

1) Open Illustrator, Press [Ctrl + N] to open a new document. (Web – 800×600px – Landscape)

image

2) Using your Column Graph Tool [J], create a box about half the size of the document. Type anything into the box columns of data. make it basic – I used 1, 2, 3, 4, 5. Click ‘Apply’ at the top right to confirm the data. You will see the bars appear. I also made sure to save my project.

image

image

3) Move the data graph out of the way for now. Using the Selection Tool [V] highlight the whole graph. Ungroup the object (Shift + Ctrl + G), confirm you want to ungroup. Using your Direct Selection Tool [A], highlight everything BUT the bar graphs and delete by pressing your (Del) key. This wont look good once you make it 3D, that’s why we remove it.

image

4) Change the color, Highlight with [V]. Remove the stroke to invisible, and add any color to the main bar. I picked blue to match our site. I would suggest not using black because it’s hard to see the graphs shadow. Also make sure to change the graph from ‘Grayscale’ to ‘RGB’ but opening up the “Color” options and selecting ‘RGB’.

image

image

5) Go to (Effect > 3d > Extrude & Bevel).

image

6) Select ‘Preview’ so you can see the 3D in real-time. Some computers won’t render fast enough, beware. In the drop down panel at the top left choose [Isometric Right], and press Ok.

image

Well, There you go. A Bar Graph that is not only good looking but extremely simple to implement.

image

Design A Simple 3D Pie Chart in Illustrator

Pie Graphs are a visually pleasing way to display data. Each piece of the pie is a percentage of data which can easily be highlighted. Using Illustrator I create a simple and effective pie chart which you could use in a presentation. This shouldn’t take longer than a hour to create at max, even if your a noob. I assume you have basic skills with illustrator and can handle the terms or google them, seriously…

I will try to add the source file so you can start your project. Hope that helps.

Here we go…

1. Open Illustrator, Press [Ctrl + N] to open a new document. (Web – 800×600px – Landscape)

image

2. Using your Pie Graph Tool, create a box about half the size of the document. Type anything into the box columns of data. make it basic – I used 1, 2, 3, 4. Click ‘Apply’ at the top right to confirm the data. You will see the pie chart appear. I also made sure to save my project.

image

3. Move the data graph out of the way. Using the Selection Tool [V] highlight the whole graph. Remove the stoke from the outer pie chart, this will eliminate the ugliness in the future.

image

4. Using your Selection Tool [V], select pie chart again and begin to make the color support ‘RGB’.

image

5. Oddly…..use your Direct Selection Tool [A], select pie pieces and begin to make the color support ‘RGB’. Do this for each piece.

image

6. Change each piece color with something light and bright. I use blue, orange, yellow, green.

image

7. Select the whole pie chart [V] and: Go to (Effect > 3d > Extrude & Bevel).

image

8. Press Preview so you can view the 3D object in real-time while updating. I used a custom number to find the perspective which my pie chart needed to be visible. Press Ok to confirm.

image

9. Last Step: Using [A], take each piece and move them apart to give more perspective and depth. You can also focus the attention on a certain part of the data.

image

Well, That’s how you make a pie chart in illustrator. Great for beginners or people interested in marketing, accounting or anything data oriented.

Bike from San Francisco to Sacramento

Considering I’ve wanted to do a long/intense ride for awhile – I figure there’s no better time to start planning then now. At first pondering if it could even be possible to achieve such as goal, since many of the trails don’t lead in that direction or destination. Before even attempting a journey I wanna figure out how much gear I would need without over-packing which could lead me to slow down or even stop.  Some things seem basic but when your on a 5 hour bike ride your mind starts to slow as your body follows.

Riding Gear-

Needs: Bike, 2 Extra Tubes, Bike Tools, Bike Pump, Helmet, Gloves, Shirt, Shorts, Sun Glasses, Cell Phone/Charger, Wallet, Keys – Water, Snacks, Ganja/Pipe

Wants: iPod (Music), Book

Directions-

View Larger Map

1.
Head east on Bush St toward Taylor St
About 14 mins
go 0.8 mi
total 0.8 mi
2.
Turn left at Market St
About 9 mins
go 0.4 mi
total 1.2 mi
3.
Turn right
About 1 min
go 361 ft
total 1.3 mi
4.
Turn left
About 2 mins
go 495 ft
total 1.4 mi
5.
Turn right
About 2 mins
go 404 ft
total 1.5 mi
6.
Take the Vallejo – San Francisco Ferry Bldg to Vallejo
About 1 hour 7 mins
go 27.8 mi
total 29.2 mi
7.
Continue straight
go 138 ft
total 29.2 mi
8.
Turn left toward Mare Island Way
go 112 ft
total 29.3 mi
9.
Turn right toward Mare Island Way
go 79 ft
total 29.3 mi
10.
Turn left at Mare Island Way
go 151 ft
total 29.3 mi
11.
Turn right at Georgia St
About 6 mins
go 0.3 mi
total 29.5 mi
12.
Turn left at Sacramento St
About 16 mins
go 0.8 mi
total 30.3 mi
13.
Turn right at Yolo Ave
About 3 mins
go 0.1 mi
total 30.5 mi
14.
Continue onto Marin St
About 1 min
go 384 ft
total 30.5 mi
15.
Turn right at Mississippi St
About 2 mins
go 0.1 mi
total 30.7 mi
16.
Continue onto Couch St
About 17 mins
go 0.8 mi
total 31.5 mi
17.
Slight left to stay on Couch St
About 2 mins
go 404 ft
total 31.6 mi
18.
Continue onto Broadway St
About 19 mins
go 0.9 mi
total 32.5 mi
19.
Slight right at Lewis Brown Dr
About 3 mins
go 0.2 mi
total 32.7 mi
20.
Turn left at Mini Dr
About 14 mins
go 0.7 mi
total 33.3 mi
21.
Turn right at Corcoran Ave
About 11 mins
go 0.5 mi
total 33.9 mi
22.
Turn left at Fairgrounds Dr/Flosden Rd
About 10 mins
go 0.5 mi
total 34.4 mi
23.
Turn right at Vía Bellagio
About 3 mins
go 0.2 mi
total 34.5 mi
24.
Turn left at Vía Firenze
About 3 mins
go 0.2 mi
total 34.7 mi
25.
Turn right at American Canyon Rd
About 52 mins
go 2.2 mi
total 36.9 mi
26.
Turn left at McGary Rd
About 1 hour 1 min
go 3.3 mi
total 40.2 mi
27.
Turn left at Red Top Rd
About 10 mins
go 0.5 mi
total 40.8 mi
28.
Turn right at CA-12 E/Jameson Canyon Rd
About 1 min
go 223 ft
total 40.8 mi
29.
Turn left toward Business Center Dr
About 23 mins
go 1.2 mi
total 42.1 mi
30.
Turn right at Business Center Dr
About 18 mins
go 0.9 mi
total 42.9 mi
31.
Turn right at Mangels Blvd
About 3 mins
go 0.1 mi
total 43.1 mi
32.
Turn left at Suisun Valley Rd
About 25 mins
go 1.2 mi
total 44.3 mi
33.
Turn right at Rockville Rd
About 55 mins
go 2.9 mi
total 47.2 mi
34.
Slight left at Fairfield Linear Park
About 24 mins
go 1.2 mi
total 48.4 mi
35.
Continue onto Travis Blvd
About 3 mins
go 0.1 mi
total 48.5 mi
36.
Turn left at Pennsylvania Ave
About 1 min
go 266 ft
total 48.5 mi
37.
Turn right at Linear Park Pathway
About 31 mins
go 1.6 mi
total 50.1 mi
38.
Turn left at Dover Ave
About 5 mins
go 0.2 mi
total 50.3 mi
39.
Turn right at Air Base Pkwy
About 40 mins
go 2.0 mi
total 52.4 mi
40.
Turn left at Walters Rd
About 1 min
go 269 ft
total 52.4 mi
41.
Turn right at Huntington Ct
About 1 min
go 322 ft
total 52.5 mi
42.
Continue onto Huntington Dr
About 21 mins
go 1.1 mi
total 53.6 mi
43.
Turn left at Peabody Rd
About 9 mins
go 0.4 mi
total 54.0 mi
44.
Slight right to stay on Peabody Rd
About 1 min
go 269 ft
total 54.0 mi
45.
Turn right at Vanden Rd
About 53 mins
go 2.7 mi
total 56.7 mi
46.
Turn right at Leisure Town Rd
About 31 mins
go 1.6 mi
total 58.4 mi
47.
Turn right at Fry Rd
About 13 mins
go 0.7 mi
total 59.0 mi
48.
Turn left toward Calif Pacific Rd
About 13 mins
go 0.7 mi
total 59.7 mi
49.
Turn right at Calif Pacific Rd
About 6 mins
go 0.3 mi
total 60.0 mi
50.
Continue onto Byrnes Rd
About 25 mins
go 1.3 mi
total 61.3 mi
51.
Turn right toward Lewis Rd
About 10 mins
go 0.5 mi
total 61.8 mi
52.
Turn left at Lewis Rd
About 1 hour 9 mins
go 3.6 mi
total 65.4 mi
53.
Turn right at Midway Rd
About 44 mins
go 2.3 mi
total 67.6 mi
54.
Slight left at Porter Rd
About 48 mins
go 2.5 mi
total 70.1 mi
55.
Turn right at W a St
About 15 mins
go 0.8 mi
total 70.9 mi
56.
Continue onto Dixon Ave E
About 8 mins
go 0.4 mi
total 71.3 mi
57.
Turn right at Pedrick Rd
About 10 mins
go 0.5 mi
total 71.8 mi
58.
Turn right toward Pedrick Rd
About 1 min
go 285 ft
total 71.8 mi
59.
Make a U-turn
About 1 min
go 285 ft
total 71.9 mi
60.
Turn left at Pedrick Rd
About 1 hour 5 mins
go 3.4 mi
total 75.2 mi
61.
Turn right at Sparling Ln
About 16 mins
go 0.8 mi
total 76.1 mi
62.
Turn right at Tremont Rd
About 37 mins
go 1.9 mi
total 78.0 mi
63.
Turn left at Old Davis Rd
About 12 mins
go 0.6 mi
total 78.6 mi
64.
Turn left to stay on Old Davis Rd
About 31 mins
go 1.6 mi
total 80.2 mi
65.
Slight right to stay on Old Davis Rd
About 10 mins
go 0.5 mi
total 80.7 mi
66.
Slight left to stay on Old Davis Rd
About 3 mins
go 0.1 mi
total 80.8 mi
67.
Turn left at California Ave
About 1 min
go 246 ft
total 80.9 mi
68.
Turn right at Arboretum Dr
About 12 mins
go 0.6 mi
total 81.5 mi
69.
Turn left at Solano Park/Solano Park Cir
About 1 min
go 200 ft
total 81.5 mi
70.
Turn right toward Olive Dr
About 3 mins
go 0.1 mi
total 81.7 mi
71.
Slight right toward Olive Dr
About 3 mins
go 0.2 mi
total 81.8 mi
72.
Turn left toward Olive Dr
go 128 ft
total 81.8 mi
73.
Turn left at Olive Dr
About 14 mins
go 0.7 mi
total 82.6 mi
74.
Turn left
About 2 mins
go 0.1 mi
total 82.7 mi
75.
Slight right toward Co Rd 32A
About 56 mins
go 2.9 mi
total 85.6 mi
76.
Turn right at Co Rd 32A
About 39 mins
go 2.0 mi
total 87.6 mi
77.
Turn left toward Levee Rd
About 1 min
go 315 ft
total 87.6 mi
78.
Turn right at Levee Rd
About 1 hour 9 mins
go 3.6 mi
total 91.2 mi
79.
Turn left at Enterprise Blvd
About 1 min
go 253 ft
total 91.3 mi
80.
Continue onto W Capitol Ave
About 16 mins
go 0.8 mi
total 92.1 mi
81.
Slight right to stay on W Capitol Ave
About 13 mins
go 0.7 mi
total 92.7 mi
82.
Slight left to stay on W Capitol Ave
About 22 mins
go 1.1 mi
total 93.8 mi

Color to Black and White Photos in PhotoShop

Creating black and white photos in Photoshop is quite useful and easy. We will learn basic de-saturation and ways to influence color without destroying our photo. College students learn this within the first few weeks of Photoshop class. I suggest using filters when ever possible to save the original source.

1) Open Photoshop, Press [Ctrl + N] to open a new document. (Web – 800×600px – Landscape)

image

2)  Press [M] to select Marquee Tool for the region you want Black and White. For this example I will split it down the middle. You can select the whole photograph by pressing (Ctrl + A). **Make sure your image has color, durrrr**

image

3) Using the easy way press: (Shift + Ctrl + U)

image

NOW —- Stepping back to step 2, I will now display the un-destructive way:

3) On the Layers Panel go to ‘Adjustment Layer’ and add ‘Black and White’ to the selection.

image

4) When you apply the ‘Black and White’ you will notice another layer added to the layers panel, this layer can be triggered on/off so your photo is never actually affected from the black and white effect. When you choose the adjustment layer with Black and White you have more options to adjust the contrast based on the original color of the image.

image

That’s how you create a black and white image – fast and super easy.

image