Hello. I have been using a style sheet for some time now in my html project. The classes are made like this.

.twoColLiqLtHdr #container { 
    width: 80%;  /* this will create a container 80% of the browser width */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
} 

or this

.twoColLiqLtHdr #sidebar1 h3, .twoColLiqLtHdr #sidebar1 p {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
}

I cant seem to make a class without the prefix twoColLiqLtHdr i dont know what it is. I got it off of a tutorial. but how can i just make my own class, i cant find that information anyhwhere for some reason, thank for any help bye bye.

In your HTML you define a new CSS class by using the class="name" element. For example:

<div class="div1" ></div>

Then your CSS is like this:

.div1 {
  // your style rules.
}

Thats the basic answer. Is that what you need?

thanks ill pass on the kindness

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.