Page 1 of 1

Newbie Having Fits With PHP Banner Rotation Script

Posted: Thu Dec 11, 2008 4:13 pm
by VanceVP
I am still fairly new at all of these new codes for putting together web pages. I have been trying to teach myself CSS (and I'm some progress) and am trying to overhaul the website for a club I belong to.

Anyway, I have the site working fairly well, but now I'm trying to get a simple php banner rotation script to work on the site, but I can't figure out how to get it positioned on the page where I want it. I am hoping one of the experts here might be able to help me out with this - if this is the right place for me to be.

If you look at the test page HEREthat I have the script on, you can see immediately that it is not positioned corretly. I am trying to get it at the bottom of the page just about the copyrite notice. With my limited knowledge, I have tried everything I know to get it where I want it and it's just driving me nuts.

I guess, other than knowing how to position it, I would like to know if, when using php, do the rules of CSS change? I'm usually able to get things positioned without this kind of problem, but nothing seems to be working.

If anyone can offer any assistance, I would really appreciate it.

Thanks,
VanceVP

Re: Newbie Having Fits With PHP Banner Rotation Script

Posted: Thu Dec 11, 2008 5:09 pm
by Reviresco
CSS:

Code: Select all

.banner {
clear:both;
}
HTML:

Code: Select all

<div class="banner">
<a href="http://thebams.org/advertise.html"><img src="http://thebams.org/banners/advertise.gif" ALT="Click here for Creative Business Solutions" border="0" width="519" height="81"/></a>
</div>
Skip the absolute positioning and table.
Please note that there are no styles "left-margin" or "bottom-margin" -- they are "margin-left" and "margin-bottom".
Also, not sure why you gave it "width: 468px;" when the banner is 519px wide?