Page 1 of 1

Change Text Margin on "Description"

PostPosted: Thu Feb 19, 2009 10:42 pm
by gummyb
Right now all text starts from the far left end to the far right end. Is there a way to change the text margin on the Description field of each gallery? Kind of like have the text start two inches from the left and ending two inches from the right?

Re: Change Text Margin on "Description"

PostPosted: Thu Feb 19, 2009 11:48 pm
by dang
gummyb wrote:Right now all text starts from the far left end to the far right end. Is there a way to change the text margin on the Description field of each gallery? Kind of like have the text start two inches from the left and ending two inches from the right?


There's a couple of ways, one is to use a table in every galleries html to enclose the text.

The better one is to add additional code to the CSS body area designating width. This could affect the gallery title also, but doesn't have to be added each time:

Code: Select all
BODY
{
width:760px;
margin-left:auto;
margin-right:auto;

Re: Change Text Margin on "Description"

PostPosted: Fri Feb 27, 2009 10:56 pm
by alidasphotos
You can center the gallery description by starting with
<div align="center">
Then after you write the description you need to end it with the ending tag
</div>

Re: Change Text Margin on "Description"

PostPosted: Mon Mar 02, 2009 8:36 am
by mardoli
alidasphotos wrote:You can center the gallery description by starting with
<div align="center">
Then after you write the description you need to end it with the ending tag
</div>

I think Gummyb didn’t want to have his text centred, but only to have a different margin, I might be totally wrong, but following Dang’s suggestion the result is that also the upper bar where there are PBase buttons get bigger margins and all what is in the body of the page as well.
Maybe it’s possible to get the result Gummyb would like operating on the galleryheader, not on the body.
Try to insert this command in your style-sheet
Code: Select all
.galleryheader
{
  padding:50px;
}

I hope it can work
Best
Marisa