Reply to how to make 3 spans _one_ line

Your name:

Reply:


Posted by Gernot Frisch on 09/28/10 11:42

Got the code below. But when you size the browser down, it makes 3
rows from the spans. I want the center span to be as wide as possible,
but _not_ so wide, that it forces X3 to start a new line:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//DE">
<html>
<head>
<style>

/* MAIN AREA*/
.X1{
background-color: green;
margin-left: 32px;
width:12px; /* must be */
height: 21px;
}

.X2{
background-color: red;
width:100%; /* what to set here?? */
height: 21px;
}

.X3{
background-color: blue;
width:12px; /* must be*/
height: 21px;
}

</style>
</head>
<body>

<div>
<span class="X1">&nbsp;</span><span class="X2">TEXT</span><span
class="X3">&nbsp;</span>
</div>

</body>
</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация