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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TS
    Replies:
    2
    Views:
    7,023
  2. Don Wash
    Replies:
    3
    Views:
    10,920
    Don Wash
    Aug 7, 2004
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,073
    Smokey Grindel
    Dec 2, 2006
  4. cpp4ever
    Replies:
    3
    Views:
    388
    Francesco
    Sep 8, 2009
  5. Raymond Schanks
    Replies:
    0
    Views:
    557
    Raymond Schanks
    Apr 11, 2010
Loading...

Share This Page