RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 21, 2008, 12:13:46 am
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Text not so close to the thumbnails on gallery Mainpage
Advanced search
  « previous next »
Pages 1
Author
Topic: Text not so close to the thumbnails on gallery Mainpage  (Read 6471 times)
« on: March 04, 2007, 03:25:08 am »
Janne Kristiansen Offline
Newbie
*
Posts: 21

View Profile Email

Hi there,

I want to move the text a little bit away from the thumbnails in my gallery. I will guess it is a CSS thing.
But i can not figure it out.

Right now the text to each thumbnail in my gallery frontpage is sticking right into to thumbnail. A couple or three spaces would be nice :-)
Can somebody help my out?
Hope ppl know what i mean :-)
My gallery is just on local machine, so i can not show you guys. (localhost with Jsas)

Kisses from
Janne Maria K.
Logged

Kisses from
Janne Maria K
 
Reply #1
« on: March 04, 2007, 04:03:26 am »
Janne Kristiansen Offline
Newbie
*
Posts: 21

View Profile Email

OK, i found it my self :-)

IN the file config.rsgallery2.php i did this:

On line: 341 i replaced this:
Code:
        $thumb_html = "<img $imgatt src=\"".$mosConfig_live_site."/components/com_rsgallery2/images/no_pics.gif\" alt=\"No pictures in gallery\" border=\"1\"  />";

With this:
Code:
        $thumb_html = "<img $imgatt src=\"".$mosConfig_live_site."/components/com_rsgallery2/images/no_pics.gif\" alt=\"No pictures in gallery\" border=\"1\" hspace=\"5\" vspace=\"5\" />";


And on line 357 i replaced this:

Code:
$thumb_html = "<img $imgatt src=\"".imgUtils::getImgThumb($thumb_name)."\" alt=\"\" border=\"0\" />";

Whith this:

Code:
$thumb_html = "<img $imgatt src=\"".imgUtils::getImgThumb($thumb_name)."\" alt=\"\" border=\"0\" hspace=\"5\" vspace=\"5\" />";

hspace and vspace can be replaced with other numbers for wider space

Kisses Janne Maria K
Logged

Kisses from
Janne Maria K
 
Reply #2
« on: March 04, 2007, 06:03:06 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870
danieltulp@hotmail.com
View Profile WWW Email

you can do this way easier with your rsgallery2.css file, just remove the /* */ around margin: 0 5px 5px 0; in:

Code:
.rsg2-galleryList-thumb{
    display: block;
    float: left;
    /*margin: 0 5px 5px 0;*/
}
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #3
« on: March 04, 2007, 06:25:45 am »
Janne Kristiansen Offline
Newbie
*
Posts: 21

View Profile Email

thanks for the tip Cheesy

Maybe a idea for future builds :-)

Kisses

Janne Marea K.
Logged

Kisses from
Janne Maria K
 
Reply #4
« on: March 04, 2007, 06:35:07 am »
Janne Kristiansen Offline
Newbie
*
Posts: 21

View Profile Email

you can do this way easier with your rsgallery2.css file, just remove the /* */ around margin: 0 5px 5px 0; in:

Code:
.rsg2-galleryList-thumb{
    display: block;
    float: left;
    /*margin: 0 5px 5px 0;*/
}

Just a quick question

The Zero infront of 5px and behind the 5px, was does it do?
Logged

Kisses from
Janne Maria K
 
Reply #5
« on: March 04, 2007, 07:09:21 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870
danieltulp@hotmail.com
View Profile WWW Email

margins and paddings can be defined like this:

margin: top right bottom left;
so:
margin: 0 5px 5px 0;
means
0px top-margin
5px right-margin
5px bottom-margin
0px left-margin
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #6
« on: March 04, 2007, 07:32:17 am »
Janne Kristiansen Offline
Newbie
*
Posts: 21

View Profile Email

thanks again Smiley I am getting smart ;-)
Logged

Kisses from
Janne Maria K
 
Reply #7
« on: March 09, 2007, 12:17:33 am »
Patti Hobbs Offline
Newbie
*
Posts: 7

View Profile Email

I came to ask this very same question.  However, I can't find a rsgallery2.css  I find a rsgallery.css  Is that what you mean?  I did find the section you've copied and pasted here. Changing the padding didn't work though until I took off the slashes and asterisks. I thought those were meant for comments, but until I removed them, nothing I did changed the margins.

Here's mine: http://hobbits8.com/index.php?option=com_rsgallery2&Itemid=71
Logged
 
Reply #8
« on: March 09, 2007, 11:15:56 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870
danieltulp@hotmail.com
View Profile WWW Email

that is exactly what you needed to do, removing the comment elements
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Print  Pages 1
« previous next »
Jump to: