asp.net, css, html Help!?

  • Thread starter Thread starter dsarf f
  • Start date Start date
D

dsarf f

Guest
I need help in doing something that I don't know what it's called or if there is a name, I want to put all my page in the middle or the side and make the background for the empty space a different color or make diagonal lines like yahoo, I tried using another div for the rest, and then make the div a different background color, but it did not work i really need sugestions. thank you.
 
This would be solved by utilizing css to change the background of your <body> tag. You would use a diagonal pattern (image) for your body background. The css in your html file would look like:

<head> .....
<style type="text/css">
body { background: url(diag_pattern.jpg) ; }
</style>
</head> ....

Right click on the background image here (outside the main yahoo window) and choose View background image, this will give you an idea of the diagonal line pattern size that you need. By default, the css will repeat the background image both in the x and y, so your whole background will have the diagonal pattern. One thing to consider when generating your background line pattern is that it is seamless: when the 'tiles' - the background image - are layed out next to eachother.
 
<html>
<head>
</head>
<body>
<div id=" ">
<center><div id=" ">
</div></center>
</div>
</body>
</html>

OK make a name for the id and in css make an external stylesheet and use those names to make your background like:
#idname{background-color:#f0f8e6;border-top:1px solid #ccc;margin:0 0 1em 0;padding:0 12px 1em 12px;font-size:93%;}
 
Back
Top