Monday, 27 April 2015

How do you make an object 100% minus a set number of pixels?

Well, it’s really not as hard as you would think.

In your css in the element that you want to be a percentage minus a set number of pixels add this:

width: calc(100% - /*no of pixels*/px);

However, you will have to add in a few lines to make sure it’s browser compatible:

width: calc(100% - /*no of pixels*/px);
width: -moz-calc(100% - /*no of pixels*/px);
width: -webkit-calc(100% - /*no of pixels*/px);
width: -o-calc(100% - /*no of pixels*/px);
width: -ms-calc(100% - /*no of pixels*/px);
/*Firefox, Safari and Chrome, Opera, IE*/

And there you have it, an element which fits exactly how you require.

Marvel’s Avengers: Age of Ultron

Avengers 2 will be hitting the big screen next month, which has gotten many of us excited! I think it’s going to be a brilliant film, I’m justing hoping I’m not let down.

I want to see the Hulk Vs Hulk Iron Man scene, just to understand what brought them to this point.

Friday, 24 April 2015

Sunday, 19 April 2015

Star Wars Teaser Trailer 2

Who else is excited for the new star wars film? I know I sure as hell am!

Star Wars released a new trailer not too long ago and ever since I’ve been hyped for the new movie being released December this year.

There are so many questions that this new trailer has brought to life, I just want to get down to the movie theatre and watch it now!

Friday, 17 April 2015

Star Wars New Battlefront 3 Game 2015

Star Wars Battlefront 3 2015 looks awesome!

I’m just going to come right out and say it, yes I’m a Star Wars fag, but you have to admit it looks good ;)

The trailer has so many good features to it and Vader at the end looked the dogs.

I’m pre-ordering this game to get all the bonuses and I can’t wait to see what the gameplay is like.