Welcome, Guest. Please Login or Register.
April 30, 2025, 01:20:23 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Graphics and Templates  |  Style Sheet problems « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Style Sheet problems  (Read 620 times)
Punt
Noobie
*
Posts: 10


I'm a llama!

Style Sheet problems
« on: February 04, 2003, 07:38:05 PM »
Reply with quote

Howdy :)

it was suggested I post this in here instead of "other help" so apologies in advance for cross-posting...

I recently installed YaBB SE on my site, and I have the same general setup as found here, header across the top, and a menu on the left.

My problem is this: The menu on the left has a black background.  The links are orange, the hover is white, the visited is brown.

I have YaBB SE set up on a light grey backgrounds.  So when I mouseover a link on the board, it shows up white, and is very hard to read. I am linking to an external style sheet in my template.php, so everything is in the same file. I've tried adding a new class, and then going into the template and adding class="newclass" in the TD tags of the tables, but it's not working at all.

Any thoughts? Any help would be greatly appreciated.

Thanks in advance.
-Punt
Logged
PHPlugin
Sr. Member
****
Posts: 465


WWW
Re:Style Sheet problems
« Reply #1 on: February 04, 2003, 11:04:34 PM »
Reply with quote

Hmmm ... I don't get it!

CSS?

Quoteclass="newclass"

Sorry if I'm wrong ... that's no CSS! ...

So your problem is, you want to change
the hover color of the links in your forum?
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:Style Sheet problems
« Reply #2 on: February 04, 2003, 11:12:07 PM »
Reply with quote

I think you are wrong.  If you add a .newclass in the style sheet, then you would call it in your code by adding class="newclass" in the HTML.

Of course, if your HTML was embedded in an echo line, you would need to use

class=\"newclass\"

I always have trouble applying classes to hyperlinks.  They are overridden by the a:link, a:hover, and a:visited tags.  I don't know the specifics, but these seem to be applied automatically....  you don't need to call them in like you would call any other style class.
« Last Edit: February 04, 2003, 11:18:29 PM by greghaase » Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:Style Sheet problems
« Reply #3 on: February 04, 2003, 11:36:58 PM »
Reply with quote

I found what I think you need HERE

This is a topic called pseudo classes.  Basically, what you are going to do is create a class .newclass.  Then you are going to create separate classes like

.newclass a:link
.newclass a:hover
.newclass a:visited

Then when you call class="newclass" it will apply the link, hover, and visited settings that you specified specifically for newclass.

I found that out.  And I also found out that I was half right when I said the link classes seem to be defined automatically.  When you set up a link in HTML you define with with <a> and end it with </a>.   When you have a class a:link, it gets called when you use the <a> tag.

Hey.  Thanks for posting that question, I just learned a lot about CSS tonight.
Logged
Punt
Noobie
*
Posts: 10


I'm a llama!

Re:Style Sheet problems
« Reply #4 on: February 05, 2003, 02:22:07 AM »
Reply with quote

Thank you both for your reply.

PHPlugin: I should have been a bit more clear. In my style.css file, I have a .newclass:link <attributes>, .newclass:hover <attributes> and .newclass:visited <attributes>. So in the TD tag, I have "class=newclass" hoping to change those links.

greghaase: Thanks for the link. I tried adding the .newclass a:link in the style.css, but that didn't work. I have this exact thing working on other pages of my site. So I know I have the css set up correctly. I'm curious as to where the forums are loading the style.css, and why it ignores the classes set in the TD tags. And why I can't get it to work with the forum.

Thanks again for taking the time to help me out.

:)
-Punt
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Style Sheet problems « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.066 seconds with 20 queries.