PDA

View Full Version : Css Help


RawliJr
06-26-2006, 08:38 PM
<style type="text/css">
html, body {
margin:0;
padding:0;
background:#000;
color:#FFF;
}
.eric {
height: 400px;
width: 200px;
border: 3px solid red;
background: #fff;
color:#FFF;
float:left;
}
.rawli {
height: 400px;
width: 200px;
border: 3px solid red;
background : #fff;
float: right;
}
</style>


how would i add a image into those?

for newbrick.gif like

background image: newbrick.gif;

?????

Cheers,
Rawli

RawliJr
06-26-2006, 08:44 PM
background-image:url(newbrick.gif);

would that work?

TheShaner
06-26-2006, 08:46 PM
http://www.w3schools.com/css/css_background.asp

Example:
.eric {
height: 400px;
width: 200px;
border: 3px solid red;
background: #fff url(images/newbrick.gif) repeat fixed top left;
color:#FFF;
float:left;
}
-Shane

RawliJr
06-26-2006, 08:52 PM
thanx alot that worked :D