Why is the border on top much wider

Discussion in 'ASP .Net' started by Tony, Nov 12, 2011.

  1. Tony

    Tony Guest

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs"
    Inherits="Default2" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    Hello!

    <head runat="server">
    <title></title>
    <style type="text/css">
    div
    {
    background-color:Red;
    border:10px solid black;
    }
    </style>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>

    <h1>h1 Text</h1>
    </div>
    </form>
    </body>
    </html>

    //Tony
     
    Tony, Nov 12, 2011
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.