MamaLoca
Programmer
- Aug 29, 2005
- 48
HI, I just stumbled across you site while looking for a solution to a CSS issue I'm having.
I am trying to add some advertisments to a website I'm working on. I have created a CSS element to contain the ads. the container works just fine with text in it. the red outline is the element.
But then I want to use a function to generate random ads from a database but when I add the function call it is no longer within the element. instead the generated content is top left.
This is the line in the PHP file
and here is the CSS element definition:
I'm at a lose here, why doesn't CSS play nice with PHP in this case?
I am trying to add some advertisments to a website I'm working on. I have created a CSS element to contain the ads. the container works just fine with text in it. the red outline is the element.
But then I want to use a function to generate random ads from a database but when I add the function call it is no longer within the element. instead the generated content is top left.
This is the line in the PHP file
Code:
<div id=\"rightcontent\" style=\"color:white; font-size:x-large; \">".ranAd()."</div>
and here is the CSS element definition:
Code:
#rightcontent {
float:right;
top:0px;
overflow:hidden;
border-color:red;
border-style:dotted;
z-index:-1;
}
I'm at a lose here, why doesn't CSS play nice with PHP in this case?