...

View Full Version : Self Expanding Div



kosstr12
12-18-2007, 09:54 PM
I need the code for a div with this background:http://prorshelp.4t.com/link bg.bmp (http://prorshelp.4t.com/link%20bg.bmp). and when the content inside the div expand, so does the middle part of it. Any help?

Papa
12-18-2007, 09:57 PM
I get a 403 Forbidden on link.

Apostropartheid
12-18-2007, 10:16 PM
Never use a .bmp for your images. Use a PNG or GIF file.

HTTP 403 here, too

Excavator
12-18-2007, 11:11 PM
Little experiment here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<meta name="" content="authored by http://nopeople.com/Design" />
<style type="text/css">
html, body {
background: #CCCCCC;
}
* {
margin: 0;
padding: 0;
border: none;
}
#container {
border: 4px solid #FF9900;
}
</style>
</head>
<body>
<div id="container">
<p><img src="http://ezwebtek.com/stick.jpg" width="100%" height="100%" alt="description goes here" /></p>
<!--end container--></div>
</body>
</html>

Though it's not a background...

Excavator
12-18-2007, 11:13 PM
kosstr12,
Have a look at this example - http://nopeople.com/CSS/background_image_resize/

One major drawback is how bad the image can be distorted depending on what size the end users browser is opened to.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum