By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,847 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,847 IT Pros & Developers. It's quick & easy.

CSS and Calendar Control

P: n/a
Hello,

i am trying to create a .css file with several styles and apply them to the
calendar control so i can change the look of:

1. Text Type and Format (Bold, Underline, etc)
2. Background Color
3. Foreground Color
4. Border Tickness
5. Border Color
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day, Weekend,
etc.

Can you help me out?

Thank You,
Miguel
Nov 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Have you even looked at the various properties that a Calendar control has?
I am guessing no because everything you want to do can be set by simply
setting the various properties.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
Hello,

i am trying to create a .css file with several styles and apply them to the calendar control so i can change the look of:

1. Text Type and Format (Bold, Underline, etc)
2. Background Color
3. Foreground Color
4. Border Tickness
5. Border Color
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day, Weekend,
etc.

Can you help me out?

Thank You,
Miguel

Nov 18 '05 #2

P: n/a
Yes sure i looked and i allready did it. But i wanted to create CSS styles
so i could use, reuse it and change it in an easy way.
That's what i am looking for. To format the way i just did but using css

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Have you even looked at the various properties that a Calendar control has? I am guessing no because everything you want to do can be set by simply
setting the various properties.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
Hello,

i am trying to create a .css file with several styles and apply them to

the
calendar control so i can change the look of:

1. Text Type and Format (Bold, Underline, etc)
2. Background Color
3. Foreground Color
4. Border Tickness
5. Border Color
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day, Weekend, etc.

Can you help me out?

Thank You,
Miguel


Nov 18 '05 #3

P: n/a
Miguel, I don't think you are following me here....

You don't use CSS directly on a server control such as the calendar. You
use whatever properties it exposes such as "SelectedDateStyle". When the
control is rendered to the browser, those properties will be translated into
the appropriate CSS commands since all server controls render to the client
as HTML/JavaScript/CSS.

If you use the properties, there is no reason you wouldn't still be able to
use, reuse and change it easily.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes sure i looked and i allready did it. But i wanted to create CSS styles
so i could use, reuse it and change it in an easy way.
That's what i am looking for. To format the way i just did but using css

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Have you even looked at the various properties that a Calendar control

has?
I am guessing no because everything you want to do can be set by simply
setting the various properties.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
Hello,

i am trying to create a .css file with several styles and apply them
to
the
calendar control so i can change the look of:

1. Text Type and Format (Bold, Underline, etc)
2. Background Color
3. Foreground Color
4. Border Tickness
5. Border Color
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day,

Weekend, etc.

Can you help me out?

Thank You,
Miguel



Nov 18 '05 #4

P: n/a
Actually, Im afraid you are misunderstanding the issue.

The control may have nice little properties in it's own proprietary
method of setting styles, but most of the world currently uses style
sheets. Why reinvent what already exists? I think it is a fair
question to ask how to use a style sheet to render anything in the
..NET suite of components. Some of the items have this as a feature,
but others do not. It really should be available everywhere. Just
include a CSSStyle property on anything that the programmer has
control over (everything???)

On Sun, 7 Mar 2004 18:41:20 -0500, "Scott M." <s-***@BADSPAMsnet.net>
wrote:
Miguel, I don't think you are following me here....

You don't use CSS directly on a server control such as the calendar. You
use whatever properties it exposes such as "SelectedDateStyle". When the
control is rendered to the browser, those properties will be translated into
the appropriate CSS commands since all server controls render to the client
as HTML/JavaScript/CSS.

If you use the properties, there is no reason you wouldn't still be able to
use, reuse and change it easily.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes sure i looked and i allready did it. But i wanted to create CSS styles
so i could use, reuse it and change it in an easy way.
That's what i am looking for. To format the way i just did but using css

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
> Have you even looked at the various properties that a Calendar control

has?
> I am guessing no because everything you want to do can be set by simply
> setting the various properties.
>
>
> "Miguel Dias Moura" <in************@27lamps.com> wrote in message
> news:uy*************@TK2MSFTNGP11.phx.gbl...
> > Hello,
> >
> > i am trying to create a .css file with several styles and apply themto > the
> > calendar control so i can change the look of:
> >
> > 1. Text Type and Format (Bold, Underline, etc)
> > 2. Background Color
> > 3. Foreground Color
> > 4. Border Tickness
> > 5. Border Color
> > 6. Calendar Size and each field size
> >
> > I want to change this items to all the areas, such as Title, Day,

Weekend,
> > etc.
> >
> > Can you help me out?
> >
> > Thank You,
> > Miguel
> >
> >
>
>



