/    Sign up×
Community /Pin to ProfileBookmark

CSS Not Working…

I have the following in style.css…

[CODE]a.white:link {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:visited {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:hover {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:active {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
} [/CODE]

But when I try to use it in the script I get [URL=http://www.xfactor-studios.com/css.jpg]this[/URL]
As you can see “View” is working but “Buy” is not.
Here is the code I am using to execute it the styles…

[code=php] echo “<table width=”145″ border=”0″ cellspacing=”2″>”;
echo “<tr align=”center”>”;
echo “<TD WIDTH=”100%” HEIGHT=”22″ COLSPAN=”2″ class=”botpreview”>”;
echo “<a class=”white” href=”fullview.php?tempid=$id”>View</a> | “;
echo “<a onClick=”MM_openBrWindow2(‘buy.php?tempid=$id&type=general’,”)”><span class=”white”>Buy</span></a></td>”;
echo “<tr><td width=’50%’>”;
echo “<span class=”tinfo”>”;
echo “Type:<br>”;
echo “Item:<br>”;
echo “Author:<br>”;
echo “Download:</span><br></td><td width=’50%’>”;
echo “<span class=”tinfo”><b>$catname</b><br>”;
echo “$id<br>”;
echo “$authorname<br>”;
echo “$download</span></td></table>”;
[/code]

I am in a hurry to get this done so a quick response would be appriciated. πŸ˜€
Thanks in advance.

to post a comment
CSS

9 Comments(s) ↴

Copy linkTweet thisAlerts:
@BonRougeMay 22.2005 β€”Β Well, you've put the 'class' part in the span tag, but you're referencing the 'a' tag in the css. You have 'a.white' when you should be referencing 'a span.white'. The easiest thing (as far as I can see) would be to remove the span tags and put the 'class' in the 'a' tag (as then it would be the same as 'view').
Copy linkTweet thisAlerts:
@KookieauthorMay 22.2005 β€”Β Thanks for the fast response but, I tried already and it made the Buy big and green.(a.link)
Copy linkTweet thisAlerts:
@BonRougeMay 22.2005 β€”Β Can you show us the page (a link)?
Copy linkTweet thisAlerts:
@KookieauthorMay 22.2005 β€”Β Is this what you want to see?

**Update**

There is my entire style.css

[CODE]a:link {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
font-weight: bold;
}
a:visited {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
}
a:hover {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
}
a:active {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
}
a.white:link {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:visited {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:hover {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:active {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
.price{
font-family:Tahoma, Verdana, Arial;
font-size:11px;
font-weight:bold;
color:#434343;
}
.up{
font-family:Tahoma, Verdana, Arial;
font-size:11px;
color:#434343;
}
.upq{
font-family:Tahoma, Verdana, Arial;
font-size:11px;
color:3989C5;
}
.tinfo{
font-family:Tahoma, Verdana, Arial;
font-size:11px;
color:#434343;
}
.smallpad {
padding:1px;
color:#434343;
}
.pricestyle {
padding:3px;
color:#535353;
border-top-style:solid;
border-top-width:1px;
border-top-color:#434343;
}
.botpreview {
background-color:#3F89C3;
color:#FFFFFF;
border-top-color:#FFFFFF;
border-top-width:1px;
border-top-style:solid;
text-align:center;
vertical-align:middle;
}
.normal {
font-family:Tahoma, Verdana, Arial;
font-size:11px;
color:#434343;
}
.searchtitle {
font-size: 9px;
font-family:Tahoma, Verdana, Arial;
color: #999999;
font-weight: bold;
}
.affiliatetitle1 {
font-family:Tahoma, Verdana, Arial;
color: #4E94C0;
font-size: 13px;
font-weight: bold;
}
.affiliatetitle2 {
font-family:Tahoma, Verdana, Arial;
color: #434343;
font-size: 13px;
font-weight: bold;
}
.affiliatebox {
font-family:Tahoma, Verdana, Arial;
color:#434343;
font-size: 11px;
font-weight: bold;
}[/CODE]
Copy linkTweet thisAlerts:
@BonRougeMay 22.2005 β€”Β No, I want a link to your (live) page (online). I want to see the big picture.
Copy linkTweet thisAlerts:
@KookieauthorMay 22.2005 β€”Β I have been changing things around and it seems that the onclick is messing things up...
Copy linkTweet thisAlerts:
@KookieauthorMay 22.2005 β€”Β Oh ok, here is the link I changed it some but it under the Featured Templates section.

http://www.xFactor-Studios.com/v2/ its normally a locked directory because it is not finished, but i'll unlock it until my issue is solved.

**Edit**

Crap, sorry for the double post I was not thinking...

**Edit Again**

Here is an update of what I have...

index.php

[code=php] echo "<table width="145" border="0" cellspacing="2">";
echo "<TR>";
echo "<TD HEIGHT="22" COLSPAN="2" class="botpreview">";
echo "<a style="cursor: hand" href="fullview.php?tempid=$id" target="_blank" class="white">View</a> | ";
echo "<a href="http://www.xFactor-Studios.com/v2/" class="white">---xFS---</a> | ";
echo "<a onClick="MM_openBrWindow2('buy.php?tempid=$id&type=general','')" class="white">Buy</a></TD>";
echo "</TR><tr><td width='100%'><span class="tinfo">";
echo "Type:<br>";
echo "Item:<br>";
echo "Author:<br>";
echo "Download:</span><br></td><td width='50%'>";
echo "<span class="tinfo"><b>$catname</b><br>";
echo "$id<br>";
echo "$authorname<br>";
echo "$download</span></td></table>";
[/code]


style.css

[CODE]a:link {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
font-weight: bold;
}
a:visited {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
}
a:hover {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
}
a:active {
font-family:Tahoma, Verdana, Arial;
color: #73A41D;
text-decoration:underline;
}
a.white:link {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:visited {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:hover {
color: #000000;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
a.white:active {
color: #FFFFFF;
text-decoration:underline;
cursor:pointer;
font-size:11px;
}
[/CODE]
Copy linkTweet thisAlerts:
@KookieauthorMay 22.2005 β€”Β The post above is kinda long so I am making a new one.

I got it working right but had to take out the onclick...

Any idea as to why this is please let me know...

Here is the solution incase anyone else has the problem...

[code=php] echo "<table width="145" border="0" cellspacing="2">";
echo "<TR>";
echo "<TD HEIGHT="22" COLSPAN="2" class="botpreview">";
echo "<a style="cursor: hand" href="fullview.php?tempid=$id" target="_self" class="white">View</a> | ";
echo "<a href="http://www.xFactor-Studios.com/v2/" class="white">---xFS---</a> | ";
echo "<a style="cursor: hand" href="buy.php?tempid=$id&type=general" target="_blank" class="white">Buy</a>";
echo "</TD></TR><tr><td width='100%'><span class="tinfo">";
echo "Type:<br>";
echo "Item:<br>";
echo "Author:<br>";
echo "Download:</span><br></td><td width='50%'>";
echo "<span class="tinfo"><b>$catname</b><br>";
echo "$id<br>";
echo "$authorname<br>";
echo "$download</span></td></table>";
[/code]



Still if you can help me figure out why I cannot use the onclick I would greatly appriciate it.

Thanks
Copy linkTweet thisAlerts:
@BonRougeMay 22.2005 β€”Β Have you tried using a DTD? They're all the rage these days.
Γ—

Success!

Help @Kookie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 6.16,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...