Web Dev: July 2007 Archives

There are only a couple of lines of code I've put in my main page's PHP to support a random image from G2's photo gallery:

<link rel="stylesheet" href=http://WEBSITE/gallery2/main.php?g2_controller=imageblock.ExternalCSS>
<?php
@readfile('http://WEBSITE/gallery2/main.php?
g2_view=imageblock.External&g2_blocks=randomImage&
g2_show=date|views');
?>

Of course, the link part goes in your <head> section and the readfile part goes in your <body> section somewhere...

Setting the stylesheet allows you to control the view from within G2's Image Block admin page.  Click on the Image Block link from G2's site admistration and it will give you an exact link to put into your own website based on your own G2 installation settings.  You can modify several parameters within the link as described on the admin page.

IE 6 Rendering Issues

| | Comments (0) | TrackBacks (0)

What can I do to fix tearing in IE 6.0?  I haven't validated against Safari or IE 5.5, but Firefox renders my pages just fine.  I've validated the HTML and CSS and am happy with its results.  It's almost as though the line-height parameter is being randomized as it strips out portions of random lines throughout a div when scrolling up or down...  When I remove the background-color property, everything works fine which is why their is no background color in the homepage's content divs.

Here is a screenshot of it in action:

But then again, in this example, the bottom of the longer letters such as p, y, and g get their last pixels rendered. 

Update (7/1/07): Turns out it was a combination of line-height and background-color.  Using both caused the issue, so I removed the line-height setting from my <p> section and the background-color can stay without tearing.  Yay for IE6!

About this Archive

This page is a archive of entries in the Web Dev category from July 2007.

Web Dev: June 2007 is the previous archive.

Web Dev: May 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.