Developer Forums | About Us | Site Map
Search  
HOME > TUTORIALS > SERVER SIDE CODING > ADMINISTRATION TUTORIALS > PHPADSNEW TEXT AD WITH CSS


Sponsors





Useful Lists

Web Host
site hosted by netplex

Online Manuals

phpAdsNew Text Ad With CSS
By Matthew Drouin - 2003-10-13 Page:  1 2 3 4 5 6 7 8

Setting Up The CSS

We need to add the css tags to the page or to the css include file that we will be using so that when we put the invocation code on the page the ads will look the way we want them to.

Here is the css code I am using, and this is how it would look if you were to include it in a css file.


span.testText {
  
background-color: #000000;
  
padding: 2px;
}
span.testText {
  
color: #FFFFFF;
  
text-decoration: underline;
}

?>

To put the code in a css document is simple you just need to cut and paste it. You can make any changes to this code you want to make the ad look the way you need it to. If you are already using a css document then you know that you just need to do the following to include the css file.


<link rel="stylesheet" type="text/css" href="http://www.domain.com/path/default.css" />

?>

If you want to embed it on a page just do the following. Chances are, if you want the ad to look different on different pages of your site that you will use this option.


<style type="text/css">
span.testText {
  
background-color: #FFFFFF;
}

span.testText a {
  
color: #000000;
  
text-decoration: underline;
}
</
style>

?>


View phpAdsNew Text Ad With CSS Discussion

Page:  1 2 3 4 5 6 7 8 Next Page: Setting Up The Text Ad Campaign

Copyright 2003-2004 Matthew Drouin. All rights reserved.


Copyright 2004-2017 GrindingGears.com. All rights reserved.
Article copyright and all rights retained by the author.