Textcolor in menu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Textcolor in menu

Post by Anders kramer »

Hi.
I'm making a new website. On that site i need to create a menu where the starting letter of the links has a different size and color.

Is that possible, and if so, how?

Regards
Anders
SideshowBob
Forum Members
Forum Members
Posts: 80
Joined: Thu Sep 13, 2007 10:50 am

Re: Textcolor in menu

Post by SideshowBob »

Hi,

Take a look at the pseudo element first:letter, I think this will do what you need.
http://www.w3schools.com/css/pr_pseudo_first-letter.asp

Bob
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Textcolor in menu

Post by Anders kramer »

that is exactly what i need, but how do i apply it to a standard menu in CMSMS?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Textcolor in menu

Post by Dr.CSS »

Depends on which menu template you are using... something like this?...

#primary-nav a:first-letter {color:#ff0000;font-size:xx-large}
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Textcolor in menu

Post by Anders kramer »

Im using "simple navigation - vertical". Im not that skilled with these codes, so if you could detailed explanation that would be great.

Anders
Post Reply

Return to “Layout and Design (CSS & HTML)”