End Your If

Helping you solve those tough coding problems!

Learn some great development tips and techniques through recipes that clearly define the problem being solved with a working solution.
Popular Tags: cakephp | theory | optimization | javascript-development | asp-net | ajax | sql | php-development | jquery-development | css

Search:
Follow @endyourif rss Facebook LinkedIn
My Books

Disabling text selection/highlighting with CSS Disabling text selection/highlighting with CSS

Published on Feb 20, 2019 by Jamie Munro

Problem


You want to prevent text from being selected/highlighted; whether to prevent copying and pasting or accidental text selection.

Solution


Read more >

Tags: CSS | user-select

Simplifying the buzz word “Responsive Design” Simplifying the buzz word “Responsive Design”

Published on Feb 4, 2013 by Jamie Munro

Every so often there is a new buzz word in the web development/design industry.  A few years ago it was HTML5 and CSS3.  Now it seems to be “responsive design”.  And of course this makes a lot of sense.  With more and more Internet users accessing the content on their laptop or desktop PC, tablets, and mobile phones, websites need to be able to be ready to serve up the content in an appropriate fashion.

In this article, I want to take a step back and help simplify this process because by stopping and thinking just a little bit, it doesn’t need to be complicated.  In fact it’s quite simple.

At the time of writing this article, my blog is only about 50% responsive, I am planning a new design soon that will take it to the next level.

Read more >

Tags: CSS | html | Optimization | Mobile | Theory | responsive design | flexible grids | media queries | CSS

Simplifying the buzz word “Responsive Design” Simplifying the buzz word “Responsive Design”

Published on Feb 4, 2013 by Jamie Munro

Every so often there is a new buzz word in the web development/design industry.  A few years ago it was HTML5 and CSS3.  Now it seems to be “responsive design”.  And of course this makes a lot of sense.  With more and more Internet users accessing the content on their laptop or desktop PC, tablets, and mobile phones, websites need to be able to be ready to serve up the content in an appropriate fashion.

In this article, I want to take a step back and help simplify this process because by stopping and thinking just a little bit, it doesn’t need to be complicated.  In fact it’s quite simple.

At the time of writing this article, my blog is only about 50% responsive, I am planning a new design soon that will take it to the next level.

Read more >

Tags: CSS | html | Optimization | Mobile | Theory | responsive design | flexible grids | media queries | CSS

CSS: Start Generic before going Specific CSS: Start Generic before going Specific

Published on Oct 23, 2012 by Jamie Munro

This might be a boring refresher for some people; however, I think it’s important from time-to-time to go back and visit the basics.  CSS can provide a lot of power to a web developer (or designer), but when used improperly it can cause a lot of headaches.

When using CSS, like doing on development, it’s important to stop and think about what you are doing and more importantly, what’s the easiest way to accomplish it!

Let’s start with understanding the acronym behind CSS – it stands for Cascading Style Sheets.  Cascading, being the very important word to understand.  This means that the base styles you define will carry throughout (or cascade) all of your design unless a specific style is overridden.

I’m going to begin by demonstrating how I typically begin creating a style sheet.

Read more >

Tags: CSS | organization | CSS

CSS: Start Generic before going Specific CSS: Start Generic before going Specific

Published on Oct 23, 2012 by Jamie Munro

This might be a boring refresher for some people; however, I think it’s important from time-to-time to go back and visit the basics.  CSS can provide a lot of power to a web developer (or designer), but when used improperly it can cause a lot of headaches.

When using CSS, like doing on development, it’s important to stop and think about what you are doing and more importantly, what’s the easiest way to accomplish it!

Let’s start with understanding the acronym behind CSS – it stands for Cascading Style Sheets.  Cascading, being the very important word to understand.  This means that the base styles you define will carry throughout (or cascade) all of your design unless a specific style is overridden.

I’m going to begin by demonstrating how I typically begin creating a style sheet.

Read more >

Tags: CSS | organization | CSS

Highlights from Webistrate: HTML5, MVC 3, and CSS3 Highlights from Webistrate: HTML5, MVC 3, and CSS3

Published on Sep 21, 2011 by Jamie Munro

Developers to the rescue of designers...again! Developers to the rescue of designers...again!

Published on Aug 30, 2011 by Jamie Munro

Developers to the rescue of designers...again! Developers to the rescue of designers...again!

Published on Aug 30, 2011 by Jamie Munro

CakePHP CSS Enhancements From 1.2 To 1.3 CakePHP CSS Enhancements From 1.2 To 1.3

Published on Feb 23, 2011 by Jamie Munro

margin: 0 auto; not centering in Internet Explorer? margin: 0 auto; not centering in Internet Explorer?

Published on Sep 18, 2009 by Jamie Munro

margin: 0 auto; not centering in Internet Explorer? margin: 0 auto; not centering in Internet Explorer?

Published on Sep 18, 2009 by Jamie Munro

Optimize your CSS and JS with CakePHP in minutes Optimize your CSS and JS with CakePHP in minutes

Published on Mar 21, 2009 by Jamie Munro

CSS Tips - Margins in Internet Explorer CSS Tips - Margins in Internet Explorer

Published on Feb 16, 2009 by Jamie Munro

CSS Tips - Margins in Internet Explorer CSS Tips - Margins in Internet Explorer

Published on Feb 16, 2009 by Jamie Munro

YSlow - Helping slow web pages load faster YSlow - Helping slow web pages load faster

Published on Feb 11, 2009 by Jamie Munro

YSlow - Helping slow web pages load faster YSlow - Helping slow web pages load faster

Published on Feb 11, 2009 by Jamie Munro

Firebug - A developer's best friend Firebug - A developer's best friend

Published on Feb 11, 2009 by Jamie Munro

Firebug - A developer's best friend Firebug - A developer's best friend

Published on Feb 11, 2009 by Jamie Munro