473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to avoid distributing rows evenly vertically in a table

I have a table with a spanned row looking like this:
+----------+---------+
| Spanned | Row A |
| row | |
| (several +---------+
| lines of | Row B |
| text) | |
+----------+---------+
The contents of Row A and B are vertically top-aligned, but the Rows are also distributed evenly vertically to have the same height as the spanned row.
I want the result ot be like this instread:
+----------+---------+
| Spanned | Row A |
| row +---------+
| (several | Row B |
| lines of | |
| text) | |
+----------+---------+
That is, I want Row A to be as small as possible and only Row B to expand vertically. Can this be done? I have tried various styling through CSS, including min-height, but the rows always seem to be distributed evenly.
In reality, I have more rows than A and B, and I want only the last one to expand vertically beyond the actual contents. I cannot predict the actual amount of content in any of the rows, so explicitly setting the height won't work.
Sep 11 '13 #1
6 1803
Sorry, the tables should look like this:
Expand|Select|Wrap|Line Numbers
  1. +----------+---------+
  2. | Spanned  |  Row A  |
  3. | row      |         |
  4. | (several +---------+
  5. | lines of |  Row B  |
  6. | text)    |         |
  7. +----------+---------+
Expand|Select|Wrap|Line Numbers
  1. +----------+---------+
  2. | Spanned  |  Row A  |
  3. | row      +---------+
  4. | (several |  Row B  |
  5. | lines of |         |
  6. | text)    |         |
  7. +----------+---------+
Sep 11 '13 #2
ariful alam
185 100+
Hello,
Do you need 1st column (single row) = 2nd column (two row)?

with regards
Ariful Alam
Sep 11 '13 #3
I'm not sure I understand your question. If you mean column widths, the 1st column will have a fixed width, but the 2nd column doesn't need to be. However, I feel that column widths shouldn't affect the question?
Sep 12 '13 #4
Rabbit
12,516 Expert Mod 8TB
Can't you give Row A a fixed height?
Sep 12 '13 #5
No, because the content of Row A will vary. The point is that no row except the last should be higher than needed.
I will probably find another layout for this.
Sep 12 '13 #6
Rabbit
12,516 Expert Mod 8TB
Rather than a table for layout, have you tried divs instead?
Sep 12 '13 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: bubbles | last post by:
i have a HTML file and it already has a HTML table and a few rows created by default.. however, i would like to add more rows to this table programmatically may i know how?
11
by: suma | last post by:
Hello, I want to delete duplicate rows in a table when no primary key is defined. For eg: If we have table1 with data as below, Suma 23 100 Suma 23 100 I want to delete a row from this...
2
by: q2005 | last post by:
Hi, all How do I get the number of rows in a table? jack
6
by: Brendan.Collins | last post by:
Hi I have a javascript problem that has been annoying me for two days now and thought that a javascript expert might have the magic solution. I am populating a table dynamically from the...
10
by: Steve Atkins | last post by:
I have a large table (potentially tens or hundreds of millions of rows) and I need to extract some number of these rows, defined by an integer primary key. So, the obvious answer is select *...
1
by: Andy | last post by:
Hi Gang I have a simple single table that has many duplicate rows in them. The distinctrows only works on more than one table. Is there a quick and easy way to select only the distict rows...
2
by: Muzzy | last post by:
Hi, I've used information on these newsgroups to build many pages. So I thought that now that I have my script working (something that I've been working on for about a week), I should post it so...
9
by: bill | last post by:
I am sure there must be an easy way to determine the number of rows in a table, but I can't find it. I appreciate the courtesy and patience ng members have shown this mysql novice. bill
2
by: kveerareddy | last post by:
How can i get the total rows of a table: If i use "select count(*) from <tablename>" it will take lot of time to get the total row count. for example in MSSQL we have "SELECT ROWS FROM...
0
by: jeddiki | last post by:
Hi, I need to delete excess rows from my table, but ı am not sure how to do it. I don't need more than two updates to any item per day so I want to delete extra ones from the table. I can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.