Declarative syntax for different borders in server controls

Discussion in 'ASP .Net' started by Nathan Sokalski, Apr 2, 2008.

  1. 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.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
     
    Nathan Sokalski, Apr 2, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George
    Replies:
    9
    Views:
    4,975
    George
    Oct 25, 2004
  2. weight watcher
    Replies:
    4
    Views:
    439
    Jonathan N. Little
    Jun 24, 2005
  3. drop
    Replies:
    0
    Views:
    291
  4. muler

    C++ declarative syntax

    muler, Apr 12, 2011, in forum: C++
    Replies:
    3
    Views:
    282
    Victor Bazarov
    Apr 12, 2011
  5. muler

    C++ declarative syntax

    muler, Apr 12, 2011, in forum: C++
    Replies:
    2
    Views:
    274
    muler
    Apr 12, 2011
Loading...

Share This Page