Peter Chan
asked on
Adjust list
Hi,
Where to adjust to have clear boundary to each record below?
http://my-friend.co/Test_rec4/Default.aspx?userid=mc23
Here are two records below and I expect to have one clear boundary to each record
Where to adjust to have clear boundary to each record below?
http://my-friend.co/Test_rec4/Default.aspx?userid=mc23
Here are two records below and I expect to have one clear boundary to each record
try this
you cannot fix row height, since it is 50-60px each, because image is 150px height
<table style="width:100%"...
<colgroup>
<col width=140>
<col>
<col width=140>
<col>
<col width=170>
</colgroup>
<tr>...</tr>
you cannot fix row height, since it is 50-60px each, because image is 150px height
ASKER
Thanks to all.
Huseyin,
Within my current .aspx, I cannot find out relevant "table" to such list.
Huseyin,
Within my current .aspx, I cannot find out relevant "table" to such list.
you have that table!
it is in javascript1.js, line 158
<table style="width:70%" class="table table-responsive table-striped table-hover">
>>>> add line 2-8 above here... and change 70% to 100%
<tbody>
it is in javascript1.js, line 158
html += "<table style='width:70%' class='table table-responsive table-striped table-hover'>";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry, I've put this line
but I do not see the boundary, after re-deployment
html += "<colgroup><col width=140 /><col /><col width=140 /><col /><col width=170/></colgroup>";
but I do not see the boundary, after re-deployment
first, you did not replace your code with those two lines
second, even you did not add the line above...
so nothing is changed of course...
http://my-friend.co/Test_rec4/JavaScript1.js
second, even you did not add the line above...
so nothing is changed of course...
http://my-friend.co/Test_rec4/JavaScript1.js
but I do not see the boundary, after re-deployment
does it mean, you tried, did not work and removed again?
maybe I could not get what you are trying to do...
are you trying to separate house data?
try this
+ css
see this demo
https://jsfiddle.net/u6au4jm4/
try this
$.each(response.d, function (index, house) {
var img = (house.house_name != "") ? "<img class='imgHouse' src='ImageHandler.ashx?ImID=" + house.raised_by_user_id + "' />" : "";
html += "<tr class='houserow' data-id='" + house.house_name + "'>";
html += "<td>House Name: </td><td colspan=3>" + house.house_name + "</td>";
html += "<td rowspan=3>" + img + "</td>"
html += "</tr>";
html += "<tr class='houserow'>";
html += "<td>Address: </td><td>" + house.address1 + "</td>";
html += "<td colspan=2>" + house.address2 + "</td>";
html += "</tr>";
html += "<tr class='houserow'>";
html += "<td>Price: </td><td>" + house.price_curr + "</td>";
html += "<td>" + house.price + "</td>";
html += "</tr>";
html += "<tr><td colspan=5 class="seperator"></td></tr>";
});
+ css
.seperator{
height:50px;
}
see this demo
https://jsfiddle.net/u6au4jm4/
ASKER
I add this line
and the css part, but I still see no change, after re-deployment.
html += "<tr><td colspan=5 class='seperator'></td></tr>";
and the css part, but I still see no change, after re-deployment.
ASKER
Thanks a lot.
I re-deploy it but I do not see white boundary, between the rows. Any advice?
I re-deploy it but I do not see white boundary, between the rows. Any advice?
I see this css
and can see 15px white area between houses...
it looks ok...
.seperator {
height: 15px;
background-color: white;
}
and can see 15px white area between houses...
it looks ok...
ASKER
HI HainKurt,
Can you please see this
https://www.experts-exchange.com/questions/29042667/Add-button.html
if available?
Can you please see this
https://www.experts-exchange.com/questions/29042667/Add-button.html
if available?
Jquery code
Open in new window