A
Alex Maghen
I need some help figuring out how to properly use CSS for layout in a
MasterPage environment in ASP.NET 3.5. Imagine I have a VERY simple
MasterPage layout with 4 DIVs ("header", "LeftNav", "PageBody", and
"footer"). I'm then going to use CSS to define #header{}, #LeftNav{} etc.
styles for layout.
All that is fine. But now let's say that I want to be able to access the
properties of these DIVs from the server side. What I would do is set the
DIVs to 'runat="server"'. The problem is that as soon as I do that, the IDs
of the DIVs get mangled and then things like the #header{} style definition
in my CSS is not found when the page is rendered.
How do I handle this?
Alex
MasterPage environment in ASP.NET 3.5. Imagine I have a VERY simple
MasterPage layout with 4 DIVs ("header", "LeftNav", "PageBody", and
"footer"). I'm then going to use CSS to define #header{}, #LeftNav{} etc.
styles for layout.
All that is fine. But now let's say that I want to be able to access the
properties of these DIVs from the server side. What I would do is set the
DIVs to 'runat="server"'. The problem is that as soon as I do that, the IDs
of the DIVs get mangled and then things like the #header{} style definition
in my CSS is not found when the page is rendered.
How do I handle this?
Alex