Make Table Columns the same size - Event Calendar

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Make Table Columns the same size - Event Calendar
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I am running Event Calendar on my site. It all works perfectly, and I am not having any problems with the actual module.

My problem lies in the tables. For some reason, the last column, "Saturday" in the month view is of smaller size than the other days of the week. ( [ Register or login to view links on this board. ] ) Is there any way to make all the columns in the table the same size? This is bugging the crap out of me.

Let me know if anyone needs any other information.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#2   re: Make Table Columns the same size - Event Calendar
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
From looking at your source code, it seems the columns in the calendar at set for a width of 15% each. 7 x 15% = 105%. icon_rolleyes.gif

100%/7 = 14% plus some. I'd try setting the columns for Mon-Thurs to 14% and leave Sat and Sun at 15%. That will at least give it a more uniform look.

You'll have to go into the calendar files to find the code, but here's what you're looking for:

<TH width=15%><FONT SIZE=2 color=#000000>Sun</TH>
<TH width=15%><FONT color=#000000 SIZE=2>Mon</TH>
<TH width=15%><FONT color=#000000 SIZE=2>Tues</TH>
<TH width=15%><FONT color=#000000 SIZE=2>Wed</TH>
<TH width=15%><FONT color=#000000 SIZE=2>Thurs</TH>
<TH width=15%><FONT color=#000000 SIZE=2>Fri</TH>
<TH width=15%><FONT color=#000000 SIZE=2>Sat</TH>


It may be creating the columns dynamically, meaning that you can only set one value for the column width, but I can't tell without seeing the PHP code.


Back to top Reply with quote
#3   re: Make Table Columns the same size - Event Calendar
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Thanks Kelly_Hero!

The code was in the index.php file here:

/**** Build Month */
                print("\n<CENTER>\n<TABLE border=$monthtableborder cellspacing=$monthtablecellspacing cellpadding=$monthtablecellpadding width=100% bgcolor=$monthbgcolor>");
                $day_of_week = 1;

                echo "<TR bgcolor=$trimbgcolor>
                        <TH width=15%><FONT SIZE=2 color=$trimtextcolor>"._CALFIRSTDAY."</TH>
                        <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSECONDDAY."</TH>
                        <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALTHIRDDAY."</TH>
                        <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFOURTHDAY."</TH>
                        <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFIFTHDAY."</TH>
                        <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSIXTHDAY."</TH>
                        <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSEVENTHDAY."</TH>
                      </TR>";


I changed it to:

echo "<TR bgcolor=$trimbgcolor>
                        <TH width=14%><FONT SIZE=2 color=$trimtextcolor>"._CALFIRSTDAY."</TH>
                        <TH width=14%><FONT color=$trimtextcolor SIZE=2>"._CALSECONDDAY."</TH>
                        <TH width=14%><FONT color=$trimtextcolor SIZE=2>"._CALTHIRDDAY."</TH>
                        <TH width=14%><FONT color=$trimtextcolor SIZE=2>"._CALFOURTHDAY."</TH>
                        <TH width=14%><FONT color=$trimtextcolor SIZE=2>"._CALFIFTHDAY."</TH>
                        <TH width=14%><FONT color=$trimtextcolor SIZE=2>"._CALSIXTHDAY."</TH>
                        <TH width=14%><FONT color=$trimtextcolor SIZE=2>"._CALSEVENTHDAY."</TH>
                      </TR>";


IT looks good on a 13" monitor at 1024 x 768 resolution. Anyone care to look with a bigger monitor to see if it still looks uniform? Or possibly a higher screen resolution?

Thanks again.



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#4   re: Make Table Columns the same size - Event Calendar
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
I'm running 1152 x 864 on a 19" monitor and it looks perfect to me. icon_wink.gif



Back to top Reply with quote
#5   re: Make Table Columns the same size - Event Calendar
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Thanks echo. That's good enough for me. icon_biggrin.gif

Hey, I just read your occupation, Rent a Buddy. What's that all about??? icon_question.gif




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#6   re: Make Table Columns the same size - Event Calendar
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Hey Dauthus, that occupation thing is my crude attempt at humor...it's just a joke bud...unless of course you know someone that wants to rent me as their buddy! new_silly.gif



Back to top Reply with quote
#7   re: Make Table Columns the same size - Event Calendar
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Are you available for parties? occasion16.gif occasion18.gif occasion15.gif




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#8   re: Make Table Columns the same size - Event Calendar
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Parties? ....Party is my middle name!! new_rofl.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum