Posts Tagged ‘web development’

WordPress for the iphone

Tuesday, July 22nd, 2008

The WordPress app for the iPhone was recently released and I wasted no time installing it! Since I also need a reason to try it out, I am going to give a quick review of it.

This is an app that I am really looking forward to using! Let’s face it, who can’t use yet another opportunity to stay plugged in and productive! I am actually writing this post while on my way to a ball game. Just one less excuse for me not writing more often.

My first impression is that it is rather clean looking and easy to use. Everything you need to create a post is right here and easily accessible.

There are only a handful of features to use. You can create a new post. You can edit any existing post on your blog. You can assign categories and tags to these posts. And you also have the ability to upload photos from the iPhone which will be a very handy feature to have while out and about.

That is about the extent of things however. Keep in mind that this is just the 1.0 release so it is only going to get nicer, however for the app to be really useful, I would include some additional features.

One glaring omission is the lack of a code editing mode within the posts. This most likely won’t be an issue for the typical blogger, however, if like me, you also use WordPress for content management, it is a very useful feature to have.

Another feature I would like to see added is some way to manage the back end of the blog. Personally, I can’t see wanting to do much here on my phone, but it would be nice to be able to moderate comments, or work with pages.

While this app doesn’t have every feature you might want now, it is a great start, and I have a feeling, quite a few bloggers are going to find it indispensable. Oh, and by the way, it is completely free!

EDIT – for some reason when I posted this, it reverted back to a the draft I was editing. Not sure if this is a bug, or if I did something wrong, but I would strongly suggest you check the published post to be sure it is correct.

CSS Trick: Center content that is larger than a browser window

Tuesday, June 3rd, 2008

It is fairly easy to center things in the browser window by using the rule: ‘margin:auto;’ on the containing div. What if you want to center some content that is larger that the browser window? By this, I mean that the item’s center point is inline with the window’s center point, and the excess goes beyond the border of the window equally on all sides. The usual technique won’t work because there is no space for a margin so none is calculated. If what you are trying to center is just a background image, there is also an easy solution, ‘background-position:center;’.

I came across a situation recently where this very problem popped up. The content in question here was a Flash movie, and it was built very large so that the header and footer images would extend to the edge of the window, no matter how large the user had sized their window. Obviously, if this wasn’t centered, the actual content in the middle of the flash movie would be kicked way off to the right, because the left edge of the flash movie is actually the beginning of the pattern.

I took a glance through a book, and did a quick web search, but I didn’t immediately find the information that I was looking for, so I decided to just work it out myself.

It really wasn’t to difficult to make happen, and here is the css that I used to make it happen:

body {
	margin:0;
	padding:0;
}

#wrapper {
	width:(element width);
	height:(element height);
	margin: (1/2 height) 0 0 (1/2 width);
	padding:0;
	position:absolute;
	left:50%;
	top:50%
}

In the HTML, you will need to enclose the content in a div with the id of “wrapper”. You will also need to edit the above css code (anything in parenthesis) to reflect your own sizes. Other than that, everything should work fine. Here is a link to the example I mentioned above, it works dynamically so be sure to resize the window to see the effect.

If you come across this problem, hopefully you will find this solution useful (and easy to find). One word of advise however, this solution does not work in IE6. I may try to find a workaround for this, if so, I will update this post. Then again, I detest that browser, and really don’t care if things are rendered poorly in it, so I may never fix this problem.

Update: This post has been updated and is now compatible with IE6. The problem had to do with ‘position:fixed;’ which should have been set to absolute for IE6 to properly render the negative margins. I had completely forgotten about fixing this, but luckily a reader who preferred not be named found the solution. Unnamed reader, thanks for your help on this, hopefully others get some use out of it as well!