Results 1 to 5 of 5

Thread: CSS thing

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    56

    CSS thing

    Could you give an example how this CSS thing works if I want to put an element in the top of the document without any space left above the element.

  2. #2

  3. #3
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    The definitive resource on CSS: The W3C.

    An example:

    Code:
    <html>
      <head>
        <title>Foo</title>
        <style type="text/css">
          .Header {
            position:  absolute;
            top: 0px;
            margin: 0px;
          }
        </style>
      </head>
      <body>
        <div class="Header">
          <p>Foo.</p>
        </div>
      </body>
    </html>
    I think that is right.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  4. #4
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    another example:

    Code:
    <html>
      <head>
        <title>Foo</title>
        <style type="text/css">
          something {font-family: verdana; font-size: 10px}
        </style>
      </head>
      <body>
    
        <font class="something"></font>
    
      </body>
    </html>

  5. #5
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    also check out http://www.brainjar.com

    that guy really uses CSS to the max

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width