Board index PBase HTML and Style Sheets Change Text Margin on "Description"

HTML and Style Sheets

Change Text Margin on "Description"

Customize your galleries.
gummyb
 
Posts: 210

Change Text Margin on "Description"

Post Thu Feb 19, 2009 10:42 pm


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?

dang
 
Posts: 3780

Re: Change Text Margin on "Description"

Post Thu Feb 19, 2009 11:48 pm


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;

alidasphotos
 
Posts: 119

Re: Change Text Margin on "Description"

Post Fri Feb 27, 2009 10:56 pm


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>

mardoli
 
Posts: 585

Re: Change Text Margin on "Description"

Post Mon Mar 02, 2009 8:36 am


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
ImageImage
"Arguments are to be avoided; they are always vulgar and often convincing."
~Oscar Wilde~


Board index PBase HTML and Style Sheets Change Text Margin on "Description"

Who is online

Users browsing this forum: No registered users and 1 guest