css problem

B

bluechucky

Hi Guys

This problem has been bothering me for the last 2 weeks and I can't seem to
find a solution to it.

Could someone please assist or point me in the right direction.

I've got the following generated sql code:

[tr]
[td colspan="2"][span class="postbody"]This is what a URL link looks
like ... [a href="http://www.news,com,au"
target="_blank"]www.news.com.au[/a][/span][/td]
[/tr]

(brackets changed incase it affects presentation here.

The css consists of the following:

a:link , a:active , a:visited {color : #677595; } -for overall
representation

Then there is this;
..postbody {font-size : 12px; }

a.postbody:link {color : #ffcc00; text-decoration : none; }

a.postbody:visited {color : #c0c0c0; text-decoration : none; }

a.postbody:hover {color : #c0c0c0; text-decoration : underline; }

These postbody settings, when changed have no effect... what am I doing
wrong??
 
R

Roy Schestowitz

bluechucky said:
Hi Guys

This problem has been bothering me for the last 2 weeks and I can't seem
to find a solution to it.

Could someone please assist or point me in the right direction.

I've got the following generated sql code:

[tr]
[td colspan="2"][span class="postbody"]This is what a URL link looks
like ... [a href="http://www.news,com,au"
target="_blank"]www.news.com.au[/a][/span][/td]
[/tr]

(brackets changed incase it affects presentation here.

The css consists of the following:

a:link , a:active , a:visited {color : #677595; } -for overall
representation

Then there is this;
.postbody {font-size : 12px; }

a.postbody:link {color : #ffcc00; text-decoration : none; }

a.postbody:visited {color : #c0c0c0; text-decoration : none; }

a.postbody:hover {color : #c0c0c0; text-decoration : underline; }

These postbody settings, when changed have no effect... what am I doing
wrong??

I'll venture a guess and suggest you try:

postbody.a:*

instead of:

a.postbody.a:*
 
R

Roy Schestowitz

bluechucky said:
Hi Guys

This problem has been bothering me for the last 2 weeks and I can't seem
to find a solution to it.

Could someone please assist or point me in the right direction.

I've got the following generated sql code:

[tr]
[td colspan="2"][span class="postbody"]This is what a URL link looks
like ... [a href="http://www.news,com,au"
target="_blank"]www.news.com.au[/a][/span][/td]
[/tr]

(brackets changed incase it affects presentation here.

The css consists of the following:

a:link , a:active , a:visited {color : #677595; } -for overall
representation

Then there is this;
.postbody {font-size : 12px; }

a.postbody:link {color : #ffcc00; text-decoration : none; }

a.postbody:visited {color : #c0c0c0; text-decoration : none; }

a.postbody:hover {color : #c0c0c0; text-decoration : underline; }

These postbody settings, when changed have no effect... what am I doing
wrong??

I'll venture a guess and suggest you try:

..postbody a:*

instead of:

a.postbody:*
 
S

Steve Pugh

bluechucky said:
[span class="postbody"]This is what a URL link looks
like ... [a href="http://www.news,com,au"
target="_blank"]www.news.com.au[/a][/span]

(brackets changed incase it affects presentation here.
Then there is this;
.postbody {font-size : 12px; }

Don't use px for font sizing. Win IE users can't resize your text if
they find it too small or too large to comfortably read (not without
disabling _all_ font sizing via an option buried serveral layers deep
in the preferences)
a.postbody:link {color : #ffcc00; text-decoration : none; }
a.postbody:visited {color : #c0c0c0; text-decoration : none; }
a.postbody:hover {color : #c0c0c0; text-decoration : underline; }

These postbody settings, when changed have no effect... what am I doing
wrong??

a.postbody matches <a> elements with class="postbody". You have no
such elements.

..postbody a:link matches <a> elements within an element with
class="postbody". That's what you have.

Time to reread the section on selectors in the spec?
http://www.w3.org/TR/CSS21/selector.html

Steve
 
J

Jukka K. Korpela

bluechucky said:
Could someone please assist or point me in the right direction.

Maybe, if you post relevant information.
I've got the following generated sql code:

We want the URL, so that we can see the markup and style sheet as a
whole and unmunged. Markup and address munging considered harmful.
a:link , a:active , a:visited {color : #677595; }

We already know you have not studied the basics of CSS properly, but we
don't know what is the specific problem you have run into.
.postbody {font-size : 12px; }

a.postbody:link {color : #ffcc00; text-decoration : none; }

Please. No more cluelessness indicators. Just post the URL, mm'kay?
We might offer help you didn't ask for, and maybe casually in the
problem you have in your mind, but code snippets are not the way to go.
These postbody settings, when changed have no effect...

It's clear even from the munged snippets you posted that some of your
CSS rules are simply wrong (you obviously have no "a" element of class
"postbody"), but the big picture is still unknown.
what am I doing wrong??

You are not posting the URL.
 
S

Sid Ismail

On Sun, 13 Mar 2005 12:24:57 +0000, Roy Schestowitz

: "bluechucky" <cmjunk at iinet dot net dot au> wrote:
:
: > Hi Guys
: >
: > This problem has been bothering me for the last 2 weeks and I can't seem
: > to find a solution to it.
: >
: > Could someone please assist or point me in the right direction.
: >
: > I've got the following generated sql code:
: >
: > [tr]
: > [td colspan="2"][span class="postbody"]This is what a URL link looks
: > like ... [a href="http://www.news,com,au"
: > target="_blank"]www.news.com.au[/a][/span][/td]
: > [/tr]
: >
: > (brackets changed incase it affects presentation here.
: >
: > The css consists of the following:
: >
: > a:link , a:active , a:visited {color : #677595; } -for overall
: > representation
: >
: > Then there is this;
: > .postbody {font-size : 12px; }
: >
: > a.postbody:link {color : #ffcc00; text-decoration : none; }
: >
: > a.postbody:visited {color : #c0c0c0; text-decoration : none; }
: >
: > a.postbody:hover {color : #c0c0c0; text-decoration : underline; }
: >
: > These postbody settings, when changed have no effect... what am I doing
: > wrong??
:
: I'll venture a guess and suggest you try:
:
: .postbody a:*
:
: instead of:
:
: a.postbody:*


He has it right. a.postbody:hover is correct.
Where did get yours from?

Sid
 
S

Steve Pugh

Sid Ismail said:
"bluechucky" <cmjunk at iinet dot net dot au> wrote:
:
: >[span class="postbody"]This is what a URL link looks
: > like ... [a href="http://www.news,com,au"
: > target="_blank"]www.news.com.au[/a][/span][/td]

: I'll venture a guess and suggest you try:
:
: .postbody a:*
:
: instead of:
:
: a.postbody:*

He has it right. a.postbody:hover is correct.

It is, just not for the HTML in question.
Where did get yours from?

Same place I got it from, by looking at the HTML and spotting that the
postbody class was applied to the parent element of the links.

Steve
 
T

Toby Inkster

Sid said:
He has it right. a.postbody:hover is correct.
Where did get yours from?

'a.postbody:hover' is correct if you want to style '<a class="postbody">'
when it's hovered over.

'.postbody a:hover' is what the OP needs though.
 
B

BlueChucky

Thanks to all of you who have taken the time to answer this. It is indeed
the answer i needed!


Steve Pugh said:
bluechucky said:
[span class="postbody"]This is what a URL link looks
like ... [a href="http://www.news,com,au"
target="_blank"]www.news.com.au[/a][/span]

(brackets changed incase it affects presentation here.
Then there is this;
.postbody {font-size : 12px; }

Don't use px for font sizing. Win IE users can't resize your text if
they find it too small or too large to comfortably read (not without
disabling _all_ font sizing via an option buried serveral layers deep
in the preferences)
a.postbody:link {color : #ffcc00; text-decoration : none; }
a.postbody:visited {color : #c0c0c0; text-decoration : none; }
a.postbody:hover {color : #c0c0c0; text-decoration : underline; }

These postbody settings, when changed have no effect... what am I doing
wrong??

a.postbody matches <a> elements with class="postbody". You have no
such elements.

.postbody a:link matches <a> elements within an element with
class="postbody". That's what you have.

Time to reread the section on selectors in the spec?
http://www.w3.org/TR/CSS21/selector.html

Steve


--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <[email protected]> <http://steve.pugh.net/>
 
D

dorayme

From: "Jukka K. Korpela said:
Organization: Bovine Aviation Enterprises
Newsgroups: alt.html
Date: Sun, 13 Mar 2005 12:35:19 +0000 (UTC)
Subject: Re: css problem



Maybe, if you post relevant information.


We want the URL, so that we can see the markup and style sheet as a
whole and unmunged. Markup and address munging considered harmful.


We already know you have not studied the basics of CSS properly, but we
don't know what is the specific problem you have run into.


Please. No more cluelessness indicators. Just post the URL, mm'kay?
We might offer help you didn't ask for, and maybe casually in the
problem you have in your mind, but code snippets are not the way to go.


It's clear even from the munged snippets you posted that some of your
CSS rules are simply wrong (you obviously have no "a" element of class
"postbody"), but the big picture is still unknown.


You are not posting the URL.


Give the guy a break will you? You see perfectly well some trouble, so ditch
all this royal "we want" stuff and more usefully explain what trouble you
can see... Maybe he does not want harpy schoolteacher types anywhere near
any server he has access to... (Imagine if you saw other mistakes the poor
fellow had made in "the big picture" that you so crave...)

dorayme

(btw "cluelessness indicators" should be "clueless indicators"; that is, of
course, if you want to insult more cluefully)
 
D

dorayme

From: dorayme said:
Newsgroups: alt.html
Date: Mon, 14 Mar 2005 10:00:27 +1100
Subject: Re: css problem

snip

dorayme

(btw "cluelessness indicators" should be "clueless indicators"; that is, of
course, if you want to insult more cluefully)


OK - second thoughts - maybe "cluelessness indicators" is ok as an
expression and even more correct than my suggested alternative. Maybe I was
misled by its ungainliness?

dorayme

btw I notice that SP (as he so often does) gave a nice answer to the OP.
 
J

Jukka K. Korpela

dorayme said:
OK - second thoughts - maybe "cluelessness indicators" is ok as an
expression and even more correct than my suggested alternative.

Quite right. And posting two messages that contain nothing relevant to
our topics in general or the question asked in particular (but contain
some half-anonymously posted personal accusations) is a nuisance
indicator. Your indirect request to get routinely ignored is clear
enough.
 
D

dorayme

From: "Jukka K. Korpela said:
Organization: Bovine Aviation Enterprises
Newsgroups: alt.html
Date: Mon, 14 Mar 2005 06:35:08 +0000 (UTC)
Subject: Re: css problem



Quite right. And posting two messages that contain nothing relevant to
our topics in general or the question asked in particular (but contain
some half-anonymously posted personal accusations) is a nuisance
indicator. Your indirect request to get routinely ignored is clear
enough.

OK, I will try to be gooder.

dorayme (the anonymous)

PS. You don't think you were just a leeeeeeetle bit of a pompous ass in your
response to the OP? NO! NO! I didn't mean that! I will be good. I promise...
 
B

BlueChucky

dorayme (the anonymous)
PS. You don't think you were just a leeeeeeetle bit of a pompous ass in your
response to the OP? NO! NO! I didn't mean that! I will be good. I promise...

Well thank you for sticking up for me. Unforunately Yacca expects everyone
to be an expert in HIS speciality before he is willing to offer assistance.
Like he says in his own bio "And although people often find me patronizing".
Yep sure do.

What I would consider a perfect response was how Steve Pugh's handled my
query (thanks again Steve). He wasn't patronising, he offered a solution and
pointed me to another area for further information.

Now, I'm sure when it comes to knowledge of how to re-build a 350 chev
engine, or maybe something to do with household renovations I would have
Yacca covered, but if he asked for assistance, I'd be a little more polite
with my oppinions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top