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.
Printable View
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.
read this thread:
http://www.vbforums.com/showthread.p...hreadid=163980
The definitive resource on CSS: The W3C.
An example:
I think that is right.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>
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>
also check out http://www.brainjar.com
that guy really uses CSS to the max