Archive for August 2009

5 Useful CSS Tips

Published on Saturday, October 17 2009 by Zebb

1. CSS Reset
Free CSS edit iconThis is something I recently just started doing when starting a new website, I have found that it reduces the number of buggy CSS throughout a site. The purpose of a CSS reset is to help take out any inconsistencies across the major browsers (Internet Explorer, Firefox, Opera, Safari, etc). Each browser will render CSS slightly differently and some browsers more-so than others.

When I first started learning about CSS I read everything I could find that was written by Eric Meyer who at the time was really a master of all things CSS in my opinion. Eric created a really nice clean bit of code for a CSS Reset that I use at the top of all of my CSS files. Click here to see his post on his code. If you are new to CSS I highly suggest checking out the rest of his site to help you get started.

2. Multiple Style Sheets
Free Gnome Emblem Documents iconOften times websites can become quite large and require hundreds and even thousands of lines of CSS code alone. This can cause plenty of issues when trying to find particular elements to edit and organization becomes difficult to manage. One solution which I use to help overcome some of these issues is to use multiple style sheets, each with it’s own purpose.

My primary development platform is ASP.NET which has a nifty thing called “Master Pages”, essentially it is a super powerful template which is applied to each page of your site. I always create a CSS file which is similar which I consider to be the “Master” CSS file for the entire site. In this file I set “Global” settings that get applied to everything like the body tag, link properties, heading tags and major layout containers like content area, sidebar, footer. This allows me to know exactly where all of my major CSS properties are located and it keeps my CSS size down to a minimum.

My second style sheet is a “Controls” document where I set the properties for things like textboxes, dropdown lists, buttons, etc. On almost every site I format these general controls in some sort of way, either by changing the textbox background color, border color and hover settings and other properties. In my mind it just makes sense to have a separate CSS document that I can easily transplant over into every new site that I work on without having to worry about having residual CSS information specific to any particular site cluttering up my code. In addition to setting control properties here, I also set properties for things like modal pop-ups, validation controls and info boxes for when a form gets updated or if there was an error with a form.

Most of the time two CSS documents are sufficient for most of the sites I do for small projects, but for larger projects I add more as I see fit. For instance if I have an whole admin panel area, I will typically set all my CSS for those page into it’s own CSS document. There is no reason for the general site to load all the Admin specific CSS information if they are never going to see it anyway, so I only link to that CSS file on those particular admin pages.

Lastly, I will break my CSS up into specific “Tools” if I tend to use a particular tool across multiple sites. For instance if there is a photo gallery system that I use for displaying photos, it makes sense to break this up into it’s own CSS so that I can easily port it over to numerous sites as needed. This really cuts down on re-writing code over and over.

There are numerous ways to split up CSS documents into manageable pieces, this is how I typically do mine. I encourage you to Bing other ways to see what solution works best for you.

3. @import Rule
Free Import File iconIn continuation of using multiple style sheet documents, it’s important to know how to actually link to those documents. Typically for each CSS document you would simply use the standard method of linking to the CSS file in your <head> element of your master page.

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

You would simply repeat that code for each style sheet you have. This could end up looking cluttered and bulky in your master page.

<link rel="stylesheet" type="text/css" href="/css/master.css" />
<link rel="stylesheet" type="text/css" href="/css/controls.css" />
<link rel="stylesheet" type="text/css" href="/css/admin.css" />
<link rel="stylesheet" type="text/css" href="/css/gallery.css" />

Instead you can use the @import rule in which you can link to just one .css file from your masterpage and then at the top of your CSS file you would add this:

@import url(’/css/controls.css’);
@import url(’/css/admin.css’);
@import url(’/css/gallery.css’);

This technique keeps your master page cleaner and easier to manage. Keep in mind however that this technique won’t work for older browsers and the code MUST be the very first thing in your CSS document or it will not work.

