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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.