Simple Widget Styling

Do you ever using widget in your blog?
Sometimes when I added widget in my blog, the position was aligned left. Can we make it a little bit in the center?
In this writing, I tried to apply some simple styling to modify your widget. Are you ready?

First of all, you must choose a widget to enroll. In this writing, I used widget from Dilbert (I’m the big fan of it). This was the code given by them.
<object type="application/x-shockwave-flash" data="http://widgets.dilbert.com/o/478bf96b7bf0b5a2/494cffca172eaa7d/478cddf3fcd52701/8a2fafd6/-cpid/71bc012ffa85d617" id="W478bf96b7bf0b5a2494cffca172eaa7d" width="160" height="300"><param name="movie" value="http://widgets.dilbert.com/o/478bf96b7bf0b5a2/494cffca172eaa7d/478cddf3fcd52701/8a2fafd6/-cpid/71bc012ffa85d617" /><param name="wmode" value="transparent" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /></object>

As usual, you could just copy and paste the code to the Text Widget on your wordpress control panel. After saving the changes you made, go and see to the homepage and see the widget. It will looks like this.

Before
Before

Now, trying to add some styling codes on your Dilbert’s Text Widget. I’ll try to make the position into the center. The codes are like these:
<div style:"text-align:center;">
<object type="application/x-shockwave-flash" data="http://widgets.dilbert.com/o/478bf96b7bf0b5a2/494cffca172eaa7d/478cddf3fcd52701/8a2fafd6/-cpid/71bc012ffa85d617" id="W478bf96b7bf0b5a2494cffca172eaa7d" width="160" height="300"><param name="movie" value="http://widgets.dilbert.com/o/478bf96b7bf0b5a2/494cffca172eaa7d/478cddf3fcd52701/8a2fafd6/-cpid/71bc012ffa85d617" /><param name="wmode" value="transparent" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /></object>
</div>

Save the changes and refresh the homepage. The widget will be centered just like this.

After
After

Now, you can try another styling widget on your own. If you find something interesting on the process, don’t mind to tell me about it. Happy trying!!

What's in your mind?