1
shaxs
How to center the Mini Calendar in the side_block_left
  • 2004/8/24 23:33

  • shaxs

  • Not too shy to talk

  • Posts: 116

  • Since: 2004/6/1 2


Hello All,


If you go to http://www.SDSUforChrist.com you will see I have a minicalendar setup but it looks wierd because it is aligned left, not center. While in the block administration page, I see it uses the side_block_left template. Is there a way to clone the Side_block_left, and add tags to center everything in that block, then apply it to the minicalendar? And where can I find side_block_left to edit anyways?

2
tjnemez
Re: How to center the Mini Calendar in the side_block_left
  • 2004/8/25 0:28

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


as it is the mini call is governed by the css properties of the left column. is there a template for mincal.html? if so you could use a div tag around the .html

there is many ways to do it, but something like this would work:
template.html


you could edit your style.css included with your theme to affect the left column this is the relevant css:

td#leftcolumn {width: 200px; font-size:12px; background : #FFFFFF; }
td#leftcolumn th {background-color: #FFFFFF; color: #000000; vertical-align: middle;}
td#leftcolumn .blockTitle {padding: 8px; background-color: #FFFFFF; background-image: url(blocktitle.jpg); color: #FFFFFF; font-weight:bold; text-align: center; }
td#leftcolumn .blockContent {padding: 3px; line-height: 120%; line-height: 120%;background-color: #eee;margin-bottom:8px; background : #FFFFFF; }

3
ChadK
Re: How to center the Mini Calendar in the side_block_left
  • 2004/8/25 1:43

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


You can also duplicate your template and modify that... might be a better solution.

Check tjnemez's article:
http://www.dcdezines.ca/modules/articles/article.php?articleID=7

4
rocket98
Re: How to center the Mini Calendar in the side_block_left
  • 2004/8/25 3:30

  • rocket98

  • Just popping in

  • Posts: 95

  • Since: 2004/6/2 2


Hi shaxs,

Sounds complicated... If you just want to align the calendar frame on your home page to the center of the left column block it's sitting in... do it the hard way!!

FTP into your site and locate /pical/images/default/minical.tmpl.html

Pull the file and open in a TEXT editor or copy and paste into your favorite TEXT editor.

Put
right on line 2 below



then on the 2nd last line put
right above



Save upload and see if that helps...

Regards,
rocket98


5
incama
Re: How to center the Mini Calendar in the side_block_left
  • 2004/8/25 4:44

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


Right on target

6
tjnemez
Re: How to center the Mini Calendar in the side_block_left
  • 2004/8/25 18:16

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


as a rule, i always try to use css and templates first. and, yes there is a bit of a learning curve, but once in place it is very easy to affect change.


Login

Who's Online

369 user(s) are online (282 user(s) are browsing Support Forums)


Members: 0


Guests: 369


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits