Rails CSS Selector Helper

If you’re looking for an easy way to customize css depending on the browser, without relying on JavaScript, this should be some help:


def browser_name
    @browser_name ||= begin

      ua = request.env['HTTP_USER_AGENT'].downcase

      if ua.index('msie') && !ua.index('opera') && !ua.index('webtv')
      elsif ua.index('gecko/')
      elsif ua.index('opera')
      elsif ua.index('konqueror')
      elsif ua.index('applewebkit/')
      elsif ua.index('mozilla/')


Then, in your layout, you should add this to your html tag: class=”<%= browser_name %>”

<html xmlns="http://www.w3.org/1999/xhtml" class="<%= browser_name %>">

Now, in your css, you can customise it to the browser:

.gecko button {
  margin-left: -4px;

Finding a Good Web Design Company in Melbourne

Finding a Good Web Design Company in Melbourne
If you’re looking for web design Melbourne located, then it’s a good idea to keep a few things in mind. Here’s a guide that can help you figure out how to get the best web design possible for your interests.

Finding Effective Web Design Melbourne Companies

One of the most important things when you’re looking for web design for your site, regardless of the reason why you’re doing so, is to make sure you find a company that matches up with what you want. 

For example, if you’re running a business that’s focused on getting local customers, then you’re going to want to make sure that it’s a web design Melbourne company specifically. Companies from the area are going to have specialization that more generic companies just won’t be able to handle well. 

These specialize companies will know about local landmarks, local ways of saying things, and even local competition in order to find the exact right combination of elements that will give you a competitive edge. If you don’t go with a web design Melbourne company, then you won’t get any of these things.

Reviewing Potential Companies

Another important thing you need to keep in mind if you want to find the absolute best company for your particular business approach is that reviews are your friend. You’ll want to pull up reviews for any web design Melbourne company that catches your interest. 

The important thing to look for starts out with positive reviews in the areas that you need the most help with. If you want to focus on local business and the company gets positive reviews from local hairdressers, bowling alleys and other local companies, then you’re going in the right direction, for example. 

You’ll also want to double-check to make sure that the reviews you’re looking up are legitimate. They shouldn’t be from the actual web design site itself, for example. They should also not be all completely positive. In real life, people always complain about something or have a bad experience based on luck. 

If every single review of the site is positive, this is a good indication that the review might be fake.

Use Web Design Melbourne to Make Your Business Grow

Use Web Design Melbourne to Make Your Business Grow

If you own a business, you know that it is important to think outside the box. You need to take advantage of every resource in order to be successful. This holds true whether you are just getting started or you have been in business for years. Web design Melbourne can help you to take your company to the next level. It is a way to establish your presence and give consumers easy access to your products or services. Consider how web design Melbourne can make you stand out in a crowd.

Become More Visible
If you have a brick and mortar establishment, you can still benefit from web design Melbourne. Your website is a way to give a shout out to the world about what you have to offer. You will provide consumers with an opportunity to become familiar with your products and services. From that point, enable them to place orders with web design Melbourne at http://www.gmgweb.com.au features that make shopping easy. Customers love the convenience of seeing what you have before they even walk in the door. You’ll draw them in when you tap into the skills of first rate web design Melbourne. 

Move Beyond Your Location
With web design Melbourne, you are no longer restricted to your immediate area. You can pull customers in from any region, expanding to a global level. It is all about having more opportunities. Web design Melbourne allows you to reach out to anyone who has access to the Internet. With the explosion of mobile devices, you know that most people are connected. They are surfing the Internet at home, on their daily commute, when away on a trip, or on their lunch break. Allow them to access your business through web design Melbourne. 

Highlight Your Strengths
With a talented web design Melbourne team, you can really make a statement about your business. SEO techniques will make it possible to put your business at the top of the search rankings. Once you have hooked them with a great web design, you can see your sales begin to increase.