Answer the question
In order to leave comments, you need to log in
How to stretch input with table-cell?
What is needed
<div class="group">
<input type="text" class="control">
<span class="addon">@</span>
</div>
.group {
width: 100%;
display: table;
table-layout: fixed;}
.addon,
.control {
display: table-cell;
padding: 10px; }
.control {
background-color: #eee;
border: 1px solid red;}
.addon {
width:30px;
background-color: #cccccc;}
Answer the question
In order to leave comments, you need to log in
You are trying to mix the logic of storing a list of topics with the logic of displaying them.
// add menu item here
and
public void click(object sender, EventArgs e)
{
// procedure for changing textbox1.text here
}
It shouldn't be in this class.
Form filling should occur in the form class using ready-made objects of the Lesson class.
Have you tried just doing
.control {
background-color: #eee;
width: 100%;
border: 1px solid red;}
Use calc() to calculate the input width. Just don't forget the border and padding to take into account.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question