Thank you for the response. Unfortunately, adding the class element is
not an option for my environment. I am a consultant and have no
control over the client's library.
As for referencing the stylesheet. I am able to access my stylesheet.
However, I was hoping to be able to define a form-level element to
apply styles. For example, I could create an element "sampleControl"
in my css. Then, each element in that control (i.e. fieldset, legend,
li...) can be associated with css elements like "sampleControl
legend".
rbr
On Sep 23, 2:42 am, "mushtaq ilyas" <[EMAIL PROTECTED]> wrote:
> 1.As far as your comapny libraray of controls is concerned i think u have to
> add class attribute to those controls and compile it again .since without
> class attribute u cant define style to individual control
>
> 2 As far as usercontrol is concerned u can add in your user control to
> access your steel sheet
>
> <link href="../Styles.css" rel="stylesheet" type="text/css" />
>
>
>
> On Mon, Sep 22, 2008 at 7:58 PM, rbr <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'd like to state in advance that I am relatively new to CSS. So, I
> > apologize if my questions are somewhat simplistic.
>
> > I have a .NET user control that I wrote that is just a form that takes
> > input that gets saved back to a db. Simple enough. Currently it is
> > laid-out using the good 'ol table and in-line style attributes. I
> > really prefer using CSS based layouts in my forms. I have used
> > fieldsets with lists for such forms in the past and like that method.
> > However, I am currently working at a company that has created,
> > esentially, their own library of html tags. Example:
>
> > <MyCompany:Panel ID="_pnlJobPostingMain" runat="server"
> > Style="text-align: center;">
> > <fieldset class="JobPosting">
> > <legend>
> > <MyCompany:Localize ID="_locJobPostingHeader"
> > runat="server"></MyCompany:Localize>
> > </legend>
> > <ol>
> > <li>
> > <MyCompany:Localize ID="_locJobTitle" runat="server"></
> > MyCompany:Localize>
> > <MyCompany:TextBox ID="_txtJobTitle" runat="server"></
> > MyCompany:TextBox>
> > </li>
> > <li>
> > <MyCompany:Localize ID="_locDepartment"
> > runat="server"></MyCompany:Localize>
> > <MyCompany:DropDownList ID="_ddlDepartment"
> > runat="server"></MyCompany:DropDownList>
> > </li>
> > <li>
> > <MyCompany:Localize ID="_locJobType" runat="server"></
> > MyCompany:Localize>
> > <MyCompany:DropDownList ID="_ddlJobType"
> > runat="server"></MyCompany:DropDownList>
> > </li>
> > <li>
> > <MyCompany:Localize ID="_locJobDuties"
> > runat="server"></MyCompany:Localize>
> > <uc:ucMultilineTextBox ID="_txtJobDuties"
> > runat="server" />
> > </li>
> > <li>
> > <MyCompany:Localize ID="_locJobRequirements"
> > runat="server"></MyCompany:Localize>
> > <uc:ucMultilineTextBox ID="_txtJobRequirements"
> > runat="server" />
> > </li>
> > </ol>
> > </fieldset>
> > </MyCompany:Panel>
>
> > Our first choice for every tag must come from this library
> > ("MyCompany" above) No class element exists for these tags. This poses
> > a problem with using CSS. At least I think so? How would I go about
> > styling the above sample?
>
> > My second question has to do with CSS styles in ascx files. Is there a
> > way to associate a particular clas to an entire control like you can
> > with a form element?
>
> > Again, I apologize if my questions are simplistic or just don't make
> > sense. Feel free to ask me for any further clarification.
>
> > Thank you all in advance!
>
> > rbr- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---