Nov 18 '05 #5

P: n/a
Hi Miguel,

I can support the claim that sometimes the styles do not apply correctly on
the calendar control. I encountered the same problem with a project here.
The month name sometimes would not render with the class I had applied. It
is a strange problem and I did not find a solution...

Éric.

"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
Hi, i did see the several CSSClass properties applyied to the various
aspects of its appearance but somehow when i used it, some of the styles
didn't change...that's why i started looking for options....maybe i did
something wrong.

Another problem i am having is to populate the calendar with events taken
from an Access Database.
I found a quite short example in
http://www.macromedia.com/devnet/mx/...et_calendar_05. html

However, this example is in C# and i am having trouble in changing it to VB which is how my web page is done.

Did you ever did something like this?

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
A calendar control is rendered as an HTML table with JavaScript attached

via
onClick event handlers.

To attach an external .css file, simply do what you've always done for
styling tables. However, even if you don't set any properties in the
control, it does come down with inline style applied to it, so you may

have
trouble overriding those with ones in the .css file.

Did you look at the fact that the control does have several "CSSClass"
properties for various aspects of its appearance. You could make a CSS
class and attach it to the various properties there.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
I will try to explain better.

In my web sites i set all text style, background, and so one using style sheets witch i save in a .css file or in a database.

What i would like to know if i could set a style like this:

Calendar {
dayFont:......
dayColor:....
dayBackgroundColor:...
weekendColor:....
...
}

Then i would apply this .css to the control.
This way, i could apply this .css to all the calendars i would create or even change the .css file to change the look of the calendar control

without
having to change the calendar control tag.

Are my ideas wrong?

Thanks,
Miguel

"Dan Brussee" <db******@nc.rr.com> wrote in message
news:gm********************************@4ax.com...
> Actually, Im afraid you are misunderstanding the issue.
>
> The control may have nice little properties in it's own proprietary
> method of setting styles, but most of the world currently uses style
> sheets. Why reinvent what already exists? I think it is a fair
> question to ask how to use a style sheet to render anything in the
> .NET suite of components. Some of the items have this as a feature,
> but others do not. It really should be available everywhere. Just
> include a CSSStyle property on anything that the programmer has
> control over (everything???)
>
>
>
> On Sun, 7 Mar 2004 18:41:20 -0500, "Scott M." <s-***@BADSPAMsnet.net> > wrote:
>
> >Miguel, I don't think you are following me here....
> >
> >You don't use CSS directly on a server control such as the calendar.
You
> >use whatever properties it exposes such as "SelectedDateStyle".
When
the
> >control is rendered to the browser, those properties will be

translated into
> >the appropriate CSS commands since all server controls render to
the client
> >as HTML/JavaScript/CSS.
> >
> >If you use the properties, there is no reason you wouldn't still be

able
to
> >use, reuse and change it easily.
> >
> >
> >"Miguel Dias Moura" <in************@27lamps.com> wrote in message
> >news:%2****************@tk2msftngp13.phx.gbl...
> >> Yes sure i looked and i allready did it. But i wanted to create CSS styles
> >> so i could use, reuse it and change it in an easy way.
> >> That's what i am looking for. To format the way i just did but

using css
> >>
> >> Thanks,
> >> Miguel
> >>
> >> "Scott M." <s-***@BADSPAMsnet.net> wrote in message
> >> news:u1**************@tk2msftngp13.phx.gbl...
> >> > Have you even looked at the various properties that a Calendar
control
> >> has?
> >> > I am guessing no because everything you want to do can be set by simply
> >> > setting the various properties.
> >> >
> >> >
> >> > "Miguel Dias Moura" <in************@27lamps.com> wrote in message > >> > news:uy*************@TK2MSFTNGP11.phx.gbl...
> >> > > Hello,
> >> > >
> >> > > i am trying to create a .css file with several styles and apply them
> >to
> >> > the
> >> > > calendar control so i can change the look of:
> >> > >
> >> > > 1. Text Type and Format (Bold, Underline, etc)
> >> > > 2. Background Color
> >> > > 3. Foreground Color
> >> > > 4. Border Tickness
> >> > > 5. Border Color
> >> > > 6. Calendar Size and each field size
> >> > >
> >> > > I want to change this items to all the areas, such as Title, Day, > >> Weekend,
> >> > > etc.
> >> > >
> >> > > Can you help me out?
> >> > >
> >> > > Thank You,
> >> > > Miguel
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
>



Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.