News & Blog

New Website Launched to Find Attractions Between Two Places

November 12th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, MySQL, PHP, SEO, Web Development.
For regular readers of this blog you might have guessed that I’m a huge fan of maps, and working inparticular with the Google Maps API. I also find that the best way to learn anything in the coding world is to use it in a real life scenario. As a result, and to hopefully produce [......

IE7 and IE8 Ignoring Opacity When Using jQuery fadeIn()

November 3rd, 2012 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
I’ll dive straight into this one by explaining the problem I came up against earlier this week whilst cross browser testing a feature in Internet Explorer 7 and 8. Let’s look at the following element: What we’ve got here is a black div with 50% opactiy, hovered over the t...

POST Data From a Form To An iFrame

July 28th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
You’re probably used to submitting forms to the same page or to a new window by setting the target of a form to ‘_self’ (or not setting a ‘target’ attribute) or ‘_blank’. If you use iFrames however, be it as an interface element or a hidden element...

Remove BODY onunload Event After Page Has Loaded

July 26th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
The onunload can be used to perform an action or to call a function when the user leaves a webpage. There are scenarios however when you might want to remove this action after the page has loaded. Take a look at the simple example below where I present a very basic HTML page containing an ...

Overcome min-width and max-width CSS on Table Not Working in IE7

February 28th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Whilst trying to make a screen look better across all resolutions recently, I came across a problem with IE7 when making the page cross-browser compatible. I was trying to add the CSS attribute ‘max-width’ on a table so that it would stop expanding across the entire screen on l...

Prevent CSS Padding Changing an Elements Dimensions

July 8th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Today I want to share with you a scenario I find myself coming across on a day-to-day basis and one that had me stumped when I first started to build HTML websites; the fact that when you add padding to a HTML element it has a direct impact on the width and height of that [...]...

Adding Page Breaks to Printable HTML with CSS

July 4th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
When it comes to designing and building a website there’s not really a limitation to how big, small, wide or thin you make it, the users resolution being the only concerning factor here. When it comes to printing however we have slightly more refined constraints; the paper height and...

Including a Stylesheet from Within Another Stylesheet

June 13th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
If you’ve got a stylesheet that is used in conjunction with other stylesheets on a regular basis did you know that you can include it within the CSS? Maybe you’ve got styles duplicated across multiple CSS files, in which case it might be better to put these duplicated classes i...

Adding Multiple CSS Classes to an Element

June 5th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
I find that CSS can generally be broken down into two categories; generic classes and element-specific classes. By doing this it makes the CSS less clunky and easier to maintain. Not sure what I mean? Let’s take a look at the following scenario: Before <style type="text/css"> ....

Closing ColorBox From Within an iFrame

May 13th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
I’ve wrote a couple of posts previously about the jQuery ColorBox plugin. It really is one of my preferred lightboxes that I find myself using more and more as time goes on. Today I want to answer a question that I’ve been asked a few times before and explain a situation I̵...