Hi there,
I customized the content module so the title of an article displays an image before the text and the text is displayed with two colors!!
The relevant part of the code is at follows:
<h2 class="title"> <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?> <a href="<?php echo $this->item->readmore_link; ?>"> <div><span class="image-title"></span> <?php $titles = explode(" ",$this->item->title); for ($i=0; $i<count($titles)-1; $i++){ echo '<div style="float:left;padding-left:7px;color:#303030;">'.$this->escape($titles[$i]).'</div>'; }?> <div style="color:#06cfef;float:left;padding-left:7px;"><?php echo $this->escape($titles[$i]);?></div></div></a> <div style="clear:both;height:0px;"></div> <?php else : ?> <div><span class="image-title"></span> <?php $titles = explode(" ",$this->item->title); for ($i=0; $i<count($titles)-1; $i++){ echo '<div style="float:left;padding-left:7px;">'.$this->escape($titles[$i]).'</div>'; }?> <div style="color:#06cfef;float:left;padding-left:7px;"><?php echo $this->escape($titles[$i]);?></div></div> <div style="clear:both;"></div> <?php endif; ?> </h2>
In both IE and Google Chrome everything is displayed as wanted (apart from ie which has some positioning problem but i'm not focusing on that now)
In firefox, I can see the content loading correctly but just before the page finish loading the image disappears... I just can't understand why!!
You can take a look at this url:
Can anyone please help??
Thanks
Can you fix the url?
Can you fix the url? edit - Oh, I got it by quoting your post. The problem probably has to do with the cufon script. Can you remove that and report back.
Hey there! Thanks for the
Hey there! Thanks for the short repply
Just removed cufon scripts... Still the same result!!
By the way the link is http://sostudent.com/joomla/
May be a problem in generating code
Hi Johny,
When you compare the source of you page with firefox and safari you will not find the following markup in firefox.
This may be a problem with build ur using to generate the page.
Chrome, Firefox, and Safari
Chrome, Firefox, and Safari all render what appears to be the exact same site.
I see lots of images, so I can't be sure that I'm missing something, but at least they all look the same.
Your HTML does have some pretty bad errors in it.
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fsostudent.com%2Fjoomla%2F
It may pay off to try and resolve as many of those as possible. Maybe it will help you rectify the situation.