Help - Search - Members - Calendar
Full Version: Need help with html codes, please?
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Sew Magic
I am new here and really needing some help with codes. I have a website that I want to change the colors. I only know a few basic html codes such as changing the colors, text and a simple marquee/scrolling text.

It is under the Custom CSS if that helps. Thanks for taking a look/helping!

My problem:

What are these codes & what does it do?

#kvBg{


and

#styleNav .primary-webcomMenuItem.selected .primary-webcomMenuItem-middle{
font-family: Arial;
color: #33ffff
}

and

.webCom-color-primary {color: #99ffcc;}
.webCom-backgroundColor-primary {backgroundcolor: #99FFcc;}


Cheers,
Sew Magic
Christian J
This is about CSS, so I move the thread here...

QUOTE(Sew Magic @ Jul 19 2012, 07:28 PM) *

I have a website that I want to change the colors.

For more specific advice, please post a URL.

QUOTE

What are these codes & what does it do?

#kvBg{

That's an ID selector (but the style declarations after the curly brace are missing). See also http://htmlhelp.com/reference/css/structure.html

CODE
#styleNav .primary-webcomMenuItem.selected .primary-webcomMenuItem-middle{
            font-family: Arial;
            color: #33ffff
}

That's a (rather complex) CSS rule using both ID and CLASS selectors.

CODE
.webCom-color-primary {color: #99ffcc;}
.webCom-backgroundColor-primary {backgroundcolor: #99FFcc;}

These are more simple rules, though the naming convention seems odd -is it generated by some site creation tool? unsure.gif



Frederiek
Also take a look at the CSS 2.1 Selectors series starting at http://www.456bereastreet.com/archive/2005...lectors_part_1/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.