I'm relatively new to ASP.NET and Visual Web Developer 2008.
I'm using a Master page with one content place holder.
There is a Cascading Style Sheet file which is being refered by the master page file as follws
"<link href="myStyleSheet.css" rel="Stylesheet" type="text/css"/>"
Part of the Style sheet as follows:
Expand|Select|Wrap|Line Numbers
- .textbox
- {
- background-color: #FF6600;
- font-family: 'Book Antiqua';
- position: absolute;
- height: 18px;
- width: 268px;
- top: 664px;
- left: 201px;
- }
Expand|Select|Wrap|Line Numbers
- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="server">
- <asp:TextBox ID="txtDesc" runat="server" CssClass="textbox"></asp:TextBox>
- <asp:TextBox ID="txtRef" runat="server" CssClass="textbox"></asp:TextBox>
- </asp:Content>
When ever I put another textbox with same CssClass it appears exactly on top of the previous textbox. Basically both of them share the same top and left attributes and their values. So when ever I try to move the textbox (left and top values change automatically) only that one can be seen.
-----------------------------------------------------------------------------
Moreover If I put another dropdown list or text area they are attached with each other with white strip. (As in the attachment)
-----------------------------------------------------------------------------
My other problem is although I created the server controls in content place holder area they are moving towards left and display on left (When displaying on the browser)
Thnaks a lot, Any help really appriciated...............