1. michael_i
  2. Commercial Templates
  3. Monday, 12 August 2013
  4.  Subscribe via email
Hi!

I have a problem with the module_header style.

It looks good when I use it in the sidecol posiiton,
but it when I use it in any other position the background is broken.

I have attached 2 pics. One as it looks in the sidecol position
and another one in a user position.

In general i wonder why it at all works even in the sidecol position,
since the used background picture has this transparent area bewteen the left side and the right side.

Many Thanks,
Michael
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Michael

Would you have a URL to an example of this issue?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Michael

The markup for the module headers in our Revelation template is slightly different to the default module headers used in Joomla. Rather than using something like the following...


<div class="module_header"> 
Module_header
</div>


It should be...


<div class="module_header">
<div>
<h3>Module Header</h3>
</div>
</div>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciarán!

I have changed the markup to the correct one
It looks now better but still not the same like in the sidecol.

The graphic on the left side gets lost.

In general I would love to understand how that works.
There is only one bg image used that
consists out of the left part with the graphics followed by a transparent space area and the right part.

It seems that using CSS the right part is slided over the transparent area under the left area with the graphics.

http://www.new-life-coaching.com
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
The module header loads the same background image twice in two divs which overlay each other. One div has the background image positioned right while the other is positioned left. The reasoning been it allows the module header some scalability for the varying module sizes. This however is limited to a maximum 350px wide (approx). The header is set to be 100% of the containing div which is why it seems askew when loaded in the wider content area. A way to fix this is by adding a width to the div inline...


<div class="module_header" style="width:200px;">
<div>
<h3 style="font-size: 14px; padding-top: 0.5em;" >Module Header</h3>
</div>
</div>


Styling added to the h3 is just a reset for some content styling on the template.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciarán,
for the clear explanation.

There is only the last "miracle" left.

Using the module header in a smaller column,
which is not the sidecol, the left part of the bg-image
seems to be fully covered by the right part.

I have attached 2 pictures
The 1st shows the "incorrect" module_header and
the 2nd one shows the missing left image part.

Thank You,
Michael
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
HI Michael

To amend could you try adding the following to the end of your templates template.css (../templates/j51_revelation/css/template.css)..


div.module_header {padding: 0 0 0 33px !important;}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciarán!

That works.

I assume that the padding got overruled by some other css defintions,
since the 33px padding is anyhow part of the "modul_header" style definittion.

To avoid the duplication of the padding, I have moved the 2 Style definitions for the "module_header" to the bottom of the template.css stylesheet instead of the single padding line. This works as well.

Michael
  1. more than a month ago
  2. Commercial Templates
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok