- Posts: 14116
- Thank you received: 1639
Centering the gallery
-
jadu80
- Visitor
13 years 7 months ago #7465
by jadu80
Replied by jadu80 on topic Re: Centering the gallery
dear Ivan, thanks for answer, but i;m not sure where /in which file/ i should ad it
JD
JD
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
13 years 7 months ago #7477
by ivan.milic
Replied by ivan.milic on topic Re: Centering the gallery
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>
<style type="text/css" >
#gallery a
{
width:30%;
display:inline-block;
}
#gallery a img
{
width: 180px;
}
</style>
Please Log in to join the conversation.
-
larry
Inactive member - Member
Less
More
- Posts: 53
- Thank you received: 3
12 years 10 months ago #14649
by larry
Replied by larry on topic Re: Centering the gallery
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?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 10 months ago #14674
by ivan.milic
Replied by ivan.milic on topic Re: Centering the gallery
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.
Please Log in to join the conversation.
-
sabradley
Inactive member - New Member
Less
More
- Posts: 9
- Thank you received: 0
12 years 9 months ago #16445
by sabradley
Replied by sabradley on topic Re: Centering the gallery
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
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
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 9 months ago #16457
by ivan.milic
Replied by ivan.milic on topic Re: Centering the gallery
You have an gallery module , not plugin. Make gallery less in width or images more in width
Please Log in to join the conversation.
Time to create page: 0.085 seconds