0

For my masterpage, I embedded an image on HTML DIV. Background image did appear, but with 4 white border-like surrounding my image, where I didn't apply any.

<head runat="server">
    <title>Untitled Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server" >

    <div style="border-width: thin; border-style: inset; padding: 0px; margin: 0px; top: 89px; left: 169px; position: absolute; height: 570px; width: 777px; background-color: #FFFFFF; z-index: auto;">
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

        </asp:ContentPlaceHolder>
    </div>
    <div style="height: 757px; background-image: url('<%= imgPath %>'); background-repeat: repeat-x; background-attachment: fixed; position: static;">
    </div>
    </form>
</body>
</html>
2
  • However, even removing the first div doesn't solve it. Commented May 30, 2012 at 16:11
  • Can you use firebug and check what are the styles applied to the image containing div ?? Commented May 30, 2012 at 16:15

1 Answer 1

1

Try this:

<body style="border: 0px none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;">
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.