dare87 Posted March 23, 2008 Share Posted March 23, 2008 So here is my problem. I have my set of links on the left of my site. The look is done with css. As you can see I have a class that is called sideBarTitle. I originally plan not have this as a link, but things change. Is there a way to do a php code, that makes the css, think it's not a link, or does anyone have an idea on how to change the css.. I have been working on it for the last few hours. Thanks <ul> <li class="sideBarTitle">Main</li> <li><a href="index.php">Home</a></li> <li><a href="applications.php">Applications</a></li> <li><a href="download_2003.php">Demo Spreadsheet</a></li> <li class="sideBarTitle"><a href="ss_solutions.php">Spreadsheet</a></li> <li><a href="uc.php">Discussion</a></li> <li><a href="ss_consultation.php">Consultation</a></li> <li><a href="ss_development.php">Development</a></li> <li class="sideBarTitle"><a href="acad_solutions.php">AutoCAD</a></li> <li><a href="uc.php">Discussion</a></li> <li><a href="uc.php">Consultation</a></li> <li><a href="uc.php">Development</a></li> <span id="sideTitle"><a href="prgm_solutions.php">Programmables</a></span> <li><a href="uc.php">Discussion</a></li> <li><a href="uc.php">Consultation</a></li> <li><a href="uc.php">Development</a></li> <li class="sideBarTitle">Info</li> <li><a href="testimonials.php">Testimonials</a></li> <li><a href="contact.php">Contact Us</a></li> </ul> #sideBarLeft { position: relative; left: 15px; float: left; width: 125px; padding-bottom: 15px; } #sideBarLeft ul { margin: 0; padding: 0; list-style: none; } #sideBarLeft li { width:100%; display: block; padding: 10px 0px 2px 0px; font-weight: bold; text-align:right; } #sideBarLeft li a { horizontal-align: left; width:94%; display: block; padding: 2px; } #sideBarLeft li a:link { font: 11px Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration: none; border-bottom: 1px dashed #5b7aa4; font-weight: normal; } #sideBarLeft li a:visited { font: 11px Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration: none; border-bottom: 1px dashed #5b7aa4; font-weight: normal; } #sideBarLeft li a:hover { font: 11px Verdana, Arial, Helvetica, sans-serif; color: #000000; background: #e3e3e3; font-weight: normal; border-bottom: 1px dashed #5b7aa4; text-decoration: none; } .sideBarTitle { font: 12px Verdana, Arial, Helvetica, sans-serif; border-bottom: 1px solid #000000; } /* Quote Link to comment Share on other sites More sharing options...
Lamez Posted March 23, 2008 Share Posted March 23, 2008 try the CSS board --> http://www.phpfreaks.com/forums/index.php/board,5.0.html Quote Link to comment Share on other sites More sharing options...
dare87 Posted March 23, 2008 Author Share Posted March 23, 2008 I am also looking for a possible php solution. Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 23, 2008 Share Posted March 23, 2008 I am also looking for a possible php solution. Quite how would php running on the server change the style of a link or non-link when displayed on the client? Perhaps you need to explain what you expect to do on the server to effect the change in the display. Quote Link to comment Share on other sites More sharing options...
dare87 Posted March 23, 2008 Author Share Posted March 23, 2008 the problem I am having is that because it is <a href=""></a> then it is changing the look of the <li></li> So i was wonder if there is a way to have a php link that is not just an echo a href.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.