I guess Vibha is correct , as per my knowledge CSS border element is a border and therefore you are able to have side but it's length would be always 100%. By using <div> you can get the effect for it. Always remember margin and backgrounds are used for test display purposes only.
HTML Code:
#border-div {position: relative; width: 250px; height: 160px; border-right: 2px #f00 solid; border-left: 2px #f00 solid; margin: 20% 0 0 20%;
}
#content-div {position: absolute; top: 0; left: 0; width: 100%; height: 200px; background: #ff0;
}
Bookmarks