0

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.

Edited by Dani: Formatting fixed

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by jonnyboy12
0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.