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
https://forums.phpfreaks.com/topic/218401-help-with-image-border/
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.