Newbie Having Fits With PHP Banner Rotation Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
VanceVP
Forum Newbie
Posts: 3
Joined: Mon Dec 08, 2008 8:48 pm

Newbie Having Fits With PHP Banner Rotation Script

Post 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
Reviresco
Forum Contributor
Posts: 172
Joined: Tue Feb 19, 2008 4:18 pm
Location: Milwaukee

Re: Newbie Having Fits With PHP Banner Rotation Script

Post 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?
Post Reply