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

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,723
  2. tshad
    Replies:
    0
    Views:
    2,496
    tshad
    Jan 31, 2005
  3. Frederic HOUDE
    Replies:
    4
    Views:
    820
    Frederic HOUDE
    Aug 31, 2004
  4. phl
    Replies:
    1
    Views:
    4,703
    Martin Jay
    Jun 8, 2006
  5. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,371
    Mark Rae
    Dec 21, 2006
  6. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,838
    Smokey Grindel
    Dec 2, 2006
  7. cpp4ever
    Replies:
    3
    Views:
    583
    Francesco
    Sep 8, 2009
  8. Raymond Schanks
    Replies:
    0
    Views:
    834
    Raymond Schanks
    Apr 11, 2010
Loading...