Semasa libur sekolah, trafik telepon dan SMS Indosat lancar karena lonjakan tak sampai 20%. Yang justru naik signifikan malah trafik data harian, naik 27,46% jadi 14,45 terabyte per hari.
-
I posted to detikinet.com
Trafik Data Indosat Melonjak 27,46%
http://www.detikinet.com/read/2009/07/04/181111/1159099/328/trafik-data-indosat-melonjak-2746
- Tags:
- detikInet
2 Hours, 48 Minutes ago | Comments »
-
I posted to detikinet.com
AMD Gelontorkan Quad-Core Murah
http://www.detikinet.com/read/2009/07/04/174009/1159084/317/amd-gelontorkan-quad-core-murah
AMD kembali menghadirkan seri Opteron terbaru dalam produk 'Suzuka'. Harga prosesor Quad-Core ini katanya jauh lebih murah dari versi sebelumnya. Seberapa murah?
- Tags:
- detikInet
3 Hours, 19 Minutes ago | Comments »
-
I posted to detikinet.com
Telkom Korporat Bandung Tak Ada Lawan
http://www.detikinet.com/read/2009/07/04/171844/1159080/319/telkom-korporat-bandung-tak-ada-lawan
Telkom menguasai 90% pasar korporat di Bandung. Bisa dibilang, BUMN telekomunikasi ini tak punya lawan yang sepadan di segmen bisnis tersebut.
- Tags:
- detikInet
3 Hours, 41 Minutes ago | Comments »
-
I posted to detikinet.com
1000 Karyawan Oracle Terancam PHK
http://www.detikinet.com/read/2009/07/04/155054/1159029/319/1000-karyawan-oracle-terancam-phk
Kebijakan PHK masal ini terpaksa diambil demi menyeimbangkan kas perusahaan yang terus menipis sejak anjloknya pendapatan di Eropa.
- Tags:
- detikInet
5 Hours, 9 Minutes ago | Comments »
-
I posted to detikinet.com
Final Fantasy IV Beraksi di Nintendo DS
http://www.detikinet.com/read/2009/07/04/145856/1158998/654/final-fantasy-iv-beraksi-di-nintendo-ds
Square Enix merilis seri game Final Fantasy terbaru untuk Nintendo DS. Game RPG ini berkisah tentang empat ksatria cahaya.
- Tags:
- detikInet
6 Hours, 1 Minute ago | Comments »
-
I posted to detikinet.com
Tekken 6 Tanpa Jagoan Misterius
http://www.detikinet.com/read/2009/07/04/130756/1158934/654/tekken-6-tanpa-jagoan-misterius
Tekken 6 akan hadir dengan jumlah petarung terbanyak di sepanjang sejarah game tersebut. Namun sayang, tak ada lagi jagoan misterius.
- Tags:
- detikInet
7 Hours, 52 Minutes ago | Comments »
-
I posted to nettuts.com
CSS Fudamentals: Containing Children
http://feedproxy.google.com/~r/nettuts/~3/_OMpK62En5Q/
I’ve received multiple requests for simpler CSS tutorials that teach the tricky fundamentals. This will serve as the first entry in a series that will receive new additions sporadically each month. Today, we’ll be reviewing the overflow: hidden, and clearfix tricks to force a parent div to contains its children.
The Overflow: Hidden Trick
Have you ever noticed that when you float all of the children elements within a div, the parent takes up zero space? For example, in your code editor, adding the following within the body tag.
<div id="container"> <div id="main">
</div> <div id="sidebar">
</div> </div>
Now, let’s add a bit of CSS to simulate a typical website.
container {
background: red; width: 800px; padding-bottom: 2em; }main {
background: green; height: 500px; width: 600px; float: right; }sidebar {
background: blue; height: 500px; width: 200px; float: left; }Above, we’re simply setting background colors and floating the sidebar and main divs to the left and right, respectively. Note the “padding-bottom: 2em;”. This should allow us to see the red background at the very bottom, right? View the page in your browser, and you’ll see:
Where did the red background go? Why isn’t it displaying?
The SolutionWhen you float all of the children, the parent essentially takes up no space. To better illustrate this fact, let’s set an arbitrary height of 50px to the container, and then reduce the opacity of the children divs so that we can see the red background beneath.
container {
.. other styles height: 50px; }
main, #sidebar {
opacity: .5; }
Refresh your browser, and you’ll see:
How odd. We’ve specified a height of 50px for our container div, yet the main and sidebar divs blatantly overflow its boundaries, like spoiled bratty divs.
Return to your stylesheet, and apply one style:
container {
...other styles overflow: hidden; }
After another refresh, we see:
Well that partially helps. Now, we don’t have to worry about the pubescent children disobeying their parent. Having said that, this really doesn’t help our situation.
“Try to avoid specifying heights as much as possible. There’s usually a smarter method.
The solution is to rip out the height property from our container. Remove the following property.
container {
...other styles height: 50px; /* Remove this */ }
One last refresh, and our problem seems to be fixed.
You can also remove the opacity properties. They were just for demonstration purposes.
The Rub
The method demonstrated above will work in most cases. However, let’s introduce another variable. What if we want to position an image on the border of our container, so that it overlaps. You’ve seen this effect many times. For the sake of the example, we’ll just use an image of a circle with a transparent background. On a real site, this might represent a “Buy Now” or “Sign Up” button — something cheesy like that.
Positioning the Circle Using CSS, let’s position the image in the top right portion of our “website”, overlapping the edges. This is what we want:
First, we reference the image within our HTML.
<div id="container"> <img src="circle.png" alt="Buy Now" /> ...rest of html
Next, return to your stylesheet, and add the following styles.
img { position: absolute; right: -100px; top: 20px; }
Positioning Context One might think that this will place the image just over the right edge of the container div. However, he’d be wrong.
Because we have not set a positioning context, the window will be used instead.
Obviously, this is not what we want. To apply a positioning context to our container div, simply add “position: relative;” to #container. Once we’ve done so, the image will no longer use the window as a reference.
What’s the Problem Now? But now, we have a new problem! Because we set overflow:hidden to our container div, we’ve somewhat shot ourselves in the foot. How do we break boundaries and take names if overflow is set to hidden? Should we simply accept that this particular website won’t be taking names today? Absolutely not. In these cases, it’s worth using a different method. The Clearfix Trick
With this method, we’ll use CSS to add content after our container div. This created content will then clear our div, thus forcing it to contain its children. Now obviously we don’t want to see this content, so we need to be sure to hide it from the viewer.
Return to your stylesheet, remove “overflow: hidden;” from your container div, and add the following:
container {
... other styles _height: 1%; }container:after {
content: "."; visibility: hidden; display: block; clear: both; height: 0; font-size: 0; }This might appear complicated, but I assure you that it’s quite simple.
_height: Triggers “haslayout” in Internet Explorer, by using the underscore trick to target IE6 directly. content: After the container div, append a period. visibility: We don’t want to see the period, so hide it from the page. (Equal to setting opacity: 0;) display: Forces the period to display as a block-level, rather than inline. clear: The important property. This clears the main and sidebar divs. This is the same as adding an unsemantic <div style=”clear: both;”> to our page. height: Don’t take up any space. font-size: Just a precaution for Firefox. This browser sometimes adds a bit of space after our parent element. Setting the font-size to zero fixes this.
Conclusion
Though the overflow:hidden trick is preferable, it’s not always ideal. You need to use the best solution for the task at hand. The important thing is to learn each method, so that you have the tools to solve the puzzle.
Follow us on Twitter, or subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.
- Tags:
- HTML CSS
22 Hours, 9 Minutes ago | Comments »
-
I posted to detikinet.com
Trafik Percakapan Telepon Lintas Operator Naik 24%
Asosiasi Kliring Telekomunikasi (Askitel) mencatat trafik percakapan dan durasi telepon lintas operator meningkat 24% pada 2008 lalu. Peningkatan dikarenakan turunnya tarif interkoneksi dan pertumbuhan pengguna telekomunikasi 20% menjadi 130 juta pelanggan.
- Tags:
- detikInet
22 Hours, 52 Minutes ago | Comments »
-
I posted to detikinet.com
Umur BlackBerry Menghitung Hari
http://www.detikinet.com/read/2009/07/03/192433/1158757/328/umur-blackberry-menghitung-hari
Ancaman Dirjen Postel untuk menghentikan impor BlackBerry tidak main-main jika RIM belum membuka layanan purna jualnya hingga 15 Juli mendatang. Regulator siap memutus rantai impor BlackBerry, baik itu dari operator maupun paralel impor.
- Tags:
- detikInet
July 3 2009, 7:24am | Comments »
-
I posted to detikinet.com
Gay Dilegalkan, Internet jadi Ajang 'Perang'
Keputusan kontroversial dari pengadilan India mewarnai jagat maya. Internet menjadi ajang perang bagi mereka yang pro dan kontra dengan keputusan tersebut.
- Tags:
- detikInet
July 3 2009, 6:27am | Comments »


