Ask a Question related to ASP.NET Building Controls, Design and Development.
-
DalePres #1
Applying styles from multiple sources
Is there a way to determine the order or priority of applying styles in a
custom web control? For example, I have a control with default style
settings for many features, and exposed public properties to change those
settings as well. It is easy enough to set the value of the public property
to the default, then use the public property to render my control.
Where it becomes more confusing is when applying style sheets. If a
developer uses my control and applies a style sheet, I have no way of
knowing which style parameters he has applied in the style sheet. Therefore
I don't know which default styles to leave out of my rendering.
So the bottom line is, I think, how to prioritize and apply styles from
default styles, public property styles, and css class styles.
Thanks,
Dale
DalePres Guest
-
Newbie: Creating / Applying Styles
Possible newbie question: Why is that when I create a style, be it Paragraph or Character, I select the text I want and it creates the style -... -
Applying styles to an image
Hi! I am having the same problem, only with contribute 3... Once an image is clicked on or inserted, the style-selecting dropdown disappears,... -
Applying CSS styles to images in C3
When Contribute 3 first came out, one of its new functionalities was listed as the following: The ability to add styles to images . for example... -
applying styles to images?
i have a style (.imgBorder) which puts a 1px border around all images using that class. problem is i cant see how to apply that style to an image... -
Applying CSS styles to form objects
I am trying to apply a certain BORDER style to text boxes, I have tried all of the settings but still cannot get this look (please look at text box... -
Dale #2
2nd try. Anyone with thoughts on merging styles from css and styles?
Second try here... Microsoft, Where're those 48 hour responses advertised in
my MSDN subscription?
Is there a way to determine the order or priority of applying styles in a
custom web control? For example, I have a control with default style
settings for many features, and exposed public properties to change those
settings as well. It is easy enough to set the value of the public property
to the default, then use the public property to render my control.
Where it becomes more confusing is when applying style sheets. If a
developer uses my control and applies a style sheet, I have no way of
knowing which style parameters he has applied in the style sheet. Therefore
I don't know which default styles to leave out of my rendering.
So the bottom line is, I think, how to prioritize and apply styles from
default styles, public property styles, and css class styles.
Thanks,
Dale
Dale Guest
-
Iain #3
Re: 2nd try. Anyone with thoughts on merging styles from css and styles?
property> Is there a way to determine the order or priority of applying styles in a
> custom web control? For example, I have a control with default style
> settings for many features, and exposed public properties to change those
> settings as well. It is easy enough to set the value of the public(I'm not microsoft, and am asking questions too - so don't expect too> to the default, then use the public property to render my control.
>
much!).
Dale - I rather think that what happens will happen exactly as if all the
style elements had been included in the resulting html. In fact that may be
exactly how it works. Of course the style parse may well ignore overriden
elements, but it won't know which they are for elements in style sheets
defined outside .net.
So in short I wouldn't worry about it. Any specific style="" in an element
should override higher elements.
Accordingly you should look at the style prioritisation rules.
There's a little bit on this in 'Dynamic HTML' by Danny GOodman and no doubt
an incomprehensible standard at W3C somewhere.
Iain
Iain Guest
-
q@q.com #4
Re: 2nd try. Anyone with thoughts on merging styles from css and styles?
Styles trickle down.
or
think bottom-up.
an embedded style overrides an inline style,
which in turn overrides linked stylesheets.
hope this helps
Dale wrote:
> Second try here... Microsoft, Where're those 48 hour responses advertised in
> my MSDN subscription?
>
> Is there a way to determine the order or priority of applying styles in a
> custom web control? For example, I have a control with default style
> settings for many features, and exposed public properties to change those
> settings as well. It is easy enough to set the value of the public property
> to the default, then use the public property to render my control.
>
> Where it becomes more confusing is when applying style sheets. If a
> developer uses my control and applies a style sheet, I have no way of
> knowing which style parameters he has applied in the style sheet. Therefore
> I don't know which default styles to leave out of my rendering.
>
> So the bottom line is, I think, how to prioritize and apply styles from
> default styles, public property styles, and css class styles.
>
> Thanks,
>
> Dale
>
>
>
>q@q.com Guest
-
DalePres #5
Re: 2nd try. Anyone with thoughts on merging styles from css and styles?
Thanks all for your advice on this one.
Dale
<q@q.com> wrote in message news:40E268A6.5020004@q.com...advertised in> Styles trickle down.
>
> or
> think bottom-up.
>
> an embedded style overrides an inline style,
> which in turn overrides linked stylesheets.
>
> hope this helps
>
> Dale wrote:
>> > Second try here... Microsoft, Where're those 48 hour responsesa> > my MSDN subscription?
> >
> > Is there a way to determine the order or priority of applying styles inthose> > custom web control? For example, I have a control with default style
> > settings for many features, and exposed public properties to changeproperty> > settings as well. It is easy enough to set the value of the publicTherefore> > to the default, then use the public property to render my control.
> >
> > Where it becomes more confusing is when applying style sheets. If a
> > developer uses my control and applies a style sheet, I have no way of
> > knowing which style parameters he has applied in the style sheet.>> > I don't know which default styles to leave out of my rendering.
> >
> > So the bottom line is, I think, how to prioritize and apply styles from
> > default styles, public property styles, and css class styles.
> >
> > Thanks,
> >
> > Dale
> >
> >
> >
> >
DalePres Guest



Reply With Quote

