PDA

View Full Version : Banner help...



Bear-Max
18-06-2005, 03:02 PM
How can I get my website so that there is no space between the top of my page and my banner?

Rep added if your solution works :P

Mentor
18-06-2005, 03:10 PM
Ummm that depends how your websites done, could be the removal or a <br> or setting padding to 0 on tables?

What your site, and i can proably make a better suggestion?

Bear-Max
18-06-2005, 03:14 PM
I haven't actually got it on the internet yet, but this is the code I've used so far:

<html>
<body bgcolor="#B3AD94"><div align="center">
<img valign="top" src="jadedempathy.jpg">
<table bgcolor="#3B5443" cellpadding="0" cellspacing="0" width="766" valign="top">
<tr height="500">
</html>

The banner jadedempathy.jpg just wont touch the top of the browser window, and I've tried using valign but it hasn't worked :(

Mentor
18-06-2005, 03:39 PM
Ok after playing around with the css a bit this should both center and put the image at the abosulte top.




<html>

<style>
.top {
top: 0px;
position: absolute;
margin-left: auto;
margin-right: auto;
width: 100%;

}
</style>

<body bgcolor="#B3AD94"><div align="center">


<div class="top" ><img valign="top" src="jadedempathy.jpg"></div>


<table bgcolor="#3B5443" cellpadding="0" cellspacing="0" width="766" valign="top">
<tr height="500">
</html>

Bear-Max
18-06-2005, 03:47 PM
Aieeeeeeeeeeeeeee.... Thank you :D

+Rep

Want to hide these adverts? Register an account for free!