Forum Moderators: not2easy

Message Too Old, No Replies

style will not display correctly

style is not being picked up from the stylesheet

         

Don MacDonald

4:29 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



Hi.
I'm having a bit of trouble getting the correct style to apply to the ".posted a" class (where it says "posted by Don at 07:53 PM"). Obviously, the large, gray timestamp is being picked up from somewhere, but I cant figure out from where. It looks like I've closed all the div tags, and I don't see a css tag that would call a large, gray font. How do I get the timestamp to appear as small and black, as I'd specified in my stylesheet?

Thanks in advance,
Don
PS--oh, and if anyone could tell me how to get the gray background for the sidebar to extend all the way to the bottom of the screen, I'd be eternally grateful.

[edited by: Don_MacDonald at 6:26 pm (utc) on Mar. 18, 2004]

Alternative Future

5:06 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello and Welcome to WebmasterWorld [webmasterworld.com] Don MacDonald,

It might be a good idea to remove the links to your site (before the mods do) and include samples of the code that are not working. You can read over the sites Terms of Usage and Conditions of Service with the link above.

Anyway... to answer your question the affected part of your code is within an anchor tag which over-rides the .posted selector class. What you have to do is apply a simaler style to the anchor tag that caters for the Pseudo-classes hover active etc eg:

.postedAnchor{
simaler styles;
}
.postedAnchor:active{
simaler styles;
}

<a href="" class="postedAnchor">New link</a>

Hope this helps,

-George

Don MacDonald

6:21 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



My apologies about the links. My problem was that I was not sure where in my css doc the problem was. That doc is six pages long--the source sode for my site is about four pages (when printed). So I thought a link would be more expedient. I wasn't trying to hype my site, and I understand why mods frown on that sort of abuse. My question: if you've got a question about your code, and you can't pinpoint the source of the trouble, how do you request assistance? Don't want to get off on the wrong foot!

In regards to my question above, the problem turns out to have been in the style sheet. I deleted the styling rules for a bunch of selectors without commenting out the selectors themselves, thus applying the styling from the next item down (which happened to be a .title tag) to those selectors.

Alternative Future

6:59 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Don MacDonald,

Don't worry about it, we all make mistakes ;-)

I know it can be a pain pin-pointing the exact place of an error, but its just a hit and a miss if the person looking over it can see a call to a function (in javascript) that is not included they shall request it to be shown etc. All the harder in CSS i know...

Nice to see you found the problem.

-George