Jump to content

help with image border.


MDanz

Recommended Posts

here is the example on the website i'm creating.

 

http://www.learnated.com/test.php

 

as you can see i have a border problem.

 

i want the image and the border images surrounding it.  here's the code i did to do this.. but obviously it is not working. what is the correct way of doing this.

 


<style type="text/css">

.cornertl {
float:left;
background-image:url("b1.jpg");
width:25px;
height:20px;
}
.cornertr {
float:left;
background-image:url("b3.jpg");
width:25px;
height:20px;
}
.source {
float:left;
background-image:url("b5.jpg");
}
.leftb {
float:left;
background-image:url("b4.jpg");
width:25px;
height:20px;

}
.rightb {
float:left;
background-image:url("b6.jpg");
width:25px;
height:20px;
}
.cornerbl {
float:left;
background-image:url("b7.jpg");
width:25px;
height:20px;
}
.cornerbr {
float:left;
background-image:url("b9.jpg");
width:25px;
height:20px;
}
.top {
float:left;
background-image:url("b2.jpg");
width:25px;
height:20px;
}


.bottom {
float:left;
background-image:url("b8.jpg");
width:25px;
height:20px;
}

.layoutmiddle {
overflow:hidden;

}
.layouttop {
overflow:hidden;

}

.layoutbottom {
overflow:hidden;
}

</style>


<?php echo "
<div class='layouttop'><div class='cornertl'></div><div class='top'></div><div class='cornertr'></div></div>
<div class='layoutmiddle'><div class='leftb'></div><div class='source'><img src='$image'  /></div><div class='rightb'></div></div>
<div class='layoutbottom'><div class='cornerbl'></div><div class='bottom'></div><div class='cornerbr'></div></div>"; ?>

 

 

how do i do the image border correctly?

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.