Jump to content

Fg and Bg


Orkal3

Recommended Posts

I need help on making CSS for a website. It should look something like this.webcsswd1.pngThe "Foreground has the text and everything while the "Background" is just a plain color with nothing in it.Can someone be of an assistance? I'm not really good with CSS.

Link to comment
Share on other sites

Well you could make the body have the background color and have a division that will hold the content

<style type="text/css">	body {		background-color:#666666; /*Background color;*/	}	div#foreground {		background-color:#333333; /*Foreground background color :) */		border:2px solid #000000; /*Border*/		color:#FFFFFF; /*text color*/		width:950px; /*Limit width*/	}</script><!-- ... end head, begin body ... --><div id="foreground">	All your text goes here</div>

Link to comment
Share on other sites

Whoops typo (</script> instead of </style>)

<style type="text/css">	body {		background-color:#666666; /*Background color;*/	}	div#foreground {		background-color:#333333; /*Foreground background color :) */		border:2px solid #000000; /*Border*/		color:#FFFFFF; /*text color*/		width:950px; /*Limit width*/	}</style><!-- ... end head, begin body ... --><div id="foreground">	All your text goes here</div>

Link to comment
Share on other sites

A basic border in CSS can be done like this:border: 1px solid red;It can be broken down to:border-width: 1px;border-color: red;border-style: solid;You must give the border a style and width for it to show up.

Link to comment
Share on other sites

CSS3 has a border-image property, but unfortunately no browsers implement it yet :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...