|
-
Apr 22nd, 2002, 12:51 PM
#1
Thread Starter
Member
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.
-
Apr 22nd, 2002, 01:43 PM
#2
Fanatic Member
-
Apr 22nd, 2002, 02:58 PM
#3
Frenzied Member
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.
-
Apr 22nd, 2002, 06:05 PM
#4
Fanatic Member
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>
-
Apr 22nd, 2002, 07:17 PM
#5
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|