blog



Ruby on Rails: link_to and image_tag

Yet another quick code reminder as I always forget the syntax, this time to combine link_to and image_tag in Ruby on Rails. So if  you want an image_tag (here “logo.jpg”) to redirect the user to another URL (in this case,…

Cross-browser box-sizing CSS code

This is a quick reminder for cross-browser box-sizing CSS code… textarea { -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */ } Simply copy and paste the box-sizing CSS…

Bootstrap Tooltips and Popovers hidden in accordion

I had a series of Bootstrap tooltips and popovers hidden in accordion-body as it was cut-off by the css overflow:hidden of the .collapse Unfortunately I started to look into that issue and tried various options using jquery and css to…

How to create multi-resolution favicons in Photoshop

When it comes to finishing off a web project, you can easily forget (or can’t be bothered) to create this little icon which is visible in most modern browsers’ tabs. I mentioned “or can’t be bothered” because although it’s not…

Remove dotted border around links with CSS

Another quick reminder for some CSS that I always forget about but seem to need once or twice a year… How to remove dotted border around links with CSS: a { outline: none; }

Rack rewrite remove urls trailing slash

If you’re after a solution to remove trailing slashes in URLs using Rack rewrite, read on…. Rack rewrite remove URLs trailing slash so Google and other Search Engine don’t consider www.domain.com/page and www.domain.com/page/ as being 2 different pages with duplicate…

301 redirect all non-www to www using rack rewrite

It took me quite a while to find a way to 301 redirect all my non-www urls to www urls. So I decided to create another quick reminder in case I need this code again in the future… But firstly,…

Best SEO tip

The best SEO tip we’ve ever been given was to install a plugin called Yoast SEO plugin for websites running on wordpress. We’re not the best at SEO here in the office as we focus mainly on IT Support. But…

301 Redirect non-www to www

Simply copy and paste the code below in an existing .htaccess file at the root of your domain RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] Then replace “example.com” on both lines with your domain name 301 Redirect non-www…




IT Support Newcastle is brought to you by Transcendit Ltd, contact us on 0191 482 0444