Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8054 Posts in 1860 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Changing font color of day name, month and month number in list view?
Pages: [1]   Go Down
Print
Author Topic: Changing font color of day name, month and month number in list view?  (Read 878 times)
0 Members and 1 Guest are viewing this topic.
caputo737
New Member
*

Karma: 0
Offline Offline

Posts: 14


« on: June 05, 2007, 07:22:00 PM »

I would like to change the font color, size and weight of the date as it appears in the list view. (Thursday, May 5th).

I have hacked around in the default.html template but to no success. I was able to do this once but can't remember how.

Much thanks to anyone pointing me in the right direction.

Jason

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: June 05, 2007, 09:46:00 PM »

Look at the code in the default.html template following:

<%-- LIST STYLE DISPLAY --%>

That information is displayed with the following tags:

<%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>

Modify the surrounding HTML code appropriately.

Dan O.

------------------

Logged
caputo737
New Member
*

Karma: 0
Offline Offline

Posts: 14


« Reply #2 on: June 06, 2007, 01:32:00 PM »

That's what i thought, but.. must be doign something wrong. I will keep at it. Good to know I am in the right place anyway! Thank you.

------------------

Logged
caputo737
New Member
*

Karma: 0
Offline Offline

Posts: 14


« Reply #3 on: June 06, 2007, 04:27:00 PM »

Well I am just baffled, which is not unusual.

In the line below from my default template I changed the class from "text" to "textdate" and added this to the style sheet:.textdate { color:#990000; }


<DT><B><A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="text"><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%></A></B>

Changed to this

<DT><B><A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="textdate"><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%></A></B>

But nothing changes. I thought this would apply the .textdate style to the dayname monthname and dd output.

Am I even remotely close or embarrassingly clueless? (I have a hunch on which one but...)

Any help much appreciated.

Jason

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: June 06, 2007, 09:19:00 PM »

I'm afraid I am not a CSS expert to say why it isn't working. Have you tried using plain HTML tags to see if you're at least editing in the right spot(s)?

Dan O.

------------------

Logged
caputo737
New Member
*

Karma: 0
Offline Offline

Posts: 14


« Reply #5 on: June 07, 2007, 02:57:00 PM »

Dan,

I did try that first. I inserted <font color... and closing font tag as seen below. Nothing happened.

Example:
<DT><B><A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="text"><font color:#990000><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%></font></A></B>

Am I doing something incorrectly that you can see?

Thank you.

Jason

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: June 07, 2007, 03:31:00 PM »

** <font color:#990000> **

That is not a valid HTML tag. Try <font color="#990000">

If that doesn't work, you can try moving the font tags outside of the <a href...> tags.

JMO

Dan O.

------------------

Logged
caputo737
New Member
*

Karma: 0
Offline Offline

Posts: 14


« Reply #7 on: June 07, 2007, 04:07:00 PM »

Arrrghhh! Tried both those and randomly putting those font tags around at different points. Any other ideas?

Thanks.

Jason

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: June 07, 2007, 08:52:00 PM »

I'm afraid not. Sorry.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: