the wiki[1] has some good info on "Classes vs IDs", you should have a
read of that first.

If you are sure that you want to use an ID for your h3, do it like this;

<h3 id="myheaderID">My Header</h3>

as for the css, there are two ways;

h3#myheaderID {color:black;}

or

#myheaderID {color:black;}

i personally prefer the first one, just in case I ever want another
element to have that same ID. However, I'd also probably do this using
classes, not IDs. I'd use IDs only for a page title header, as i know
it will be unique.

[1] http://css-discuss.incutio.com/?page=ClassesVsIds

On 6/6/05, Dida Kutz <[EMAIL PROTECTED]> wrote:
> Hello all- I recently posted a problem re: IDs- showing a made up
> example-and  got a number of replies saying they must start with
> alphanumeric figures. Thank you;  I was sloppy in showing these
> numbers as  an example. They are auto-assigned in MovableType and do
> adhere to specs.
> 
> My original problem still remains: how to style H3 id?
> 
> Thanks again for your attentions!
> --
> Cheers-
> 
> +'*'+.            .+'*'+.        .+'*'+.            .+'*'+.
>   .+'*'+.
>  Dida Kutz      candidakutz.typepad.com     www.BluePlanetDivers.org
>          '+.,.+'        '+.,.+'           '+.,.+'             '+.,.+'
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to