By Jeff Suddaby on Sunday, 10 August 2014
Posted in General Issues
Likes 0
Views 0.9K
Votes 0
Hi,

I'm running a Joomla article in a lightbox. I want to add some padding to the Komento element - see attached.

How do I do this?

TIA - Jeff.
Hello Jeff,

I have checked your site and it seems like your Komento section is in Iframe. The properties of Iframe is it will load again the html. So, the only thing you can do to override/customize this by putting the css code in the Komento style. However, you need to include the Iframe class in order to prevent Komento which was outside the Iframe doesn't get affected. Can you put this css code in your Komento style: /components/com_komento/themes/kuro/css/style.

.modal div#section-kmt{
padding: 20px;
box-sizing: border-box;
}

Hope this will help.
Thanks.
·
Monday, 11 August 2014 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you kindly please post the URL to your site please?
·
Monday, 11 August 2014 02:56
·
0 Likes
·
0 Votes
·
0 Comments
·
oops! Yes.

The site is at http://whazzat.org/ You need to click on the link "What do you see when you turn out the light..." in the upper right quadrant of the page. This will open the lightbox that holds the Komento section.

TIA - Jeff.
·
Monday, 11 August 2014 06:37
·
0 Likes
·
0 Votes
·
0 Comments
·
hey jeff,
you can add this line to your template's css file and it should do the trick just fine:


#section-kmt.theme-cleo {
box-sizing: border-box;
padding: 25px; }


that's how it will look then: http://screencast.com/t/UlB0ggkdh0

hope that helps and have a nice day
·
Monday, 11 August 2014 08:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm...

The screenshot you provide is just what I am after.

However, when I copy/paste your code snippet into my template's custom css file, there is no change, even after clearing the browser history.

Please advise.
·
Monday, 11 August 2014 16:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mohd. That works perfectly!

Thanks again - Jeff.
·
Monday, 11 August 2014 18:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

You're welcome. Glad to hear your issue have been resolved.
If you have anymore question, please don't hesitate to ask us and please create a new ticket. I will mark this ticket as resolved.

Thanks again and have a wonderful day.
·
Monday, 11 August 2014 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post