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.
Asked
Active
Viewed 1.7k times
-4
-
3Can you provide more information? What type of background? – Shawn Janas Jan 02 '12 at 03:24
-
uh, html? sorry, i really dont mean to be a fustration – Gavin Craig Jan 02 '12 at 03:46
3 Answers
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
then set a background in the CSS style
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

Bearc21
- 1