View Full Version : How do I
Liburd
05-05-2008, 10:59 PM
How do i bring my content so it touches the top of my screen? whats the code :)
thanks
Agnostic Bear
05-05-2008, 11:03 PM
How do i bring my content so it touches the top of my screen? whats the code :)
thanks
Uhh, I assume you mean this:
<style type="text/css">
.body {
margin-top: 0px;
}
</style>
Protege
06-05-2008, 06:27 AM
You could do what the jew said but also
<body topmargin="0"> using the topmargin attribute setting it to zero, on the body element. You can also use this for a page inside an iframe.
NEW-START
06-05-2008, 03:35 PM
You could do what the jew said but also
<body topmargin="0"> using the topmargin attribute setting it to zero, on the body element. You can also use this for a page inside an iframe.
CSS M'DEAR!!!!!!!!
Jam-ez
06-05-2008, 03:49 PM
You don't.
NEW-START
06-05-2008, 04:19 PM
You don't.
That is not in the slightest bit funny. :rolleyes:
That is not in the slightest bit funny. :rolleyes:
Rofl, agreed. Useless post by purple guy >=/
Excellent
06-05-2008, 05:16 PM
margin:auto; In the body tag.
Protege
06-05-2008, 05:26 PM
You don't have to use CSS to do everything.
Excellent
06-05-2008, 05:28 PM
You don't have to use CSS to do everything.It's easier to shove it in the css tho.
Protege
06-05-2008, 05:32 PM
CSS =
<style>
.body {
margin-top: 0px;
}
</style>
in body element
<body topmargin="0">
Unless your styling the whole thing via CSS then yea it would be easier.
Hypertext
06-05-2008, 08:22 PM
(x)html methods/attributes like this are becoming more and more deprecated. Best to use CSS, as you can apply this to certain elements aswell.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.