Forum Moderators: not2easy

Message Too Old, No Replies

Having Trouble

im new, with my first question

         

Klear

5:04 am on Dec 22, 2004 (gmt 0)

10+ Year Member



Ok, here is my CSS style sheet:


body {

background-color: #FFFFFF;
font-family: Verdana, Arial;
font-size: 10px;
margin: 0px;
}

.extra {

font-family: Verdana, Arial;
font-size: 10px;
font-weight: bold;
color: #FFFFFF;

}

.subhead {

font-family: Verdana, Arial;
font-size: 12px;
font-weight: bold;
color: #3582C4;

}

.subhead a:link{

font-family: Verdana, Arial;
text-decoration: none;
font-weight: bold;
font-size: 12px;
color: #000000;

}

.subhead a:hover{

font-family: Verdana, Arial;
text-decoration: none;
font-weight: bold;
font-size: 12px;
color: #3582C4;

}

.subhead a:visited{

font-family: Verdana, Arial;
text-decoration: none;
font-weight: bold;
font-size: 12px;
color: #000000;

}

P {

font-family: Verdana, Arial;
font-size: 10px;
color: #000000;

}

P a:link{

font-family: Verdana, Arial;
text-decoration: none;
font-size: 10px;
color: #000000;

}

P a:hover{

font-family: Verdana, Arial;
text-decoration: none;
font-size: 10px;
color: #3582C4;

}

P a:visited{

font-family: Verdana, Arial;
text-decoration: none;
font-size: 10px;
color: #000000;

}

Wouldn't I access the subhead by doing <P class="subhead> text here </P>

right?!

djclark

5:22 am on Dec 22, 2004 (gmt 0)

10+ Year Member



yes

what exactly is wrong?

rjohara

5:29 am on Dec 22, 2004 (gmt 0)

10+ Year Member



Wouldn't I access the subhead by doing <P class="subhead> text here </P>

Well, you didn't close the quotation marks (class="subhead"), but assuming that was a typo in this message then yes, that should apply the style in question. But overall your CSS is highly redundant and so it can be hard to tell where a problem might lie. Your whole CSS reduces to something like this (though I didn't try it):

body {
color: #000000;
background-color: #FFFFFF;
font-family: Verdana, Arial;
font-size: 10px;
margin: 0px;
}

.extra {
font-weight: bold;
color: #FFFFFF;
}

.subhead {
font-size: 12px;
font-weight: bold;
color: #3582C4;
}

a:link, a.visited {
text-decoration: none;
color: #000000;
}

a:hover {
text-decoration: none;
color: #3582C4;
}

Klear

5:32 am on Dec 22, 2004 (gmt 0)

10+ Year Member



Weird, im loading it up in IE and it isnt formating it correctly...

rjohara

5:38 am on Dec 22, 2004 (gmt 0)

10+ Year Member



When in doubt, validate:

[validator.w3.org...]
[jigsaw.w3.org...]

Klear

3:18 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



When using the div, can that go across rows, colums, and other tables?

What I am asking is, im using the div at the top of the table to format text, but rows down, text is not getting formated... Do I need to surround the text with anything other than having <div id="textbody"> and end with </div>?

cornelius

10:00 am on Dec 23, 2004 (gmt 0)

10+ Year Member



Hi Klear,

Can you make it more clear about what you want to accomplish with the html? I cannot understand what you mean. Are you working with a table in the html code?

Cor