Guest Access
Poster Mcposty
Poster Mcposty
Poster Mcposty
profile
MotionM
profile
I'm JUST starting to learn some basic html but
I've run into a problem with adding background colors.
the code that I was told to use is
It only shows the text of the code, not the actual code. I am doing this in notepad and the HTML view-thingy with Firefox.
I've run into a problem with adding background colors.
the code that I was told to use is
- Code:
body {
font-size: 0.8em;
color: navy;
}
h1 {
color: #ffc;
background-color: #009;
}
It only shows the text of the code, not the actual code. I am doing this in notepad and the HTML view-thingy with Firefox.
Poster Mcposty
Show Signature
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
@ - that looks like CSS code: I'll explain later... if you like
there's so many ways to do the same thing yet if you're just looking for html basics, place this code after the < body >tag
is this a full on HTML page that your are working on?
there's so many ways to do the same thing yet if you're just looking for html basics, place this code after the < body >tag
- Code:
<body bgcolor="navy">
<font color="white">
is this a full on HTML page that your are working on?
Administrator
Show Signature
Poster Mcposty
Poster Mcposty
Poster Mcposty
profile
MotionM
profile
@GF: Yes, CSS I meant.
I guess the site I was using isn't the best with the colors then.
I'm just trying to learn a bit, just using some of information and resources I already have to have some more of knowledge.
I guess the site I was using isn't the best with the colors then.
I'm just trying to learn a bit, just using some of information and resources I already have to have some more of knowledge.
Poster Mcposty
Show Signature
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
ok so you are using a cascading style sheet?
then try adding this to your CSS
lemme know if that works for you, then we can style other things ^,^
then try adding this to your CSS
- Code:
.body {
background-color: #000080;
}
lemme know if that works for you, then we can style other things ^,^
Administrator
Show Signature
Poster Mcposty
Poster Mcposty
Poster Mcposty
profile
MotionM
profile
Edit: Nevermind. Needed to make a whole new section after the HTML. I got it now.
And yes, that worked (you added a . before body btw )
And yes, that worked (you added a . before body btw )
Poster Mcposty
Show Signature
Similar topics