Board index PBase HTML and Style Sheets How to center titles in the alexc stylesheet ?

HTML and Style Sheets

How to center titles in the alexc stylesheet ?

Customize your galleries.
manco
 
Posts: 9

How to center titles in the alexc stylesheet ?

Post Tue Sep 14, 2004 8:37 pm


I normally use the timmyg stylesheet and my titles center very well in this mode. However, when using the alexc stylesheet, titles always position to the extreme right of the page. How can this be corrected ? I am a pc dummy, so pls try to explain in an easy way. Thanks.

dpnew
 
Posts: 26

Re: How to center titles in the alexc stylesheet ?

Post Wed Sep 15, 2004 7:26 am


manco wrote:I normally use the timmyg stylesheet and my titles center very well in this mode. However, when using the alexc stylesheet, titles always position to the extreme right of the page. How can this be corrected ? I am a pc dummy, so pls try to explain in an easy way. Thanks.


Hi,

The title on the right is part of the design of the alexc style. It's simple to change, but there is no easy way to do it for someone that isn't handy with their computer. I can give you the code, so that's no problem, but you need to be able to navigate around pbase to find out where to put your new stylesheet. The help section might give you a little bit of direction:

http://www.pbase.com/help/edit_gallery

I included the stylesheet for you below, and I marked the line that needs changing. If you create a new stylesheet for your gallery, and copy and paste this code into the stylesheet, you can make the change that will center the text. Where indicated in the code, change "right;" to "center;". Note the semicolons. Then erase the "***Change Here***" part. That's it! After, you make the change, it's your new style sheet, and all you have to do is copy and paste it in the right place on pbase.

Code: Select all
BODY
{
  color: white;
  background-color: #333333;
  font-size: 7pt;
}

.message_body { background-color: #333333;
  color: #d5ae83; padding-bottom:    10px; }

DIV,TH,TR,TABLE,FONT,LI,UL,FORM,
BLOCKQUOTE,P,B,I,H1,H2,H3,H4,H5,FONT, CENTER
{
  font-family: verdana, arial, sans-serif;
  font-size: 10pt;
  color: white;
}

font
{
  color: #AAAAAA;   letter-spacing: 2px; font-size: 8pt;
}

h2
{
  font-size:         12pt;
  font-weight:      normal;
  text-align:      right;       *******CHANGE HERE********
  letter-spacing:     8px;
  padding-top:       15px;
  padding-bottom:    15px;
  margin-left:       2px;
  margin-right:      2px;
  background-color: black;
  color:  white;
}

h2:first-letter
{
  color:      #d5ae83;
  font-style: bold;
  font-size:  22pt;
}


h4
{
  color: #44dd44;
  font-size: 11pt;
}

I
{
  color: #888888;
}


TEXTAREA
{
  background-color: #EEEEEE;
  font-family: times new roman;
  color: black;
  scrollbar-base-color: gray;
  scrollbar-3dlight-color: black;
  scrollbar-highlight-color: none;
}

A, TD.A, A:link
{
  color:           #FFCC00;
  text-decoration: none;
}
A:hover  { color: #00FF00; text-decoration: underline; }
A:visited { color: #FFCC66; }
A:active { color : #d5ae83; }

.caption
{
font-size : 9pt;
color : #bbbbbb;
font-style : italic;
}

TD
{
background-color: none;
}

TD.thumbnail
{
background-color: black;
padding: 5px;
vertical-align: middle;
horizontal-align: middle;
width: 200px;

}

.thumbnail { border-color: silver; border-width: 1px; }

.display
{
border: 3px RIDGE #999999;
background-color: black;
}

BODY { margin-top: 0px; top: 0px; }
BODY TABLE IMG { display: inline; }

ukexpat
 
Posts: 1193


Post Wed Sep 15, 2004 1:24 pm


Editing and saving a style sheet is not that complicated -- in Edit Gallery just click the "edit style sheets" link. The following page lists the style sheets that you have saved previously. From there you just edit the one you want, then either save it with the same name or give it a new name.


Board index PBase HTML and Style Sheets How to center titles in the alexc stylesheet ?

Who is online

Users browsing this forum: ClaudeBot, SemrushBot and 1 guest