Guest Access
Poster Mcposty
Poster Mcposty
![Poster Mcposty Poster Mcposty](https://2img.net/u/3113/12/83/19/album/m10.gif)
Poster Mcposty
profile
I'm JUST starting to learn some basic html but
I've run into a problem with adding background colors.
![[RESOLVED] Need help with HTML Html10](https://i.servimg.com/u/f46/17/36/75/49/html10.jpg)
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.
MotionM
![]() | ![]() | |
![]() | ||
![]() | ![]() |
![Poster Mcposty Poster Mcposty](https://2img.net/u/3113/12/83/19/album/m10.gif)
profile
![](https://2img.net/u/3113/12/83/19/album/quote_13.png)
I've run into a problem with adding background colors.
![[RESOLVED] Need help with HTML Html10](https://i.servimg.com/u/f46/17/36/75/49/html10.jpg)
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 Administrator](https://2img.net/u/3113/12/83/19/album/g101_p11.gif)
Administrator
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?
G@MeF@Ce
![]() | ![]() | |
![]() | ||
![]() | ![]() |
![Administrator Administrator](https://2img.net/u/3113/12/83/19/album/g101_p11.gif)
profile
![](https://2img.net/u/3113/12/83/19/album/quote_13.png)
![M\'s trade mark](/users/3113/12/83/19/smiles/873240.png)
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 Poster Mcposty](https://2img.net/u/3113/12/83/19/album/m10.gif)
Poster Mcposty
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.
MotionM
![]() | ![]() | |
![]() | ||
![]() | ![]() |
![Poster Mcposty Poster Mcposty](https://2img.net/u/3113/12/83/19/album/m10.gif)
profile
![](https://2img.net/u/3113/12/83/19/album/quote_13.png)
I guess the site I was using isn't the best with the colors then.
![Razz](https://2img.net/i/fa/i/smiles/icon_razz.gif)
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 Administrator](https://2img.net/u/3113/12/83/19/album/g101_p11.gif)
Administrator
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 ^,^
G@MeF@Ce
![]() | ![]() | |
![]() | ||
![]() | ![]() |
![Administrator Administrator](https://2img.net/u/3113/12/83/19/album/g101_p11.gif)
profile
![](https://2img.net/u/3113/12/83/19/album/quote_13.png)
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 Poster Mcposty](https://2img.net/u/3113/12/83/19/album/m10.gif)
Poster Mcposty
profile
Edit: Nevermind. Needed to make a whole new section after the HTML. I got it now. ![Cool](https://2img.net/i/fa/i/smiles/icon_cool.gif)
And yes, that worked (you added a . before body btw
)
MotionM
![]() | ![]() | |
![]() | ||
![]() | ![]() |
![Poster Mcposty Poster Mcposty](https://2img.net/u/3113/12/83/19/album/m10.gif)
profile
![](https://2img.net/u/3113/12/83/19/album/quote_13.png)
![Cool](https://2img.net/i/fa/i/smiles/icon_cool.gif)
And yes, that worked (you added a . before body btw
![Wink](https://2img.net/i/fa/i/smiles/icon_wink.gif)
Poster Mcposty
Show Signature
Similar topics