Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By kenwen on
Hi all,
I've been putting together a theme and its coming close to completion but for one error.
On IE, the images in nodes break out of the node box. Works fine in Firefox.
any suggestions on whats going on and how to solve?
the site is http://www.londonkettlebells.com
thanks!
Comments
You're using floats for the
You're using floats for the images, right? Try to add:
as the last markup of your nodes. It will expand the node box in IE6. Note that in IE7 (Strict mode) this issue is fixed.
it works...
sorta,
having to add the clears into the nodes themselves :)
This worked for me
I had it all: peekaboo text, peekaboo images, and images escaping their nodes.
You might google the "holly hack", that is if your trouble is on IE6. This hack uses another bug in IE6 to override the float problem.
BUT, don't know if it works on IE7. The hack may not work if IE7 fixes the bug that made the hack override the float problem, without fixing the float bug itself.
Sorry if that's explained poorly. It's early here in Arizona.
Cheers,
D. Lynn
Edit node.tpl.php
If you're working with a theme which uses the phptemplate engine, you can modify the
node.tpl.php
file (just add the div before the last closing div). Or, ifnode.tpl.php
doesn't exist in your theme directory, copy it fromthemes/engines/phptemplate/node.tpl.php
and then modify it.I seem to have a similar problem...
...trying to port andreas04 to drupal.
If anybody has the time and inclination, please have a look at http://drupal.daemonz.net/ - FF works fine for me, but IE breaks in interesting ways.
This is my node.tpl.php
I've cleared it in the above code but doesn't seem to work...
div style clear
Instead of
try to use: