Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ VERY FRUSTRATED

Posted by: minidiapolis Feb 18 2007, 04:50 PM

Hi, on http://www.cs.iupui.edu/~mjsmith/journals the background-color should be orange. can someone please tell me why it's not?

Posted by: john f Feb 18 2007, 05:04 PM

In your stylesheet you have the following:
body
{
font-family: Verdana, Geneva, arial, sans-serif;
font-size: small;
background-color: orange;
}/*You later assigned background-color: silver to body. See comment below*/
h1, h2
{
font-weignt: normal;
}
blockquote
{
font-style: italic;
}
body
{
background-color: silver;
}/*This takes precedence*/
h1
{
font-size: 170%;
}
h2
{
font-size: 120%;
}

You first assigned background-color:orange to body. Then further down you assigned background-color:silver to body. This takes precedence. You should use hexadecimal values for colours also. It ensures better cross browser compliance.

Posted by: minidiapolis Feb 18 2007, 05:28 PM

I noticed that and changed that but no matter what I put in the external stylesheet, it doesn't change anything on the webpage.

QUOTE(john f @ Feb 18 2007, 05:04 PM) *

In your stylesheet you have the following:
body
{
font-family: Verdana, Geneva, arial, sans-serif;
font-size: small;
background-color: orange;
}/*You later assigned background-color: silver to body. See comment below*/
h1, h2
{
font-weignt: normal;
}
blockquote
{
font-style: italic;
}
body
{
background-color: silver;
}/*This takes precedence*/
h1
{
font-size: 170%;
}
h2
{
font-size: 120%;
}

You first assigned background-color:orange to body. Then further down you assigned background-color:silver to body. This takes precedence. You should use hexadecimal values for colours also. It ensures better cross browser compliance.


Posted by: Christian J Feb 18 2007, 05:38 PM

When I tried to load http://www.cs.iupui.edu/~mjsmith/journal.css I got a 403 Forbidden response.

Posted by: minidiapolis Feb 18 2007, 05:54 PM

I don't know what's going on, I gave it the right permissions but periodocally today I have had to do it again. Try it again.

Posted by: john f Feb 18 2007, 05:55 PM

This message is showing up:
Forbidden
You don't have permission to access /~mjsmith/journal.css on this server.
If you are using hexadecimal colors you must have the hash symbol as here: #ff6600.

Posted by: john f Feb 18 2007, 06:04 PM

Looks fine now

Posted by: minidiapolis Feb 18 2007, 06:12 PM

hmm. . . interesting. . . why is it not saving the right permissions?

Posted by: Corey Bryant Feb 18 2007, 06:32 PM

It is orange now and seems to be working fine for me.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)