PDA

View Full Version : calendar add-on


emccourt
10-05-2006, 03:22 PM
One other thing - I'm using the calendar add-on on my photoblog at http://www.neuroticcamel.com/photoblog, which works fine, but the alignment isn't right in Firefox. The section of code I'm using is thus:

In the <head> section:
.calendar {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
margin-left: 20px;
text-align: center;
}

In the <body> section:
<!-- image -->
<span class="calendar"><SITE_CALENDAR></span><br />
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="image" src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="Click for <IMAGE_PREVIOUS_TITLE>" /></a>

What do I need to add to the CSS to get it to align correctly in Firefox?

I'm using the simplyblue template.

Ta,
Elaine

DikkieBurger
10-05-2006, 03:27 PM
This is in your head tags:


.calendar {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
margin-left: 20px;
text-align: center;
margin:0 auto;
}


Delete the margin:0 auto;

jdleung
10-05-2006, 03:45 PM
it seems there is no external CSS file. so some classes cannot works too.
such as "table_calendar","td-calendar-days","td-calendar-days-imagefound"...

emccourt
10-05-2006, 03:54 PM
Deleting the margin:0 auto; didn't work, unfortunately. Still over to the left in Firefox.

Connie
10-05-2006, 03:56 PM
and you cleared the firefox cache as well?

emccourt
10-05-2006, 03:59 PM
Yup. No dice, unless my computer is playing silly buggers. Still showing left aligned to me.

Connie
10-05-2006, 04:30 PM
as always the mantra:

did you validate your site's html???

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.neuroticcamel.com%2Fphotoblog %2F

you miss the encoding meta ...

I will never understand why people delete the character set... set it to UTF.8 please

what are these games:
\width: 780px;
w\idth: 780px; ???

emccourt
10-05-2006, 05:44 PM
Not my 'games' - that was the CSS on the template.