Css

Discussion in 'Co-op Advertising Network' started by rprosser, Jan 30, 2005.

  1. #1
    I've been trying to use a style sheet to format the ads., but without success.

    I have the following code and CSS settings:

    
    <p align="center" class="ad-network">Sponsors<br>
    <?php
    /* http://www.digitalpoint.com/tools/ad-network */
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network.php');
    	echo $ad_network[0] . "          ";
    	echo $ad_network[1] . "          ";
    	echo $ad_network[2] . "          ";
    	echo $ad_network[3] . "          ";
    	echo $ad_network[4] . "          ";
    ?>
    </p>
    
    PHP:
    
    .ad-network {
    margin : 8px;
    font-family : Trebuchet MS;
    font-size : 12px;
    color : green;
    text-decoration : underline;
    }
    
    .ad-network.A {
    font-weight : bold;
    font-size : 10px;
    font-family : Arial;
    color : red;
    }
    
    Code (markup):
    The 'Sponsors' text is green etc. as expected, but the links refuse to be governed by the rules for the enclosing paragraph. Any ideas as to how I can make this work?

    Ideally, the ad_network.php file should include a suitable class definition, IMO.


    Thanks ...

    Richard Prosser
     
    rprosser, Jan 30, 2005 IP
  2. xml

    xml Peon

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .ad-network.A -> .ad-network A
     
    xml, Jan 30, 2005 IP
  3. rprosser

    rprosser Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks! I had worked that out for myself, and I was just about to post my correction.
     
    rprosser, Jan 30, 2005 IP