1.11M Members

Button on the master page

 
0
 

Hi,

I am designing a website in asp.net. In the master page buttons change their postion and overlap when rendered in a browser. Please help me out.
Thank you in advance

 
0
 

How can we help if you haven't provided anything relevant to work with?

 
0
 

Youi should provide proper css for all the buttons either they are fixed or floating. First check it out otherwise post related code here...

 
0
 
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Admin Login.aspx.cs" Inherits="Admin_Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style2
    {
        width: 100%;
        height: 652px;
    }
    .style3
    {
        height: 108px;
    }
    .style4
    {
        width: 363px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style2">
    <tr>
        <td bgcolor="White" class="style3" colspan="2">
            <asp:Label ID="Label5" runat="server" BackColor="White" BorderWidth="0px" 
                ForeColor="Black" 
                style="z-index: 1; left: 3px; top: 46px; position: absolute; font-size: large; font-weight: 700; font-family: Calibri; vertical-align: middle; letter-spacing: 1pt" 
                Text="Welcome!"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style4">
            &nbsp;</td>
        <td>
            <div style="z-index: 1; left: 433px; top: 182px; position: absolute; height: 289px; width: 519px">
            </div>
            <asp:LinkButton ID="LinkButton1" runat="server" 
                style="z-index: 1; left: 437px; top: 499px; position: absolute; vertical-align: middle; letter-spacing: 1pt; font-size: small; font-weight: 700; font-family: Calibri; height: 19px">Forgot Password</asp:LinkButton>
            <asp:Button ID="Button16" runat="server" BorderColor="#0066FF" 
                BorderStyle="Groove" BorderWidth="2px" ForeColor="Black" 
                style="z-index: 1; left: 862px; position: absolute; height: 26px; font-size: medium; font-weight: 700; font-family: Calibri; vertical-align: middle; letter-spacing: 1pt; top: 497px" 
                Text="Sign In" />
        </td>
    </tr>
</table>
</asp:Content>

above is the code for my master page,the buttons that are the misplaced are the menu items :)

 
0
 

check ur CSS file,

 
0
 

It does not seems to be your master page content Because your menu items Style or css is not mentioned anywhere so plz provide ur masterpage once.I think this is your page content which inherits the master page.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: