Board index PBase HTML and Style Sheets Get rid off 'Title' after placing banner including title?

HTML and Style Sheets

Get rid off 'Title' after placing banner including title?

Customize your galleries.
michaelvanbosch
 
Posts: 2

Get rid off 'Title' after placing banner including title?

Post Mon Oct 29, 2007 12:02 am


Hi all,

I like making my own banners including the page's title.

But then the problem appears that you see the title twice!

Filling in the 'Title' on the editing page is no longer necessary after allready including it in the banner but if I don't fill it in it simply shows the 'Galleryname' without spaces or seperated with underscores in the previous gallery which doesn't look good!

How can I solve that?
Eg: http://www.pbase.com/michaelvanbosch/southafrica2006

Ps: CSS style I generally like is "alexc"...

Thanks!
Michael Van Bosch, Belgium.
http://www.pbase.com/michaelvanbosch

dang
 
Posts: 3780


Post Mon Oct 29, 2007 1:34 am


The section which deals with the "Title Banner" in your sheet is in this section:
Code: Select all
h2
{
  font-size:         8pt;
  font-weight:      normal;
  text-align:       center;
  letter-spacing:     8px;
  padding-top:       12px;
  padding-bottom:    12px;
  margin-left:       2px;
  margin-right:      2px;
  background-color: black;
  color:  white;
}

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


You can change the text size to 0, set padding to 0 and change the color of the background to match the rest of your page. This way, it's not going to be seen and you'll still have it available to work with later if needed. Simple fix, but I suggest you check in a test gallery with Firefox & IE to be sure it doesn't affect anything adversely. Sometimes things seem simple, but might alter the way different browsers interpret.

michaelvanbosch
 
Posts: 2


Post Mon Oct 29, 2007 10:39 am



Thanks for that...
Changing this didn't influence anything else...
The only 'bug' is that some small white dots where the title used to be still remain...
Any idea why?

This is what I've got now:

h2
{
font-size: 0pt;
font-weight: normal;
text-align: center;
letter-spacing: 0px;
padding-top: 0px;
padding-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
background-color: grey;
color: grey;
}

h2:first-letter
{
color: #d5ae83;
font-style: italic;
font-size: 0pt;
}

Check on:
http://www.pbase.com/michaelvanbosch/southafrica2006

dang
 
Posts: 3780


Post Mon Oct 29, 2007 12:42 pm


You might try changing the color to gray for the first letter in the second section also:

Code: Select all
h2:first-letter
{
color: gray;
font-style: italic;
font-size: 0pt;


Hope this helps.


Board index PBase HTML and Style Sheets Get rid off 'Title' after placing banner including title?

Who is online

Users browsing this forum: ClaudeBot and 2 guests