Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,117 members, 7,818,330 topics. Date: Sunday, 05 May 2024 at 12:52 PM

Urgent- Banner Shift - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Urgent- Banner Shift (1033 Views)

How Do I Place Revenuehits Banner Code On My Blog / Help Mee Create A Banner For Nairaland For 200 Naira Credit / Contact Us For Your Web Banner Design (2) (3) (4)

(1) (Reply) (Go Down)

Urgent- Banner Shift by xdos(m): 3:53am On Dec 27, 2006
I have a problem with my website banner. If you view this site www.ensaca.org from different browser settings like 800 x 600, 1024 by 768. etc, my banner shift from it'z normal prosition. what do you think is the problem?
Re: Urgent- Banner Shift by adewaleafolabi(m): 7:08am On Dec 27, 2006
did u use tables when u built the site?
Re: Urgent- Banner Shift by hola2ng(m): 11:54am On Dec 27, 2006
@xdos

Go through your source codes again.
The Div Tag (layout objects) that the image is in, is the source of your worries.
Try repositioning the tag in your HTML editor.
Re: Urgent- Banner Shift by Afam(m): 12:55pm On Dec 27, 2006
Center the content within the tags that contains the banner be it the div or td tag.
Re: Urgent- Banner Shift by my2cents(m): 1:01pm On Dec 28, 2006
xdos,

In the end, the entire page needs a redesign. Regardless sha, rather than use an html editor for this, I say letz do some "surgery" cool

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="574">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.html"><img src="images/but01.gif" width="114" height="30" alt="" border="0"></a></td>
<td><a href="aboutus.html"><img src="images/but02.gif" alt="" width="114" height="30" border="0"></a></td>
<td><a href="mission.html"><img src="images/but03.gif" width="112" height="30" alt="" border="0"></a></td>
<td><a href="http://www.ensaca.org/squirrelmail"><img src="images/but04.gif" width="116" height="30" alt="" border="0"></a></td>

<td><a href="contactus.html"><img src="images/but05.gif" width="117" height="30" alt="" border="0"></a></td>
</tr>
</table> </td>
</tr>
</table>
<div></div>
<div><img src="images/banner.gif" width="575" height="97"></div></td>
</tr>
</table>

I won't bother testing this and will leave this to you/others, but this should work (man! I hate tables grin):
- remove the div tags surrounding the banner image
- remove the empty div tags (if dynamically generated, include them within ur logic)
- remove the banner altogether from where it is now
- add another row and dump the banner, in its own cell, in there. In other words:
<tr><td><img src="images/banner.gif" width="575" height="97"></td></tr>
This should work. One more thing though: Up top the td width is 574 yet the banner width is 575. This will throw off your layout by 1 pixel. In fact, if you look at the page closely, using FF at least, you will notice it is sticking out a little. I would suggest you make them the same width for both the banner and the td.

Also the menus width total is 571 if my math is right. I would suggest adding 1 pixel to each menu to make it equal 575.

Note this is just bandaging. Again, there is a better way to implement this, way more efficient - think inline lists, using text and an orange background. think using % widths for the overall menu and width:auto for the individual items. Your code shows the inherent problem with using an html editor in my opinion. I personally go for coding by hand - if you don't understand how the underlying code works/implement unit testing, when you run into problems, you won't know how to solve them.

Remember: Just like you can't trust auto-suggest in MS Word to help you with correct grammar all the time, you can't trust an html editor 100% of the time either. Coding by hand may take longer, but you learn much better. In the future, I would suggest you switch to the code tab of your editor.

I hope this helps. For more, give www.webmastersofafrica.com a try wink

I hope this helps.
Re: Urgent- Banner Shift by xdos(m): 8:37pm On Dec 30, 2006
Thank all. I think that problem was a layer problem. I had to recode using div tag, Thanks for the contribution.
Re: Urgent- Banner Shift by dandagreat(m): 7:48pm On Jan 08, 2007
hey man i love the template pf the website.Pls can i know u downloaded it from?i need one pls.
Thanks man

(1) (Reply)

Online Payment Solutions / Making Online Forms User-friendly / Nigeria Internet Group

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 18
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.