PDA

View Full Version : Very Minor Bug on Mambo?


macdonut
07-08-2005, 05:28 AM
Hi guys,

I have a very minor issue with the calendar module on Mambo. I've placed the calendar in an area wider than required for the calender because I want to put some text immediately beside the calendar. However, when I do this, the navigation text becomes positioned incorrectly. The right hand navigation text (which I have named "next" is NOT right aligned with the calendar but is slightly in to the left. I have been able to fix this by changing the .navTable element on the style sheet to a width of 227 pixels. However, this has a detremental effect on the rest of the table. My site is www.rangers.cc (http://www.rangers.cc). I know this is not problem of the year but any advice would be gratefully received :classic:

Thanks

Ian

ve9gra
07-08-2005, 09:02 AM
Have a look here http://www.rangers.cc/modules/calendar/demo.php

You'll see that the table is properly aligned. I found a few problems with your integration... The doctype and the CSS calls are pasted right in the middle of your page (right above the calendar) when the doctype should be the very first thing that appears in your file, and the CSS call should be done within the <head> </head> tags. You can also see that your other CSS definitions are mucking about with the definitions for the Calendar... Look at your main page and then look at the link at the top of my post... You'll see some subtle differences (ie: the Month and Year are not bolded on the main page). So check the rest of your CSS for anything conflicting, or for some blanket defs (like applying a CSS to A, or TD, etc...). That should get your calendar to display properly again.

macdonut
07-08-2005, 10:39 AM
Thanks for your reply. It's clear that you're exactly right.. I'm just not sure what to do about it! The css file is specified inside the mambo module that I downloaded from here. Can you suggest what I can do to ensure that the correct style is applied to the calendar?

Thanks

Ian

ve9gra
07-08-2005, 11:02 AM
Check in your site's CSS (http://www.rangers.cc/templates/rhuk_solarflare_ii/css/template_css.css) and try to get rid of the blanket definitions like this onetd {
text-align: left;
font-size: 11px;
} Just removing the "text-align: left;" might fix your problem for the navTable.

As for the rest of the calendar, the CSS does seem to be applied just fine but it's some definitions that are inside of your site's CSS that are overriding the Calendar's CSS.

macdonut
07-08-2005, 11:09 AM
Well done mate... I removed the align=left line and all is now well with the world.


Thanks again for your valued assistance.

Ian

macdonut
07-09-2005, 05:05 AM
Well, I THOUGHT removing the text-align statement in the style sheet would do the trick.. And it does... but ONLY in Internet Explorer. Obviously IE aligns text to the left by default... However, when I view my website in Mozilla, ALL text in ALL tables is centre aligned, not great!

Clearly, under normal circumstances, I could override the style sheet, but in the calendar style sheet, there doesn't appear to be any way of overriding the actual <td>, only the table itself.

Any more thoughts.

Thanks in advance.

Ian

diske52
07-12-2005, 10:02 PM
Hey Guy,

Ve9gra as usual is ahead of me, and he seems to have pointed everything out.

However, besides changing variables and deleting what not, maybe you should try this.

Don't touch the .css for the site template. Go through your selected theme for your calendar, and Add your text alignment.

http://www.rangers.cc/modules/calendar/theme/default/esstyle.css

I just looked, and right off the bat i see
text-align: left;

So I dont know if i'm just getting ahead of myself or saying something you've already tried,
but change that, and even try adding "text-align: right;" to seperate table entries.

Give me a shout real quick if it dont work. I'm trying to take care of things since I got back from up north, I'll be on the pc for a bit ;)

Chuck