Using table in HTML and font size issue with IE

I don’t really understand why people don’t like to use table these days. I’m not a wise HTML guru or something but as far I understand table is a pretty little thing with some handy features, which does my work without much trouble. At least as long as you don’t have a very complex layout where it needs the use of several colspan and rowspans, table is really handy. I don’t have to bother about floats, breaking in browsers etc.

But there is a issue with the font size I faced in IE and Safari. If I define a font size in the parent element it doesn’t effect the content of the table. That was really confusing for me.

So, whenever using a table, it needs to define the font size for the table explicitely.


table{ font-size: 12px; }

IE8 Issue with CSS margin:0 auto

It is a common practice to use the CSS style – margin:0 auto to make a content centered. This very simple effect gave me a really hard time for last couple of days. This works pretty fine on FF-3.x, Opera-9.x, Safari-3.x, IE-6(!) and IE-7. But when I load it with IE-8, the element is left aligned, not centered!!! I was just thundered and had not idea what to do.

So what was happening?! Is it another bug of IE-8 to make us hate it more?! Not exactly. After finding out what was happening, I think that was pretty much my fault and I can forgive IE for this one time. :)

Enough bullshit, let’s come to the point. There are three possible solutions for this problem.

First one:

Make sure that the page header has this: <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/html4/strict.dtd”> Read the rest of this entry »

আশাবাদী হতে ইচ্ছে করে

২৫মার্চ সকালে ঘুম থেকে উঠে ইচ্ছে করল দেখি আশাবাদী হবার মত একটা খবর অন্তত খুঁজে বের করি। চারিদিকে তো শুধু নেই নেই রব। কোথাও আশা নেই। ভাবলাম খুব ছোট্ট একটা আশার বানী অন্তত খুঁজে বের করি। পত্রিকাটা নিয়ে মনটা সত্যিই খুবই খারাপ হয়ে গেল। সারা দেশে ১৪কোটি মানুষের ভিড়ে কি একটাও ভাল খবর নেই। রোজই হয়ত পত্রিকাটার পাতা একই রকম থাকে, কিন্তু আজ ব্যাপারটা খুব চোখে লাগলো।পত্রিকার প্রথম দুটি পাতা এইরকমঃ

এত সংবাদের ভীড়ে একটাও ভাল খবর নেই। স্বাধীনতা দিবসের প্রাক্বালে মনটা খুব খারাপ হয়ে গেল।

About

Name: Ashiqur, aka "rony"

Bio: I'm Rony. Graduated in CSE. Took programming as profession. Right now working as CEO of Creash.

Search
Categories