View Full Version : Simple but tricky header / link styling question

01-11-2008, 05:45 PM
Hey all,

I have a seemingly simple problem with my link and header styles that I keep thinking had a really obvious solution which I can't see, so maybe it will be glaringly obvious to someone on here! :rolleyes:

Notes: I'm a bit of a css beginner and I'm using Wordpress on my site.

I want to style the link-attributes of a specific <h3> tag so it won't underline when hovered. (the current hover-decoration is specified in the overall a: styles of the website).

Only thing is that I can't use a link class because the <h3> tag has only <?php the_category(', ') ?> inside, which displays and links to the relevent categories of a blog post.

So how can I style the link without creating a link class??

Appreciate anyone's thoughts on this,


01-11-2008, 05:50 PM
Hello dominoeffect,
h3 in your header could be styled with #header h3 {...} if it's the only one. Make it h5 or something if there are other h3's that you don't want affected.

01-11-2008, 05:56 PM
Hey Excavator thanks for the help buddy.

Is it possible to style the header's link attributes this way (hover,etc), and not just the size,color,etc of the header?

01-11-2008, 05:59 PM

#header h3 a {
/* default properties */
#header h3 a:hover {
/* hover properties...and so on. */

01-11-2008, 06:39 PM
Ah, thank you very muchly.

I knew it was staring me in the face!