The Blog.


jQuery Script for Resizing Child elements to fill a Parent Container 25/07/2011



So today I was asked to come up with an easy way to make some li elements fill an unordered list. Sounds easy, right?

The trick was that the li elements were to be all different sizes, and therefore needed to be scaled individually. My solution was to find the width of the parent element, then loop through all the child elements and scale them by 1 pixel each time until they reach the size of the parent container.

Sure it’s probably not the best solution, but it definitely worked.

The HTML:


The CSS:

body {
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px;
}
.list-wrap {
	width:960px;
	margin: 0 auto;
}
ul.example {
	width:600px;
	height: 28px;
	margin: 0 auto;
	padding: 5px;
	overflow: hidden;
	position: relative;
	border: 1px #000000 solid;
}
ul.example li {
	display: inline-block;
	position: relative;
	list-style: none;
	padding:0;
	margin:0;
	height: 28px;
	line-height:28px;
	text-align: center;
	background: #E8E8E8;
}

The jQuery:

  var sumwidth=0;

   var increaseWidth = 1;

   var i = 0;

   var theParent = $("ul.example");

    theParent.children().each(function() {
		i++;
    });

	var maxWidth = theParent.width() - (i*i);

    while( sumwidth < maxWidth) {
    	sumwidth = 0;
	    theParent.children().each(function() {
		   var getWidth = $(this).width();
		   var newWidth = getWidth + increaseWidth;
		   $(this).css('width', newWidth + 'px');
		   sumwidth +=$(this).width();
	    });
    }

Also, the ratio between the width of the container and the font size will be dependant if the function breaks!

You can also check out the example here.

Have fun!

Posted in Blog, I.T. | No Comments »

978 Grid Photoshop Template 30/11/2010



This is a photoshop template for use with designing websites based on the 978 grid system.

I created this, because I was frustrated at the 960 grid, and found the 978 grid much, much easier to use. This template provides a photoshop template with 12 colums at 54px, with 30px gutter space between each. This grid is based on works from the Web Designer’s Wall.

Also, it features horizontal guides at 18px, which is based on the wonderful works of Richard Rutter’s “Compose to a Vertical Rhythm.” I reccomend checking out his post, it is a way we should all be thinking when developing websites.

Get it here.


Title Sequence Project 29/11/2010



This was a title sequence I created for an Rmit project.
The brief was to design a title sequence based on a theme (or idea) for a TV show that was either real or ficticious.

Enjoy!


Mix 21 August 13/09/2010



Photo taken by me in Kyoto, Japan - July 2010

 
So here is another mix I came up with a couple of weeks ago, and as it turns out – dubstep does not mix well with anything else other than dubstep. But at least now I know that.

 
So this mix starts with some fresh disco-housey beats, then moves in to some darker progressive house, then into the big room commericial. I added a bit of dirty dirty dubstep here and there to make it fun.

 
Mix 21st August - Mixed By Daniel Riddell

 
Enjoy!


Kinetic Typography 11/09/2010



Kinetic Typography from Daniel Riddell on Vimeo.

This was taken from Neon Genesis: Evangelion, one of the most confusing anime’s ever.
It was composed entirely in Adobe After Effects (CS4) with only one image take from an external source.

I was really happy with the end result, and it looks fairly good in HD.


How to: Navigate the Music Blog world. 21/01/2010



Finding new music can be tricky

So you’re at home (uni?) and you’re looking for some new music? Logic dictates that you jump on your favourite social networking sites to ask your friends what is good and new in the indie/nu-disco/electro world.

What if there was a better way?

Well, luckily for you there is; it’s called a music blog.
Now these little guys have been popping up like crazy in the last few years, following the ease of set-up that came with blogs.

The good news is that there is heaps and heaps out there, and that’s also the bad news.
So to navigate the perilous world of these blogs, there’s been a great indexing site that continues to get better and better the more people that use it.
It’s called The Hype Machine and it takes the tracks from hundreds of music blogs and puts them in one place.

So what? You say.

Well, the good news is that the site is driven primarily by users, as they can favourite a track. This means that the more users that favourite a track, the higher it gets ranked in popular. This cuts back the time of sifting through the dregs and you merely enjoy the cream at the top.

For even easier navigation check out the new The Hype FM Radio.

Enjoy the music guys!

P.S. Also here’s Disco Dust – easily my favourite music blog.


Australian INfront 15/01/2010



Australian INfront Website

So Australian INfront is a website that lists jobs and companies in the field of design. Which, is helpful as some of the better design firms are hidden all the way down google by these not so good pay-per-click google ads. So go ahead to Australian INfront and enjoy some of the wonderful content designers put up!

Cheers!


The Fake Blood Mix 13/01/2010



Mr Fake Blood Himself

Recently, I took a road trip to see my music idol, a Mr Fake Blood in Adelaide. To say the night was awesome, would be an understatement.

Not only did the man himself play, but there was also 2ManyDjs (better known as soulwax) and the proxy, which were the surprising hits of the night. Apparently Jack Beats and Riton played too, but I didn’t manage to get on down to them.

If you’re in Adelaide, definitely head on in to electric circus, it’s a cool little place with the friendliest of bartenders, I can almost guarantee a good night out if you head there.

So for the car trip over – I mixed a short CD with most of his songs, and it came out OK, I reckon! So here it is:

The Fake Blood Mix - Mixed By Daniel Riddell

I hope you enjoy it guys!