all groups > asp.net webcontrols > december 2005 >
You're in the

asp.net webcontrols

group:

Label Style


Label Style kpg
12/13/2005 6:54:22 AM
asp.net webcontrols:
Hi all,

I am long time programmer but a novice in ASP.NET.

My main problem with coding is the style property
of web controls.

In this case it is the Label (UI.WebControls.Label).

Whereas I am used to setting properties to manipulate
the apperance of controls, with HTML it's all in the style.

My question: Where can I find a comprehensive list of
all style attribute for a given control?

This seems like a resonable request (to me) since style is
so all-important, but the documentation seems to end at
the style element itself (I assume becase the actual style
value is HTML, not ASP.NET).

Others have given me a particular style that in response
to a sepeific request, sometime they work, sometimes they don't.

Without a full list I'm basically programming in the dark, and
it is driving me nuts!



TIA
Re: Label Style kpg
12/13/2005 7:34:42 AM
Well, I found this:

http://www.w3.org/TR/CSS1

Quite helpful.

It seems the style attribute was introduced with HTML 4.0
and it allows for the in-line use of CSS by default.

Learn something new everyday :)

Re: Label Style kpg
12/13/2005 7:44:01 AM
Which brings me to another point.

I type: vertical-align:center

Well, this is worng, it should be:

vertical-align:middle

but I don't know this, well in HTML-land
nothing complains, no syntax erros, no
warnings, becuase browsers just ignore erros.

Hey, that's great for end users, but what about
developers?


Is there no way to validate a page for correctness?

Because of the extensible nature of HTML I assume such
validations would need to be performed against a known
standard, like XML validation.

I guess I am just not aware of the tools available and
what I need to use to streamline this whole web dev
process.


Re: Label Style Christopher Reed
12/13/2005 9:44:10 AM
You might also want to get familiar with the .NET Framework SDK
documentation. It comes with SDK download or you can access through the
MSDN website.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

[quoted text, click to view]

Re: Label Style kpg
12/13/2005 10:40:09 AM
Christopher Reed <carttu@nospam.nospam> said something like

[quoted text, click to view]

Yeah, looked in there. Plenty of info, but no list of style possibilities,
Re: Label Style kpg
12/14/2005 5:56:08 AM
Christopher Reed <carttu@nospam.nospam> said something like

[quoted text, click to view]

Re: Label Style Christopher Reed
12/14/2005 7:47:09 AM
My point was is that you need to look at the documentation and also look
into the QuickStart tutorials. While a list is all well and good, you need
to research styles as they are used in context with ASP.NET.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

[quoted text, click to view]

Re: Label Style Christopher Reed
12/14/2005 9:19:44 PM
Additionally, while the functionality regarding styles within ASP.NET appear
to be consistent, when the various controls are rendered into HTML, the way
the actual styles function are different as well. If you're looking to use
stylesheets with list controls such as datalists and gridviews/datagrids,
you'll need to do some try and error to figure out how the styles are
actually interacting with the control.

Also, look at this: http://www.w3.org/Style/CSS/. The link you mentioned
earlier is for CSS1, while this link is more general and provides links to
all of the current versions, including the proposed CSS3.

For a really cool website, go to http://www.csszengarden.com.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."


[quoted text, click to view]

AddThis Social Bookmark Button