locked
Multiple CSS Friendly Control Adapters RRS feed

  • Question

  • User-541829030 posted

    Greetings!

    I have an ASP.NET 3.5 CSS friendly menu control adapter in use that works perfectly.  However, whenever I drop down a DataList or TreeView onto the page, I am not able to apply any direct styling to the object.  And when I try changing the control to get its styling from a CSS like the menu does, that doesn't work either.  Anyone know what's going on?

    Thanks much,

    albarossa

    Thursday, April 10, 2008 6:43 PM

All replies

  • User-541829030 posted

    Hallo!

    I was able to get the TreeView to respond to style changes by copying and pasting the source code of a sample TreeView (from the MS tutorial).  However, no matter what I do, I am not able to get the plus/minus signs to render.  When I start my project, the treeview appears but with no plus or minus signs.  I've toggled on every single attribute that should make this work but it doesn't.  Should I post this issue in a different thread?  Anybody know what in tarnation is going on?

    Alba Ros Jr.

    Friday, April 11, 2008 3:49 PM
  • User-541829030 posted

    I found the problemo, the style sheet I was using contained the following:

    .MyDarnTree div.AspNet-TreeView .AspNet-TreeView-Collapse

    {

    background: url(expand.gif) 0 0 no-repeat;

    width: 15px;

    margin-right: 5px;

    float:left;

    cursor: pointer;

    font-family: Courier;

    font-size: large;

    line-height: 15px;

    }

    So the sheet was overwriting any formatting changes I was making in Source.

    Friday, April 11, 2008 4:58 PM