Welcome, Guest. Please Login or Register.
July 17, 2025, 03:20:21 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  |  English User Help  |  English Help  |  Style Sheet Problems.. « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Style Sheet Problems..  (Read 430 times)
Punt
Noobie
*
Posts: 10


I'm a llama!

Style Sheet Problems..
« on: February 04, 2003, 05:41:26 PM »
Reply with quote

Howdy all,

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
J_Peterson
Sr. Member
****
Posts: 286


Re:Style Sheet Problems..
« Reply #1 on: February 04, 2003, 06:58:58 PM »
Reply with quote

Quote from: Punt on February 04, 2003, 05:41:26 PM
Any thoughts? Any help would be greatly appreciated.

Post in the Graphics and Templates board, since the possibility of getting an answer is much higher there.
Logged

||Find, build and improve online communities||[/b]
[/b]
[/b][/size]
Punt
Noobie
*
Posts: 10


I'm a llama!

Re:Style Sheet Problems..
« Reply #2 on: February 04, 2003, 07:38:28 PM »
Reply with quote

I will do that. Thanks for the suggestion :)
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Style Sheet Problems..
« Reply #3 on: February 05, 2003, 12:11:40 AM »
Reply with quote

*Points at secret project....*

-[Unknown]
Logged
Punt
Noobie
*
Posts: 10


I'm a llama!

Re:Style Sheet Problems..
« Reply #4 on: February 27, 2003, 02:21:23 PM »
Reply with quote

*arg*

I've been banging my head about this for quite some time now. Any idea when your secret project might not be so secret anymore?

;D
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Style Sheet Problems..
« Reply #5 on: February 27, 2003, 07:21:59 PM »
Reply with quote

when the 35% becomes 100%

it'd be better too if u provide us with a link
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Style Sheet Problems..
« Reply #6 on: February 28, 2003, 08:28:38 AM »
Reply with quote

Quote from: Punt on February 04, 2003, 05:41:26 PM
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.

Did you do this right?

The template uses:

a:link
a:visited
a:hover
a:active

and

.nav:link
.nav:visited
.nav:hover
.nav:active

The class applies to the anchor, *not* the TD, so you should have (for example) <a class="nav">, not <td class="nav">.

If you add:

.menu:link
.menu:visited
.menu:hover
.menu:active

and specify <a class="menu"> for the menu anchors, all should be well! :)



« Last Edit: February 28, 2003, 08:30:45 AM by Peter Duggan » Logged

Punt
Noobie
*
Posts: 10


I'm a llama!

Re:Style Sheet Problems..
« Reply #7 on: March 12, 2003, 09:03:17 PM »
Reply with quote

Just to make sure I have this right (And I really appreciate the time you've taken on this), I put the <a class="menu"> around where I want  this to take effect in my template, correct? So if I want the links in my <yabb main> area to have the colors set in the .menu part of my css, I put <a class="menu"><yabb main></a>??

Is that correct? Doesn't seem to be.

Any help is greatly appreciated.

Oh! and the link suggested by spaceman spiff...

http://www.harleyroads.com/forums
« Last Edit: March 12, 2003, 09:05:44 PM by Punt » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Style Sheet Problems..
« Reply #8 on: March 12, 2003, 09:13:15 PM »
Reply with quote

best to do it is not changing the a tag, there will be lots to edit in Subs.php
it's better to do this:
<div class="menu"><yabb menu></div>
and add this in css:
.menu a:link
.menu a:visited
.menu a:hover
.menu a:active
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Style Sheet Problems..
« Reply #9 on: March 13, 2003, 12:44:20 AM »
Reply with quote

Quote from: Punt on March 12, 2003, 09:03:17 PM
Just to make sure I have this right (And I really appreciate the time you've taken on this), I put the <a class="menu"> around where I want  this to take effect in my template, correct? So if I want the links in my <yabb main> area to have the colors set in the .menu part of my css, I put <a class="menu"><yabb main></a>??

Is that correct? Doesn't seem to be.

To be fair, you didn't say you wanted to change the link colours in <yabb main>! If you did, the 'a' and '.nav' classes should have been all you needed. What I thought you wanted to do was to maintain whatever colours you had already set up for the YaBB SE board, but add a sidebar menu with different link colours to the template. In which case, the code for the menu would have been included in addition to the existing YaBB content as a div (as Spaceman-Spiff suggests, but probably containing your menu rather than <yabb main>) or (less tidily) with each link qualified like <a class="menu" href="URL">link</a>!

If that's still not clear enough, please get back to us! :)
Logged

Punt
Noobie
*
Posts: 10


I'm a llama!

Re:Style Sheet Problems..
« Reply #10 on: March 14, 2003, 07:11:18 PM »
Reply with quote

Thanks both for your reply.

Peter, I'm sorry I didn't make myself clear. What I want to accomplish is basically the opposite of what you thought. I already have a menu on the left side with link, hover, and visited colors specified. I want to specify a different set of colors for the link hover and visited links inside the forum itself.

I tried as Spiff suggested and wrapped the <yabb main> tag in a <div class="menu"> tag, but that, unfortunatly, did not work.

I'm really stumped by this, and appreciate all your help (both of you). Unfortunatly, in doing this, I fubar'd my general schema somewho, so now I have big black bars, and tables all out of whack. I think I have to start from page one again. *sigh*'

Thanks again guys!

-punt
Logged
Punt
Noobie
*
Posts: 10


I'm a llama!

Re:Style Sheet Problems..
« Reply #11 on: March 15, 2003, 03:57:13 PM »
Reply with quote

Success!

I did as Peter suggested and simply put a new class onto my menu bar on the left and left the original classes for YaBB.

Thanks a ton for all your help guys, it was very much appreciated.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  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.286 seconds with 21 queries.