Page 1 of 1
stylizing a URL
Posted: Thu Sep 30, 2010 1:44 pm
by robtcts
Hello All
I know enough PHP to screw things up and am wondering how to style one small line of code - a URL
with in the <php> I have of course a bunch of code but I think THE URL I want to make white for instance is this:
$xxxxUrl = "
http://xxxxxxxxxxxx?_id=";
How do I enclose it with css? Or can I?
Thanks
R
Re: stylizing a URL
Posted: Thu Sep 30, 2010 1:46 pm
by pickle
I think we need more information. Where is this in your code? How is this variable used? Actual code you use would be helpful.
Re: stylizing a URL
Posted: Thu Sep 30, 2010 1:49 pm
by robtcts
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Awesome Jobs By Location | Awesome Jobs</title>
<style>
table, td, th
{
border:1px solid blue;
background-color:white;
}
th
{
background-color:green;
color:white;
}
h1 {
margin: 3px 3px 0px 3px;
padding: 4px;
font-size: 18px;
color: #5f6b7c;
text-shadow: 0px 1px 0px #ffffff, 0px 1px 4px #c8c8c8;
font-weight: normal;
}
h2 {
margin: 3px 3px 0px 3px;
padding: 3px;
font-size: 16px;
color: #5f6b7c;
text-shadow: 0px 1px 0px #ffffff, 0px 1px 4px #F86E41;
font-weight: normal;
}
h3 {
margin: 13px 3px 0px 3px;
padding: 3px;
font-size: 14px;
color: #5f6b7c;
text-shadow: 0px 1px 0px #ffffff, 0px 1px 4px #F86E41;
font-weight: normal;
}
p {
margin: 13px 3px 0px 3px;
padding: 3px;
font-size: 7px;
color: #fff;
font-weight: normal;
}
dd{
margin: 3px 3px 0px 3px;
padding: 3px;
font-size: 12px;
color: #000;
font-weight: normal;
}
a:link {
color:#F86E41;
font-size: 14px;
font-weight:600;
font-family: arial, helvetica, sans-serif;
text-decoration: none;
}
a:visited {
color:#AC3A15;
font-size:14px;
font-weight:600;
font-family:arial, helvetica, sans-serif;
text-decoration: none;
}
a:hover {
color: #350608;
font-size:14px;
font-weight:600;
font-family:arial, helvetica, sans-serif;
text-decoration: none;
}
a:active {
color:#F86E41;
font-size:14px;
font-weight:600;
font-family:arial, helvetica, sans-serif;
text-decoration: none;
}
</style>
</head>
<body style="background:#CCC">
<table width="900" border="0" cellpadding="4">
<tr>
<td scope="row">Awesome Jobs</td>
</tr>
<tr>
<td scope="row">
<?php
// Include the file that does all the work
include("rssreader.php");
$yahooPipeId = $_GET['id'];
//echo $yahooPipeId;
$yahooUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=";
$yahooUrlRenderType = "&_render=rss ";
$url = $yahooUrl.$yahooPipeId.$yahooUrlRenderType;
// This is the URL to the actual RSS feed. Change this value
// if you want to show a different feed.
//$url="http://www.ctsinternational.com/jobboardfeed/healthcare.xml";
//$url="http://pipes.yahoo.com/pipes/pipe.run?_id=f0115764de27f024526e94384188ffb3&_render=rss";
// Create an instance of the rssFeed object, passing it
// the URL of the feed
$rss=new rssFeed($url);
// If there was an error getting the data
if($rss->error){
// Show the error
print "<h1>Error:</h1>\n<p><strong>$rss->error</strong></p>";
}else{
// Otherwise, we have the data, so we call the parse method
$rss->parse();
// The showHeading can accept a paramater that will be used
// as the tag to wrap the heading. In this case, we're wrapping
// the title in an <h1> tag
//$rss->showHeading("h1");
// Display the image if there is one
$rss->showImage("left");
// If the RSS feed provides a link
if($rss->link){
// Display it
print "<p>\n";
$rss->showLink();
}
// Display the description
// $rss->showDescription();
// Show the news stories
$rss->showStories();
}
?>
</td>
</tr>
</table>
</body>
</html>