Tech-Today
How to remove the extra space added by IE browser on div tags
I just want to put an image inside a div like this:
<div>
<div>
<img src="image.jpg" alt="Image" />
</div>
</div>
Seems easy right? Unfortunately, it took me 15 minutes to figure out that the IE browsers are inserting an extra space in the bottom, just after the image. And whatever margin or padding values I set, it's useless.
Conclusion:
IE treats line-break as whitespace so you better remove it. Or put an empty comments inside the div and IE will not put extra space.
So the final tags are:
<div>
<div><!-- empty --><img src="image.jpg" alt="Image" /></div>
</div>
-
Using Background Image In Navigation Bar In Ios In Xcode
You can still use the setBackgroundImage: method to assign a custom image for the navigation bar. Here is the line of code for setting the background image. Insert it inside AppDelegate didFinishLaunchingWithoptions... method: UINavigationBar.appearance().setBackgroundImage(UIImage(named:...
-
Web Development
WordpressConfigure Custom Wordpress PermalinkZencartHow to add a customize product admin fields in zencart by editing/adding extra codesJoomlaHow to install/setup/configure joomla to run in a xampp setup. This avoids the technical detail of manually installing...
-
How To Resize An Image From Database Or File Using Php
This implementation is done using php. Usually we resize image that we read from a local file, then save it locally. Flow: 1.) read from local image file and store in a php variable 2.) resize the image file using php functionalities 3.) save...
-
How To Render A Chart Object In A View In Mvc3
I was working on a project that requires showing a graph, fortunately there's already a built in graph helper in mvc3: http://www.asp.net/web-pages/tutorials/data/7-displaying-data-in-a-chart. Tried the tutorial in link above and was able to display...
-
Iphone Xcode - Create A Simple Uiscrollview
Finally getting acquainted with iPhone's xcode. Now I'll build a simple window base application to demo the UIScrollView features. 1.) Create a new window base application, named it MyScroll. It should create 2 files: a.) MyScrollAppDelegate.h...
Tech-Today