Archive for the ‘WebLog’ Category

9 Basic Principles Of Responsive Web Design

Posted on November 2014 at about 11:52 PM by hwa

Got this from FROONT’s blog, very informative and well explained with animated GIF on responsive web design.

Tips: Click on the image to view the animated GIF!

Responsive vs Adaptive

It might seem the same but it isn’t. Both approaches complement each other, so there is no right or wrong way to do it. Let the content decide.


It might seem the same but it isn’t. Both approaches complement each other, so there is no right or wrong way to do it. Let the content decide.

Flow vs Static

As screen sizes become smaller, content starts to take up more vertical space and anything below will be pushed down, it’s called the flow. That might be tricky to grasp if you are used to design with pixels and points, but makes total sense when you get used to it.


As screen sizes become smaller, content starts to take up more vertical space and anything below will be pushed down, it’s called the flow. That might be tricky to grasp if you are used to design with pixels and points, but makes total sense when you get used to it.

Relative Units vs Static Units

The canvas can be a desktop, mobile screen or anything in between. Pixel density can also vary, so we need units that are flexible and work everywhere. That’s where relative units like percents come in handy. So making something 50% wide means it will always take half of the screen (or viewport, which is the size of the opened browser window).


The canvas can be a desktop, mobile screen or anything in between. Pixel density can also vary, so we need units that are flexible and work everywhere. That’s where relative units like percents come in handy. So making something 50% wide means it will always take half of the screen (or viewport, which is the size of the opened browser window).

With Breakpoints vs Without Breakpoints

Breakpoints allow the layout to change at predefined points, i.e. having 3 columns on a desktop, but only 1 column on a mobile device. Most CSS properties can be changed from one breakpoint to another. Usually where you put one depends on the content. If a sentence breaks, you might need to add a breakpoint. But use them with caution – it can get messy quickly when it’s difficult to understand what is influencing what.


Breakpoints allow the layout to change at predefined points, i.e. having 3 columns on a desktop, but only 1 column on a mobile device. Most CSS properties can be changed from one breakpoint to another. Usually where you put one depends on the content. If a sentence breaks, you might need to add a breakpoint. But use them with caution – it can get messy quickly when it’s difficult to understand what is influencing what.

Max Width vs No Max Width

Sometimes it’s great that content takes up the whole width of a screen, like on a mobile device, but having the same content stretching to the whole width of your TV screen often makes less sense. This is why Min/Max values help. For example having width of 100% and Max width of 1000px would mean that content will fill the screen, but don’t go over 1000px.


Sometimes it’s great that content takes up the whole width of a screen, like on a mobile device, but having the same content stretching to the whole width of your TV screen often makes less sense. This is why Min/Max values help. For example having width of 100% and Max width of 1000px would mean that content will fill the screen, but don’t go over 1000px.

Nested vs Not Nested

Remember the relative position? Having a lot of elements depending on each other would be difficult to control, therefore wrapping elements in a container keeps it way more understandable, clean and tidy. This is where static units like pixels can help. They are useful for content that you don’t want to scale, like logos and buttons.


Remember the relative position? Having a lot of elements depending on each other would be difficult to control, therefore wrapping elements in a container keeps it way more understandable, clean and tidy. This is where static units like pixels can help. They are useful for content that you don’t want to scale, like logos and buttons.

Desktop First vs Mobile First

Technically there isn’t much of a difference if a project is started from a smaller screen to a bigger (mobile first) or vice versa (desktop first). Yet it adds extra limitations and helps you make decisions if you start with mobile first. Often people start from both ends at once, so really, go and see what works better for you.


Technically there isn’t much of a difference if a project is started from a smaller screen to a bigger (mobile first) or vice versa (desktop first). Yet it adds extra limitations and helps you make decisions if you start with mobile first. Often people start from both ends at once, so really, go and see what works better for you.

System Fonts vs Webfonts

Wanna have a cool looking Futura or Didot on your website? Use webfonts! Although they will look stunning, remember that each will be downloaded and the more you’ll have, the longer it will take to load the page. System fonts on the other hand are lightning fast, except when the user doesn’t have it locally, it will fall back to a default font.


Wanna have a cool looking Futura or Didot on your website? Use webfonts! Although they will look stunning, remember that each will be downloaded and the more you’ll have, the longer it will take to load the page. System fonts on the other hand are lightning fast, except when the user doesn’t have it locally, it will fall back to a default font.

Vectors vs Images

Does your icon have lot of details and some fancy effects applied? If yes, use a bitmap. If not, consider using a vector image. For bitmaps use a jpg, png or a gif, for vectors the best choice would be a SVG or an icon font. Each has some benefits and some drawbacks. However keep in mind the size — no pictures should go online without optimisation. Vectors on the other hand often are tiny, but some older browsers won’t support it. Also, if it has lots of curves, it might be heavier than a bitmap, so choose wisely.


