Jump to content

[SOLVED] Div Layout


blufish

Recommended Posts

I have two problems, one is that the middle divs

<div style="display: inline; background: url(left.gif); width: 25; align: center;"></div>
<div style="display: inline; background-color: white; width: 85%; align: center;"></div>
<div style="display: inline; background: url(right.gif); width: 25; align: center;"></div>

All need to be the same height as the middle middle div, my second problem is that none of the divs show in Safari.  Any ideas?

<html>
<head>
<title>My Site</title>
</head>
<style type="text/css">
body {background-color: #cccccc;}
</style>
<body>
<div style="text-align: center;">
<div style="display: inline; background: url(tl.gif); width: 25; height: 25; align: center;"></div>
<div style="display: inline; background: url(top.gif); width: 85%; height: 25; align: center;"></div>
<div style="display: inline; background: url(tr.gif); width: 25; height: 25; align: center;"></div>
<br />
<div style="display: inline; background: url(left.gif); width: 25; align: center;"></div>
<div style="display: inline; background-color: white; width: 85%; align: center;"></div>
<div style="display: inline; background: url(right.gif); width: 25; align: center;"></div>
<br />
<div style="display: inline; background: url(bl.gif); width: 25; height: 25; align: center;"></div>
<div style="display: inline; background: url(bottom.gif); width: 85%; height: 25; align: center;"></div>
<div style="display: inline; background: url(br.gif); width: 25; height: 25; align: center;"></div>
</div>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/119824-solved-div-layout/
Share on other sites

I added the px, yes I am making a box with rounded edges, both problems still remain, can't see in Safari and the boxes aren't the same size in IE. Any thoughts?

 

Edit: Current Code

<html>
<head>
<title>My Site</title>
</head>
<style type="text/css">
body {background-color: #cccccc;}
</style>
<body>
<div style="text-align: center;">
<div style="display: inline; background: url(tl.gif); width: 25px; height: 25px; align: center;"></div>
<div style="display: inline; background: url(top.gif); width: 85%; height: 25px; align: center;"></div>
<div style="display: inline; background: url(tr.gif); width: 25px; height: 25px; align: center;"></div>
<br />
<div style="display: inline; background: url(left.gif); width: 25px; align: center;"></div>
<div style="display: inline; background-color: white; width: 85%; align: center;">hello all!dfdfdsvncvnvxcvn,mdxnv,mdsf<br><Br></div>
<div style="display: inline; background: url(right.gif); width: 25px; align: center;"></div>
<br />
<div style="display: inline; background: url(bl.gif); width: 25px; height: 25px; align: center;"></div>
<div style="display: inline; background: url(bottom.gif); width: 85%; height: 25px; align: center;"></div>
<div style="display: inline; background: url(br.gif); width: 25px; height: 25px; align: center;"></div>
</div>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/119824-solved-div-layout/#findComment-617308
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.