View Single Post
  #4 (permalink)  
Old 07-05-2007, 10:35 AM
admin admin is offline
Administrator
 
Join Date: Sep 2006
Posts: 327
Default

Hi

The issue with this is not that you’re doing something wrong from what see.
But that Joomla uses tables which is fine but each table is assigned for a blog style layout a contentpaneopen class. Now you have two tables one for the title one for the content part so you’re going to get two boxes.

I think the solution for your issue and your going to kick yourself is to not format the borders on the contentpaneopen class. But make a table or div in the index.php template itself then inside that table or div add the mainbody call so that your content is surrounded by your rounded cornered table or div.

If you look at some the templates that come with the kit I have done this with tables.
http://www.m65.net/article-template-products-joomla!-templates-blue-round-corners-60-4.html#1_9

You could just copy and the code and style or change to your liking.
Doing it in div’s is fine to.

-------------------
| |
| |
| Main body |
| |
-------------------
/* round corners class */
.round {background: url(../images/bl_grey.gif) 0 100% no-repeat #dddddd; width: 20em; margin-bottom: 10px;}

.round div {background: url(../images/br_grey.gif) 100% 100% no-repeat}

.round div div {background: url(../images/tl_grey.gif) 0 0 no-repeat}

.round div div div {background: url(../images/tr_grey.gif) 100% 0 no-repeat; padding:10px; padding-top: 0px; padding-bottom: 2px;}

.round div div div div {background: none;}

<!-- HTML Code -->
<div class="round">
<div>
<div>
Main Body Call
</div>
</div>
</div>

</div>

Cheers,
Brian