Declarative syntax for different borders in server controls

  • Thread starter Nathan Sokalski
  • Start date
N

Nathan Sokalski

In many databound controls (DataList, Menu, etc.), there are controls that
are used to specify the style for certain scenarios (for example, the
DataList has ItemStyle). Several of the properties of these controls, such
as BorderWidth, BorderColor, and BorderStyle, only allow you to specify one
value, but CSS, which is where the values from these properties are used,
allows up to four (top, bottom, left, and right). Therefore, there is no way
to declaratively assign different values to the four sides without creating
a CSS class. Is there a way around this? Is it something that is changed in
3.5 (I am still using 2.0)? I realize that in general CSS classes are better
than generating a style attribute, but I still think that server controls
that offer these properties should offer a way to specify different values
for all four sides.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top