-4

my question is how can I divide a background into multiple colored sections. I'm pretty new to coding, so if you could maybe give me a brief explanation I would appreciate it. Thanks.

PeeHaa
  • 71,436
  • 58
  • 190
  • 262
Gavin Craig
  • 9
  • 1
  • 1
  • 2

3 Answers3

2
Code For Spiting the page  

<html>
<div align="top" style="width:1024;height:100;border:solid;border-width:2;background:#ccc;">
<img src="yourimage.jpg" height="100" width="1024"></img>
</div>

<div style="width:1024;height:200;background:#dedede;">
<div style="width:300;height:200;border:solid;border-width:2;float:left;background:#414141;"></div>
<div style="width:300;height:200;border:solid;border-width:2;float:right;background:#616161;"></div>
</div>

<div align="bottom" style="height:100;width:1024;border:solid;background:#868686;"">
<center>Hello World</center>
</div>
</html>
Raja O
  • 634
  • 1
  • 12
  • 33
1

have a look into div's

HTML div Tag

then set a background in the CSS style

CSS background-color

that's all think off with out having an example of that your trying to do.

bobby6k34
  • 11
  • 2
-1

the way I did the different sections into colour was by doing different div sections for example:

div style="background-color:Lightblue

font color:"Black"

(Enter text)

/div

/font

br /br

div style="background-color:Black"

font color="white"

(Enter text)

/div

/font

if you dont want a break in between the you can take the br /br