Does your icon have lot of details and some fancy effects applied? If yes, use a bitmap. If not, consider using a vector image. For bitmaps use a jpg, png or a gif, for vectors the best choice would be a SVG or an icon font. Each has some benefits and some drawbacks. However keep in mind the size — no pictures should go online without optimisation. Vectors on the other hand often are tiny, but some older browsers won’t support it. Also, if it has lots of curves, it might be heavier than a bitmap, so choose wisely.

This article is originally posted at FROONT’s blog, under the title 9 basic principles of responsive web design. Head over to the original blog for more information, and also discussion on this subject.

New Contact Form And Comment Form Redesign

Posted on October 2012 at about 1:30 AM by hwa

Thanks to a recent spam attack to my contact form due to the plugin is too old and insecure, I finally decided to get my ass moving and update the plugin to a new one.

Now it’s running on Contact Form 7 (why 7?) by Takayukister, along with Really Simple CAPTCHA (also from the same author) for the CAPTCHA feature. While at it, I also redesign the contact form, making it more appealing, the design idea is came from my post for twitter.

Other than contact form, I also applied the same design to the comment form, did a bit of adjustment to the position for the comment box and etc, just scroll down a bit and you can see the new comment form.

Now you can write comments to this blog with a better form, hope you all like it. 😉

WP Header Image Rotator

Posted on December 2011 at about 5:01 AM by hwa

I just finished my 6 days leave, not really a good one because half of the leave I was sick, I was having a serious migraine. 🙁

But anyway, the other half of the leave I manage to wrote a plugin for my website, it’s a WordPress plugin that allow my blog’s header image to be rotated everytime it refresh, I called it WP Header Image Rotator.

The plugin is actually quite simple, all it does just print the CSS background into the header of my blog, and that’s it, but of course the purpose of the CSS is to display the header image.

So far the plugin is working well, but if you notice anything wrong with my header image, be it CSS issues or missing header image or anything, please let me know, and of course a print screen will be much appreciated. 🙂

Twitter Image Plugin Updates

Posted on December 2011 at about 5:51 AM by hwa

A little bit of updates for my Twitter Image plugin, now the images are not a resized of the original image, it’s appear as a thumbnail now, so the loading time should be slightly better.

As usual if you encounter any issue, feel free to let me know.

It’s That Month Of The Year Again

Posted on November 2011 at about 5:40 AM by hwa

Yup! It’s the month of the year again, where hwa2u.com will start to snow, indicating that Christmas is coming.

Also. I updated the header image, the photo was taken during the last time I visited Seoul for my brother’s convocation, it’s the main building of Korea University.

Hope you guys like the header photo, and also the snow effects.

Major Revamp For Twitter Layout

Posted on November 2011 at about 11:43 PM by hwa

If you all have notice, over the pass few days I posted quite a lot of photos, especially from my tweets.

There are reason for this though, one being that I was developing a plugin that can pull images from my tweets and display it in my blog, hence I keep testing it. But now the plugin has complete so I guess I won’t playing much with Twitter photo anymore, at least for now.

The plugin is actually one of the milestone for my blog, as it bring my blog closer to micro blogging, and it also make my tweets much more interesting. 😀 Hopefully I can develop the plugin not only to pull images but also some other stuff, like video or maybe geotagging from Twitter.

Anyway, for now I hope you enjoy my tweet photos, if you see any issue or the layout broken, please do not hesitate to contact me or just comment in the broken post, I’ll get notified. 😉

Twitter Layout Enhancement

Posted on November 2011 at about 6:57 AM by hwa

Just finished some enhancement for my Twitter layout, the design is slightly more appealing, and I personally believe it’s much more cleaner, no messy lines anymore.

I added a Twitter bird as background to indicate that the content are actually tweets. And lastly, I also added a link to my Twitter account, feel free to follow me.

Hope you guys like the new design, let me know if you have any comments.

New Separate Content Layout

Posted on October 2011 at about 4:21 PM by hwa

As you all might noticed already, the separated content, or my twitter post, is slightly redesigned. It’s now a simple box with smaller avatar, and no more chat balloon.

The reason for this is because I want a more tidy look, rather than suddenly popup a chat dialogue. However, I still not really satisfy with the colors though, looks plain to me.

Well, of course there will be some improvement to this as it’s just initial design, so stay tune.

hwa2u.com Homepage

Posted on September 2011 at about 11:28 PM by hwa

As you all might had noticed, by going to hwa2u.com will not redirect you to blog.hwa2u.com anymore, it’ll bring you to a nice homepage with links to other site of my domain, such as Wishing Board.

I decides to have a homepage is because I might have several unrelated site under the same domain, or even external website that I maintaining or interested with, so I can link them all here. Also I think a homepage which briefly describe my site will be nice.

Well, the current homepage will definitely won’t be the final one, there are a lot of things that I planning to implement, so stay tune!! ^^

Twitter Content Layout Refined

Posted on March 2011 at about 5:26 AM by hwa

Just did a minor layout tweaks for twitter contents, now the content and avatar is located top and bottom, instead of left and right like last time. Also some minor redesign such as rounded content box.

Hope you guys like it. 🙂