Joomla Templates, WordPress Themes - HotThemes
Welcome, Guest
Username: Password: Remember me
Discussion about Hot Photo Gallery Joomla plugin.

TOPIC: Centering the gallery

Re: Centering the gallery 3 years 3 months ago #7465

  • jadu80
  • jadu80's Avatar
  • OFFLINE
  • HotThemes Member
  • Posts: 1
dear Ivan, thanks for answer, but i;m not sure where /in which file/ i should ad it

JD
The administrator has disabled public write access.

Re: Centering the gallery 3 years 3 months ago #7477

  • ivan.milic
  • ivan.milic's Avatar
  • OFFLINE
  • Support Staff
  • Posts: 12586
  • Thank you received: 1432
Add that in head section of index.php of template just before </head> in style block , because it that way that rules have highest priority and you will be sure that they take effect:

<style type="text/css" >

#gallery a
{
width:30%;
display:inline-block;
}

#gallery a img
{

width: 180px;
}

</style>
The administrator has disabled public write access.

Re: Centering the gallery 2 years 6 months ago #14649

  • larry
  • larry's Avatar
  • OFFLINE
  • HotThemes Member
  • Posts: 29
  • Thank you received: 2
Is there not a div style or css style that can be put in base code to make the pictures be centered in the gallery wrapper instead of them floating left?
The administrator has disabled public write access.

Re: Centering the gallery 2 years 6 months ago #14674

  • ivan.milic
  • ivan.milic's Avatar
  • OFFLINE
  • Support Staff
  • Posts: 12586
  • Thank you received: 1432
That depends on situation with parent elements and their layout properties, so in some cases like this you are forced to use a little bit static code.
The administrator has disabled public write access.

Re: Centering the gallery 2 years 5 months ago #16445

  • sabradley
  • sabradley's Avatar
  • OFFLINE
  • HotThemes Member
  • Posts: 9
Hi,

I have this same issue and I tried to insert the code in index.php, but it doesn't seem to do anything.

Here is the link: stephanbradley.com/gallery/peoplephotos

This is a work in progress, so there could be some things that need improvement.

Thanks,
Stephan
The administrator has disabled public write access.

Re: Centering the gallery 2 years 5 months ago #16457

  • ivan.milic
  • ivan.milic's Avatar
  • OFFLINE
  • Support Staff
  • Posts: 12586
  • Thank you received: 1432
You have an gallery module , not plugin. Make gallery less in width or images more in width
The administrator has disabled public write access.
Time to create page: 0.126 seconds
Powered by Kunena Forum

Forum Rules

Allow our support staff to help you:

  • Average response time is 12-24h. Please don't ask the same question twice.
  • Always post your site link so we can check your problem.
  • If you prefer, you can send link and site login details privately if you click "Report to moderator" link.

You are welcome to post if you have fair Joomla/WordPress knowledge and your question is related to:

  • Finding and resolving errors in our products
  • Problems with installation of our products on your server
  • Instructions how to use our products - please read documentation and search this Forum before posting!
  • General questions about our products

In the following cases, support staff may not reply your question or may delete your post without prior notice:

  • Total Joomla/WordPress beginners - Please find some literature for Joomla or literature for WordPress.
  • Modifications of our products: Beside Joomla/WordPress knowledge, you must also understand CSS and HTML, and/or have some PHP experience. Purpose of this Forum is not teaching HTML, CSS or PHP.