Forum Moderators: open
I insert some break tags <br> that add enough space to line up the rest of the text in the next copy of the picture frame.
I'm making a web page using a picture frame as a background and repeating it vertically. And then I'm writing text effectively inside the picture frame. What appears on the screen is a picture frame with text inside it. Then when I get to the bottom of the first copy of the picture frame I insert some break tags [strike]<br> that add enough space to line up the rest of the text in the next copy of the picture frame.[/strike]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled</title>
<style type="text/css">
#container { width: 620px; margin: 24px auto; }
/* let it repeat, without height, image is 200 X 200, so 160+padding=200*/
/* My "frame" is 10px wide, resorting to pixel fonts due to the pixel based BG */
#container p {
width: 160px;
height: 160px;
padding:20px;
float: left;
margin-right:10px;
background:url(frame.jpg);
font-size: 14px;
overflow: hidden; /* J.I.C.*/
}
#container p.last { margin-right:0; }
</style>
</head>
<body>
<div id="container">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua.....</p>
<p> ..... Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.... Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. ... </p>
<p class="last"> ..... Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco....</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua.....</p>
<p> ..... Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.... Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. ... </p>
<p class="last"> ..... Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco....</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua.....</p>
<p> ..... Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.... Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. ... </p>
<p class="last"> ..... Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco....</p>
<p> ..... Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.... Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. ... </p>
</div>
</body>
</html>
What appears on the screen is a picture frame with text inside it.suggests that what you actually want is border-image.