View Full Version : Aligning vb to the top
Emfulz
08-05-2008, 03:56 AM
How do I put my vbulletin to the very top
{ margin-top:0; }
isnt it something like that. but where do i put this at.
Opserty
08-05-2008, 08:29 AM
AdminCP > Styles & templates > Style Manager > Main CSS
In the first set of boxes there will be something likemargin:5px 10px 5px 10px; Or something similar, you need to change that to:
margin:0;
Emfulz
08-06-2008, 09:30 PM
Yes I've tried that and yet its failed.
RLShare
08-06-2008, 09:38 PM
On the 'All style options' page of your skin add this to the extra CSS attributes box
margin: 0px;
padding: 0px;
If it does not work then you would need to show us the page as its something else causing it to be margined from the top.
Emfulz
08-07-2008, 04:23 AM
Okay i tried that and I put it in like every Part, body, header, footer, everything. Still nothing my website is http://www.360revamped.com/forums/ Im making this style as I go its a custom made :D
RLShare
08-07-2008, 05:36 AM
First off, why do you have multiple head tags and body tags? You do not need to add your own body or head tags... The HeadInclude template is in your header and the header is the right after the opening body tag.
Second, you can add your own CSS to the Extra CSS attributes on the all style options page and the doctype as well. No need to put it in the header or anywhere else.
Opserty
08-07-2008, 10:00 AM
<tbody><tr>
<td colspan="3"> </td>
</tr><tr><td rowspan="2"> </td>
<td rowspan="2"> </td>
<td>
<div align="center"></div></td>
</tr>
<tr>
<td><img id="index_06" src="images/index_06.jpg" alt="" width="304" height="1"></td>
</tr>
<tr>
</tr></tbody>
The code you posted in your original post is invalid, so it won't do anything. Best to remove it.
Princeton
08-07-2008, 01:48 PM
eeek, you need someone to look into your HTML - it's horrible
Emfulz
08-07-2008, 05:03 PM
Lol, I'm quite aware its horrible, that is why I needed help :)
--------------- Added 1218132321 at 1218132321 ---------------
First off, why do you have multiple head tags and body tags? You do not need to add your own body or head tags... The HeadInclude template is in your header and the header is the right after the opening body tag.
Second, you can add your own CSS to the Extra CSS attributes on the all style options page and the doctype as well. No need to put it in the header or anywhere else.
I'm not a professional Coder, I'd really appreciate it if you cannot handle my stupidity with Coding, then you no longer post in this thread. Thanks
Princeton
08-07-2008, 05:30 PM
this is not a simple change - you need someone to look into your style
(most likely, you have problems in multiple templates)
for starters, remove the duplicate <head> and <body> tags
etc, etc
Emfulz
08-07-2008, 05:41 PM
I only edited the header though.
RLShare
08-07-2008, 06:16 PM
lol@ that repsonse. I told you about some problems in your coding and told you how to fix them. How you took offense to that I have no Idea.
Btw to start fixing it... you will need to remove all of this code from your header....
<!-- BEGIN TEMPLATE: header -->
<!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">
<head>
<title>header</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<style type="text/css">
<!--
{ margin-top:0; }
</style></head>
<body bgcolor="#FFFFFF">
<body style="margin-top:0px;">
Emfulz
08-07-2008, 08:39 PM
Okay, I've removed that still it remains about the same,
i'll open up dream weaver and see what I can take out regarding the bad codes.
Opserty
08-07-2008, 08:41 PM
If you are trying to code using the "Design" view, you are just going to be adding more bad code.
Emfulz
08-07-2008, 08:46 PM
:D I got it thanks guys :)
no i'm not that nooby I had to just add
<style type="text/css">
body{margin-top:0px;
margin-bottom:0px;}
</style>
In my header Template
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.