lizat
11-18-2009, 08:16 PM
Dear Dynamics,
I have a simple requirement as follows:
a containing div
a left hand div - don't want to specify width only right margin which will fill to the right hand div...
a right hand div - floats right & side by side with the left hand div, it contains a fixed width button
the left hand div will sometimes contain several rows of text. While is has only one line everything works fine and the two divs are side by side, when it is multiple lines the right hand div descends below the left hand div.
Any ideas how to solve this?
thank you........................ liz
________________________________________________________
This is the extracted code - note it is part of a much bigger thing & the colours are only for debugging purposes:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
.lid112_column1
{
position:relative;
min-width:600px;
margin-left:10px;
margin-right:200px;
border: 2px solid #709502;
background-color:red;
max-height: 900px;
overflow: hidden;
}
.ST_resultstext
{
xposition:relative;
float: left;
background-color:#33FFFF;
margin: 5px;
margin-right: 160px;
}
.ST_buttons
{
position:relative;
float: right;
background-color:#33FFFF;
margin: 5px;
}
.ST_input_button
{
border: 2px outset #a8ff00;
text-align:center;
position: relative;
float: right;
width: 140px;
color:#a8ff00;
padding: 2px;
background:#709502;
border-color:#a8ff00;
text-align: center;
margin-bottom:10px;
display: inline-block;
}
.clearboth { clear:both;}
</style>
</head>
<body>
<div class="lid112_column1">
<div class="ST_resultstext">
<p>This is one line of text, and is copied to make more: This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more: </p>
</div>
<div class="ST_buttons" >
<input type="button" class="ST_input_button" value="button text1" /><br />
<input type="button" class="ST_input_button" value="button text2" />
</div><br />
<div class="clearboth"></div>
</div> <!-- end lid112_column1 -->
</body>
</html>
I have a simple requirement as follows:
a containing div
a left hand div - don't want to specify width only right margin which will fill to the right hand div...
a right hand div - floats right & side by side with the left hand div, it contains a fixed width button
the left hand div will sometimes contain several rows of text. While is has only one line everything works fine and the two divs are side by side, when it is multiple lines the right hand div descends below the left hand div.
Any ideas how to solve this?
thank you........................ liz
________________________________________________________
This is the extracted code - note it is part of a much bigger thing & the colours are only for debugging purposes:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
.lid112_column1
{
position:relative;
min-width:600px;
margin-left:10px;
margin-right:200px;
border: 2px solid #709502;
background-color:red;
max-height: 900px;
overflow: hidden;
}
.ST_resultstext
{
xposition:relative;
float: left;
background-color:#33FFFF;
margin: 5px;
margin-right: 160px;
}
.ST_buttons
{
position:relative;
float: right;
background-color:#33FFFF;
margin: 5px;
}
.ST_input_button
{
border: 2px outset #a8ff00;
text-align:center;
position: relative;
float: right;
width: 140px;
color:#a8ff00;
padding: 2px;
background:#709502;
border-color:#a8ff00;
text-align: center;
margin-bottom:10px;
display: inline-block;
}
.clearboth { clear:both;}
</style>
</head>
<body>
<div class="lid112_column1">
<div class="ST_resultstext">
<p>This is one line of text, and is copied to make more: This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more:This is one line of text, and is copied to make more: </p>
</div>
<div class="ST_buttons" >
<input type="button" class="ST_input_button" value="button text1" /><br />
<input type="button" class="ST_input_button" value="button text2" />
</div><br />
<div class="clearboth"></div>
</div> <!-- end lid112_column1 -->
</body>
</html>