4. Quick Selectors (helpers)
Free Help iconI am not sure what else to call this section, so “Quick Selectors” is what I’m going with. Quick Selectors is CSS code that are general by nature, they quickly do something without needing a lot of code. Here is a list of what I consider Quick Selectors

  • Fixer or Clear – Used after Divs which have been floated that sit inside of some sort of containing div that needs to expand with the content.
  • Float Left or Float Right – Simple way to float something to the left or to the right, for instance if you want an image to the right of some text you could just drop it in a div that has a class of float right with some margin-left to keep the text from bumping directly into the image.
  • Text Align (Left, Center, Right, Justify) – Simple way to quickly align text or images or anything else, when a full blown selector isn’t really important.
  • Small Text – Used for things like “helper” text next to a textbox for things like saying (.jpg file types only) where the text doesn’t need to be normal size.

Here is how I write the css for each of these:

.clear{clear: both; margin: 0px; padding: 0px; height: 0px;}
.floatR{float: right; margin-left: 10px;} – Change based on if you want to float left or float right.
.alignC{text-align: center;} – Change the last letter and css property depending on how you want text aligned.
.smallText{font-size: .9em;}

I typically put these at the bottom of my master page CSS file as classes so I can re-use them as many times as needed.

5. Multiple Classes
Free Gtk Dnd Multiple iconOne of the cool things about CSS is that it is always a learning experience, you could learn something new about CSS every time you work with it. Earlier this year I learned that you can apply multiple CSS classes to a single html element. This technique allows you to separate selectors into very specific values which you can then combine depending on the situation to get a desired look for a particular element without writing extra CSS classes to handle it.

For example:

