-
AuthorPosts
-
katiebegood Friend
katiebegood
- Join date:
- March 2010
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
February 28, 2011 at 8:05 pm #160836Can someone go to:
http://69.175.25.234/~quickgl1/
and tell me why there is a blue box around the first graphic in the first table. The exact same graphic is in the second table (a duplicate of the first table). This graphic is a .png with a transparent background. I can’t figure out why it shows with the blue background in the first table, but not in the second table.
If I remove the first table, I end up with the graphic once again having the blue box around it. When you look at “view page source” it shows in the code that the first graphic is orphaned and the table doesn’t start until after the graphic. But here’s the code:
<table border=”0″>
<tbody><tr><td>
<p><img style=”vertical-align: middle;” alt=”Original Packaging” src=”../%7Equickgl1/images/stories/original_small.png” width=”105″ height=”103″ />Original Packaging <img style=”vertical-align: middle;” alt=”New Packaging” src=”../%7Equickgl1/images/stories/produc_smallt.png” width=”100″ height=”103″ />New Packaging Same great product since 1957!</p>
</td></tr></tbody>
</table>BTW, I put the graphics in a one cell one row table because if I didn’t I couldn’t get the following text to align correctly.
Why is this happening. How is the rendering of my code stripping the first graphic out of the table?
Any help will be greatly appreciated. This is making me crazy!Phill Moderator
Phill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 28, 2011 at 8:21 pm #378929It is because the frontpage layout is applying the class “article image” to the first image in the article. Is that the frontpage layout you are using or just a simple article?
If it is the frontpage layout then change the menu item to a simple article and that should fic the problem. Or you could remove the class from the code below
<?php if ($image) : ?>
<div class="article-image">
<?php echo $image ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
</div>
<?php endif; ?>That is found in template>ja_social>html>com_content>frontpage>default_item.php at line 128.
katiebegood Friend
katiebegood
- Join date:
- March 2010
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
February 28, 2011 at 9:47 pm #378937Thank you so much. That took care of the problem. I have never even looked at how the Home menu item was constructed. That sure was a weird thing for it to do, though. How did it pick off the graphic and remove it from the table? You don’t really have to answer that, it was more a rhetorical question.
Sherlock Friend
Sherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
March 1, 2011 at 8:40 am #379030Dear katiebegood,
I just took a look at your url and I am not sure the table you are talking about, Can you attach an image show me the issue ?
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by Sherlock 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum