Login | Register | FAQ
Anonymous

How do I mack a backround ?

+ Post a reply

5 posts Page 1 of 1


How do I mack a backround ?

by Sam_the_student » Sat Jun 23, 2012 6:02 pm

Hello I made my first web site, but I notice that the backround is a plain white page and I want to put color to it or put a backround.
Can u pleas help me.
User avatar

Sam_the_student

  • Posts: 2
  • Joined: Sat Jun 23, 2012 5:24 pm

Re: How do I mack a backround ?

by chrisf1288 » Sat Jun 23, 2012 6:11 pm

Hey Sam,

You should do this with CSS. In you HTML file place the bold code in between your <head></head> tags.
<!DOCTYPE html>
<html>
<head>
<title>
Your page
</title>
<style>

body {
background-color:blue;
}


</style>

</head>
<body>
<!-- Content -->
</body>
</html>
User avatar

chrisf1288

  • Posts: 128
  • Joined: Sun Jun 26, 2011 1:01 am

Re: How do I mack a backround ?

by Sam_the_student » Sat Jun 23, 2012 6:16 pm

Thx that took me a second to change.
Sorry for posting simple questions :P.
Ill save my next posts for harder questions.
User avatar

Sam_the_student

  • Posts: 2
  • Joined: Sat Jun 23, 2012 5:24 pm

Re: How do I mack a backround ?

by chrisf1288 » Sat Jun 23, 2012 6:19 pm

It's fine and your welcome!
Check the CSS tutorial to learn more about styling your HTML page.
User avatar

chrisf1288

  • Posts: 128
  • Joined: Sun Jun 26, 2011 1:01 am

Re: How do I mack a backround ?

by Jason_Martin » Mon Jun 25, 2012 3:13 pm

chrisf1288 wrote:Hey Sam,

You should do this with CSS. In you HTML file place the bold code in between your <head></head> tags.
<!DOCTYPE html>
<html>
<head>
<title>
Your page
</title>
<style>

body {
background-color:blue;
}


</style>

</head>
<body>
<!-- Content -->
</body>
</html>




This is satisfying answer even i tried it in mine query and it also worked for me.
User avatar

Jason_Martin

  • Posts: 4
  • Joined: Mon Jun 18, 2012 3:27 pm


+ Post a reply

Page 1 of 1