p.italic{color: #666666;}
p.underline{text-decoration: underline;}

Your element would then look like this:

<p class=”italic underline”>Some text here</p>

I hope these tips are useful to some of you, I am sure there are numerous and even better ways of doing some of these same tips. In the end it comes down to what makes the most sense to you or what does your boss want to see. It can take a year or two before you really know what works and what doesn’t work especially as your websites get larger and larger.

For more information for basic CSS information check out the w3schools.com website or search in your favorite search engine for more CSS tips.

Thank you! Top referrals to TextureArchive.com

Published on Saturday, October 17 2009 by Zebb

I wanted to take a moment to thank some of the top referring websites to TextureArchive.com. Thought it would be nice to give these websites some recognition for pushing new visitors to my site, hopefully I can send some back your way. Here are a few sites in no particular order:

Thank you also to anyone who has ever linked back to TextureArchive.com, we appreciate it and hope you will continue recommending our site to others.
Micah

Free ZBrush Brushes – Updated (more brushes)

Published on Saturday, October 17 2009 by Zebb

In my last posting I talked a bit about the new ZBrush that is coming out within the next couple of weeks, today I wanted to carry that theme on once again and remind everyone who uses ZBrush that I offer nearly 80 free brushes over on TextureArchive.com (One of my own sites).

Below are a few examples of what the brushes look like, you can view the full page here. Note that there are actually two pages worth of brushes, the second page can be found here.

Hopefully these brushes will help you out, if you use them, post a link to the artwork you created in the comments, I would love to see what you are able to create.

UPDATE: I have had 60 more brushes waiting to be added to the site, but I wasn’t going to do it until the new site was done. Since it will be a while before that happens, I have quickly updated the site with Set Three, they are also much larger than the previous ones, these are 1024px by 1024px. Enjoy!

Set one Examples:
image

 
Set two Examples:
image


Set Three Examples:

image

ZBrush 3.5 – Coming Soon!

Published on Saturday, October 17 2009 by Zebb

I am super excited to see that Pixologic is releasing a new version of ZBrush at the end of August according to this thread on their forums. Last year at Siggraph I decided to purchase a copy of ZBrush (version 3.2 I think) before the price went up to what it is today. According to the thread 3.5 and 4.0 versions of ZBrush will be available FREE to all registered users with existing copies of ZBrush, looks like I made a great purchase!
ZBrush Artist: Rodrique Pralier

Despite the fact that I have a legit copy of ZBrush, I actually rarely use it and my  experience with it is still quite limited. However, with Windows 7 and now an updated ZBrush coming out I’m planning on getting my computer setup with a nice clean install in a few months. Once this has been completed I hope to start digging back into ZBrush and experimenting with the new tools and features as well as getting a good handle on using the software.

Here is a list of some of the features they have already announced:

  • Multiple texture, normal and displacement maps per Tool (by using subtools), with enhanced displacement and normal map options such as native export of 32-bit displacement maps.
  • High-Definition displacement and normal maps from HD geometry.
  • Improved perspective with a floor grid.
  • Reorganization of the Tool sub-palettes to coordinate with selected SubTools.
  • The ability to merge all visible SubTools and optionally weld the seams.
  • The new PUVTiles mapping method, which represents the most efficient use of UV space yet.
  • PolyPainting and masking have now been enhanced to 16-bit from the previous 8-bit.
  • New navigation to work with the virtually unlimited zooming.
  • Right-Click Navigation.
  • New sliders added to Project All, providing more control over your results.
  • Memory management enhancements give the capability to subdivide your models to higher polygon counts.
  • New ambient occlusion masking, which can create an AO texture for use in other applications.

In addition to these great features, it sounds as though they have a few other tricks up their sleeves and have a few other features that have not yet been announced, however they have discussed two very powerful tools that will also be coming out soon.

ZSpheres IIZSpheres” is a very primitive looking tool yet it is quite the powerful modeling tool which allows you to quickly create forms and basic structures of a 3D concept or design. In 3.5 they have announced that they have improved upon ZSpheres and are calling it “ZSpheres II”, click here to view a great video showing the power of ZSpheres. I have yet to learn or even understand how ZSpheres work and how well they fit into a production pipeline, but from the video they have it looks like it will be a pretty seamless experience.

GoZBrush GoZBrush
One of my biggest frustrations with ZBrush is figuring out how to get your work from Maya into ZBrush and back again while maintaining structured files, texture maps, etc. across both pieces of software. It seems I am not the only person who has these same frustrations and Pixologic has developed what looks to be a great solution to this problem. The software is called “GoZBrush” click here to learn more about it and to watch a video of how the system works, this is probably the most exciting element of all the updates getting released in the next few weeks.

ZBrush is an extremely powerful application and my limited knowledge of it merely scratches the surface of what it can truly do, if you are into organic modeling and working with clay, I highly suggest getting a copy and start learning it today. There is certainly a large learning curve but it will be completely worth it in the end.

Micah

Hello World

Published on Saturday, October 17 2009 by Zebb

How many times do see the “Hello World” blog post, it’s amazing that it still hasn’t become boring, or has it, it is what it is.

My name is Micah Iverson, I am a freelance design and developer currently living in Minnesota and primarily focusing on Web Design and ASP.NET.

I have been meaning to start a new blog for quite some time, one that actually gets updated and has useful information, hopefully this will be successful this time around. I am still in the beginning stages of designing my own theme for the blog so the one you see will have to do until then.

My goal with the blog is to first of all allow me to have a real-world experience working with PHP instead of .NET, PHP is something I have been interested in for years but have never found a use for it. WordPress is built using PHP and it will give me the opportunity to learn how to build themes and hopefully expand from the basic functionality of a clean blog install.

Secondly, I plan on posting articles on design, art, resources, life, family and hope to do it in a way that is constructive and useful to others while still expressing my opinions.

Thirdly, I will use this blog as a way to show of my recent work for clients, my own personal projects and my own artwork related materials.

Fourth, I have always wanted to improve my writing skills to better communicate my thoughts in a clear, concise and with minimal emotional attachment.

Sit back, relax and lets get started.
Micah

My ProjectsKrazier.com
Housing.Krazier.com
HomeImprovement.Krazier.com
SuperiorApts.com
TextureArchive.com
GoInnStyle.com