Tagged Questions
0
votes
0answers
5 views
Change series in a chart with data defined in a HTML table
I'm using this type of chart in my aplication:
http://www.highcharts.com/demo/column-parsed
I made a html table and plot a chart based on its rows and columns. But, just as the example in the link, ...
4
votes
2answers
28 views
php: html table from random sequence in a for loop
Because I am a music nerd, I've made a little script to generate a random rhythmic pattern:
echo "X ";
for ($beats=rand(0,11); $beats>0; $beats--){
$xo=rand(0,2);
if ($xo==0){
echo "x ";
...
0
votes
0answers
3 views
MVC - jqPagination - How to page a table?
The official jqPagination documentation is a bit bare, and doesn't provide much instruction beyond placing the pager on your webpage. I have a table inside a partial view that replaces a <div> ...
2
votes
2answers
29 views
Layout with 2 variable-height columns
I'm trying to create the following 2-column layout in my webpage:
+-------+---+
| | |
| | |
| A | B |
| | |
| | |
| | |
| +---+
| | |
| ...
0
votes
1answer
12 views
MVC - HTML Table only displays outer border
I have an MVC view with a table that gets filled (from a partial view) with one set of <thead><th></th></thead> and then a collection of <tr></tr>. In the full ...
0
votes
1answer
25 views
How to remove white horizontal line in HTML tables
I think I've searched every corner of the interwebs to try and figure this problem out. I have found similar issues across the board, but none of the solutions have worked for me (either that, or I ...
0
votes
2answers
43 views
Calculator not working [closed]
I have an annoying bug in the calculator I have devised. For some reason, Chrome says "Unexpected token }" when a button is clicked. This makes no sense. I believe that by temporarily deleting the ...
0
votes
0answers
6 views
Semantically designed data table with hierarchical rows sharing parent columns
Sorry for the awkward title....
How could I display the following array as an html table that semantically (I'll worry about visually next) expresses that the items are all of the same data type ...
0
votes
0answers
27 views
Paste (Excel-) Table into Form, convert to HTML and process Result after Submit
What we’re trying to accomplish is: Copy a simple, two column table (ECTS, grade) from a database application, paste the content into a HTML form, having it converted to HTML and submitted to do some ...
0
votes
1answer
16 views
Table colspan & rowspan
I have a little problem with the colspan and rowspan. I'm trying to make the following table :
But I'm stuck at the second subtitle with the row span:
<table border="1">
...
0
votes
1answer
28 views
Looping over DataTable contents on aspx page
I have an aspx page which contains a 3-page multiview. On the second page I have a asp:listview which allows me to insert/update/delete into a DataTable which I have defined in my aspx.cs file.
This ...
0
votes
3answers
77 views
Is there a shorter way for me to write this code?
I'm styling a table and I'm using various first-child, nth-child and last-child delcarations such as the below:
.thankYouTable tbody tr td:first-child,
.thankYouTable tbody tr td:nth-child(4),
...
0
votes
1answer
28 views
Set input height 100% of parent
I have a little problem with setting input (type text) height to fit 100% of parents (td) height. I even tried to iterate through every input and set it height manually with jQuery, but it takes quite ...
0
votes
2answers
31 views
Displaying XML Contents in a table with php
I am trying to have the contents of this XML located at http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=W1AW (I'm using the W1AW call sign as an example) displayed in a table ...
-2
votes
2answers
43 views
Parsing HTML in PHP with Simple HTML DOM Parser
I know that this seems quite easy, but its my first day and I am totally locked with this problem:
I want to parse and HTML site. The HTML site is a query like the following Petrol price from Spanish ...
0
votes
1answer
30 views
Table Cell padding-bottom in CSS not working
I have a table on my website where each table cell contains an image that is 138px X 138px. When I style in CSS to have padding:0px; the table cell ends up with the size of 138px by 143px. I have not ...
0
votes
2answers
45 views
Perl: Scrubbing most HTML tags but formatting tables in ASCII
I'm passing downloaded HTML to STDIN and then wiping all tags but the table markup. I want to render the tables based on the remaining instances of table, tr, and td so the tables end up "\t" or "|" ...
2
votes
1answer
45 views
Add value from dropdown to html attribute
I'm trying to add a dropdown value to a attribute in the table below. But it doesn't seem to work using the .attr() from jQuery
This is the jquery:
$("#datasize").change(function(){
var ...
1
vote
1answer
31 views
Weird table repeating when displaying mysql results
Theres nothing wrong with the results itself.
The image should explain itself.
The table basicly is repeating the whole table for each results instead of displaying the results with multiple lines ...
0
votes
2answers
21 views
How to change format of long text in cell?
How can one change the text from displaying like abcdefghijklmnopqrstuvwxyz in a cell to :
abc
def
ghi
...?
I can either hide some of the text (abcdef...) or make it appear as a verry ugly long cell.
...
0
votes
1answer
17 views
Use Greasemonkey to change row format based on one cell's contents?
I have a table full of cells that look like this:
<tr class="dataRow odd">
<td class="actionColumn"> someAction </td>
<th class=" dataCell booleanColumn" scope="row">
...
7
votes
4answers
171 views
How do we implement a cancel in plain javascript?
I have a page and I display data in a table.
In each table I have a column with a checkbox which if is checked the user can modify the specific row via javascript.
This is done as its td encapsulates ...
0
votes
2answers
33 views
Could a form be enclosed in a cell of an html table?
I am using a table to allow a user to see/modify/delete data (more on this here).
I am interested in knowing what are elements that should NOT be enclosed in a cell of an HTML table?
So far I have ...
0
votes
2answers
50 views
Highlight every other row of a table in a foreach loop and highlight columns depending on value of row
I had a really long description written for my problem, but i've progressed and have managed to get it partially working... I basically want every other row in a table to be a different color - and to ...
2
votes
6answers
87 views
Stack 2 <td> over eachother
I have a simple (?) little question about tables. I'm currently working on making a website responsive but the issue is, I need to make it responsive without touching the content of the page. So ...
1
vote
5answers
99 views
Text shifting on bold hover
I have simple tables like this:
<table border="1">
<tr>
<td>title1</td>
<td>title2</td>
<td>title3</td>
</tr>
<tr>
...
1
vote
2answers
153 views
Insert th in thead
I want to insert a th tag inside tr of thead element of a table. I am using insertCell method of row object created under table.tHead, which is actually inserting td. Is there any JavaScript solution ...
0
votes
1answer
124 views
Fixed divider in the table
I'm having some troubles with my tables as i can't seem to fixed the divider as the text increases. It will move the divider by a few pixel as the text gets longer. I will post a few screen shots for ...
1
vote
5answers
8k views
Removing border from table cell
I no this is a dumb question but I have just totally forgot...
I have a table and I want to remove each border around each cell so that there is just one border which is just around the table
My ...
1
vote
5answers
2k views
Email template boilerplate - unable to set row height
I'm using this boilerplate: http://htmlemailboilerplate.com/
I want a table row to be 6px of height and one row to be 1px of height. No matter what I try the table rows wont go less than a height of ...
1
vote
2answers
3k views
Html table - how to force TD width when table width is 100%?
Is there a way to set the length of all TD cells in case when whole table width is set to 100%? In other words I want all table cells moved to the left (but I can't change table width, because this is ...
1
vote
5answers
354 views
Sorting a HTML table with PHP after input from database
I'm creating a HTML table with data-rows from a MySQL database and some calculated values, like this:
<?php
$connection = mysql_connect('localhost','root','') or die('Connection failed!');
...
5
votes
1answer
5k views
How do I make one table column fill all the spare horizontal space?
I have a HTML table consisting of 3 columns. It has a fixed width of 600px.
<table>
<tr>
<td>Name</td>
<td>Qty</td>
<td>Actions</td>
...
1
vote
2answers
170 views
HTML table caption and total height of the table
I have a table in a div element. The div is used as a placeholder only (it has "fixed" position and hard defined sizes/left/top). The table has 100% width and height (of the div).
When I use internal ...
1
vote
2answers
1k views
How can I make my HTML table be 100% wide AND have all of its cells only be as wide as their contents?
I have this grid:
If I change the tables width from 100% to auto, table collapses horizontally.
Which is not desirable. How can I make the table columns (td elements) shrink automatically to fit ...
1
vote
4answers
3k views
Putting a table inside a hyperlink - not working in IE
I have a table inside a hyperlink:
<a href="/"><table><tr><td>...</td></tr></table></a>
In all browsers, hovering over the table changes the pointer ...
2
votes
3answers
3k views
How to prepend a tr to after first tr at a table? [duplicate]
Possible Duplicate:
Inserting new table row after the first table row using JQuery
I have populated a tr for my table and I want to prepend it after the firts tr. I use this:
...
70
votes
6answers
58k views
alternate table row color by css?
i am using a table with alternate row color with this.
css
tr.d0 td {
background-color: #CC9999; color: black;
}
tr.d1 td {
background-color: #9999CC; color: black;
}
html
<table>
...
17
votes
8answers
12k views
Actual table Vs. Div table
This
<table>
<tr>
<td>Hello</td>
<td>World</td>
</tr>
</table>
Can be done with this:
<div>
<div ...
4
votes
3answers
13k views
Output a php multi-dimensional array to a html table
I have been banging my head against the wall with this one for nearly a week now, and am no closer than I was the first day.
I have a form that has 8 columns and a variable number of rows which I ...
53
votes
8answers
57k views
HTML colspan in CSS
I'm trying to construct a two row table similar to following:
---
-
where the bottom is filling the space of the upper row. Is this possible using CSS?
Edit: as I was afraid of, there's no way to ...
28
votes
8answers
71k views
how to remove unwanted space between rows and columns in table
how do I remove the extra space between the rows and columns in the table.
I've tried changing the margin, padding, and various border properties on the table and tr and td.
I want the pictures to ...
40
votes
10answers
16k views
Why is textarea filled with mysterious white spaces?
I have a simple text area in a form like so:
<textarea style="width:350px; height:80px;" cols="42" rows="5" name="sitelink">
<?php if($siteLink_val) echo $siteLink_val;?>
...
16
votes
10answers
42k views
html - table row like a link
i can't set my table row as link to something. I can use only css and html. I tried differenet things from div in row to something another, but still can't make it works.
6
votes
5answers
19k views
add scrollbar to table
I want to add a vertical and horizontal scroll bar to the table with fixed header. By using thead and tbody tags I could add scrollbar in firefox but IE does not support the overflow:auto property in ...
41
votes
6answers
76k views
CSS - Border only inside the table
I am trying to figure out how to add border only inside the table. When I do:
table {
border: 0;
}
table td, table th {
border: 1px solid black;
}
The border is around the whole table and ...
41
votes
8answers
105k views
HTML TD wrap text
I want to wrap a text that is added to the TD.
I have tried with style="word-wrap: break-word;" width="15%".
But the wrap is not happening. Is it mandatory to give 100% width?
I have other controls to ...
15
votes
6answers
43k views
Table cell widths - fixing width, wrapping/truncating long words
I have a table containing cells with text of various lengths. It is essential that all of the table cells are of the same width. If this means truncating long words or forcing a break in long words ...
45
votes
6answers
54k views
How do I hide the middle of a table using jQuery?
I have a really long 3 column table. I would like to
<table>
<tr><td>Column1</td><td>Column2</td></tr>
...
237
votes
16answers
154k views
Make a div fill the remaining screen space
I am currently working on a web application, where I want the content to fill the height of the entire screen.
The page has a header, which contains a logo, and account information. This could be an ...