RE: The calendar day labels and the border :-(
"Jet Wilda" <[email protected]> Tue, 15 Jun 2004 14:12:30 -0400
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Message-ID | <8B7573C4677F7F42B0E4AC353EC54C2850DF9B@kmexch02.km.kobieloyalty.com> |
Ok I solved this by customizing portlet_calendar
By changing
<td i18n:translate="" tal:content="weekday">Su</td>
To
<td i18n:translate="" tal:content="weekday"
tal:attributes="id string:weekday-${weekday}">Su</td>
And then having this CSS
#weekday-Su {
border-left: &dtml-borderWidth; &dtml-borderStyle;
&dtml-globalBorderColor;;
}
#weekday-Sa {
border-right: &dtml-borderWidth; &dtml-borderStyle;
&dtml-globalBorderColor;;
}
Jet
Jet wrote:
>
>
> +lupa+ wrote:
> >
> >
> > At 04:05 PM 6/14/2004 -0400, Jet Wilda wrote:
> > >If anyone could enlighten me with some CSS Zen I would be very
> > >gratefull. I'm trying to get a border just around the top header
> > >section of the calendar. Like:
> > >
> > >------------------------------
> > >| << June >> |
> > >| Su Mo Tu We Th Fr Sa |
> > >------------------------------
> >
> > My teammate Davos took 5 minutes to do this:
> >
> > .ploneCalendar .weekdays td {
> > background-color: &dtml-globalBackgroundColor;;
> > border: &dtml-borderWidth; &dtml-borderStyle;
> > &dtml-globalBorderColor;;
> > border-style: &dtml-borderStyle; none;
> > text-align: center;
> > padding: 2px;
> > border-top-color: &dtml-globalBackgroundColor;;
> > }
> >
> > He says the trick is the last line...just make
> > border-top-color match the
> > background color. Also, Davos added border-top-color was
> > added by me...not
> > there by default.
> >
>
> I think I was misunderstood. You answer gives me:
>
> ------------------------------
> | << June >> |
> Su Mo Tu We Th Fr Sa
> ------------------------------
>
> However what I am not able to get is the left border only
> next to 'Su' and the right border only next to 'Sa'
> Like:
>
> ------------------------------
> | << June >> |
> | Su Mo Tu We Th Fr Sa |
> ------------------------------
>
> Thanks and looking forward to other responses
>
> TIA
>
> Jet
>
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND