Need some help with php and a style sheet

Discussion in 'PHP' started by Mr.Bill, Jan 18, 2008.

  1. #1
    I have an issue with a div giving all links a line underneath a dotted one.

    Here is partial of the php what I need is for one section to use a different style for its links then the rest.

            <div id="sidebar">
    
            	<div id="search">
                </div>
    
                <div class="sideblock">
    				<div class="sideblock-title"><h3>some text here</h3></div>
    
    <!-- From here //-->
    <div class="adblock" >
    <a href="http://website.com"><img src="<?php bloginfo('template_directory'); ?>/img/ad_block.gif" height="125" width="125" border="0" alt="Advertise Here" /></a></div>
    <div class="adblock">
    <a href="http://website.com"><img src="<?php bloginfo('template_directory'); ?>/img/ad_block.gif" height="125" width="125" border="0" alt="Advertise Here" /></a></div>
    <!-- To here //-->
    
    			</div>
    
                <div class="sideblock">
    				<div class="sideblock-title"><h3>some text here</h3>
    				</div>
    			 </div>
                
                <div class="sideblock">
    				<div class="sideblock-title">
    				  <h3>Tags</h3>
    				</div>
                 </div>
                <div class="sideblock">
    				<div class="sideblock-title"><h3>some text here</h3></div>
                    <div id="adsense-halfbanner">
                        
                    </div>
    			</div>
                            <div class="sideblock">
    				<div class="sideblock-title"><h3>some text here</h3></div>
    				<ul>
    					<li><a href="#">some text here</a></li>
    					<li><a href="#">some text here</a></li>
                        
                  </ul>
    			</div>
    
            </div>
            <div style="clear:both;"></div>
    PHP:
    the area in from here to here is what I need to not have the

    #sidebar a {
    	border-bottom-width: 1px;
    	border-bottom-style: dotted;
    	border-bottom-color: #3399FF;
    	color: #0066CC;
    	text-decoration:none;
    }
    Code (markup):
    All help is appreciated


    Thank you

    [​IMG]
     
    Mr.Bill, Jan 18, 2008 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    div.adblock a { color: purple; etc; etc; }
     
    SmallPotatoes, Jan 18, 2008 IP
  3. Mr.Bill

    Mr.Bill Well-Known Member

    Messages:
    2,818
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    160
    #3
    That did not do it

    div.adblock a { border-style: none; }
     
    Mr.Bill, Jan 18, 2008 IP
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, because you'd asked about text links. Try 'div.adblock a img'
     
    SmallPotatoes, Jan 18, 2008 IP