473,378 Members | 1,422 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,378 software developers and data experts.

Table row with an even hight

Hi,

I've a table with three rows.
The middle row gets my content out of a database.
Its hight is not defined, so it has the hight it needs to display all
the content.

But I need the row in an even pixel hight, because of my backgound
graphic has to fit into the design.

Has anyone an idea, how to do this?

Best greetings,
Christoph Digwa

Oct 22 '06 #1
5 1299
sp**@djhotice.de wrote:
Hi,

I've a table with three rows.
The middle row gets my content out of a database.
Its hight is not defined, so it has the hight it needs to display all
the content.

But I need the row in an even pixel hight, because of my backgound
graphic has to fit into the design.

Has anyone an idea, how to do this?

Best greetings,
Christoph Digwa
Impossible. The height will, amongst other things, be defined by the
font size the user has set in the browser. This you cannot control.

Even if you didn't get the information from a database you'd have no
control over this. All you can do is recommend.

You need to change your design so that your graphic is not depending on
an even pixel size. Try alt.html for more help.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 22 '06 #2
I'm guessing you could make the font 12px with CSS, make sure there is
no padding in the table then declare the height of the column as 12.
<td height="12">

sp**@djhotice.de wrote:
Hi,

I've a table with three rows.
The middle row gets my content out of a database.
Its hight is not defined, so it has the hight it needs to display all
the content.

But I need the row in an even pixel hight, because of my backgound
graphic has to fit into the design.

Has anyone an idea, how to do this?

Best greetings,
Christoph Digwa
Oct 22 '06 #3
Oh, thats right, you don't want to define a height. You can get an even
12px font height with css though. Then, declare the padding and
cellspacing in px too.

stryfedll wrote:
I'm guessing you could make the font 12px with CSS, make sure there is
no padding in the table then declare the height of the column as 12.
<td height="12">

sp**@djhotice.de wrote:
Hi,

I've a table with three rows.
The middle row gets my content out of a database.
Its hight is not defined, so it has the hight it needs to display all
the content.

But I need the row in an even pixel hight, because of my backgound
graphic has to fit into the design.

Has anyone an idea, how to do this?

Best greetings,
Christoph Digwa
Oct 22 '06 #4
stryfedll wrote:
I'm guessing you could make the font 12px with CSS, make sure there is
no padding in the table then declare the height of the column as 12.
<td height="12">

sp**@djhotice.de wrote:
>>Hi,

I've a table with three rows.
The middle row gets my content out of a database.
Its hight is not defined, so it has the hight it needs to display all
the content.

But I need the row in an even pixel hight, because of my backgound
graphic has to fit into the design.

Has anyone an idea, how to do this?

Best greetings,
Christoph Digwa

The problem is, that's only a recommendation. I can change it in my
browser. And then the layout falls apart.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 22 '06 #5
Hey,

OK, thank you. My design shold be independent of the font size. So I've
to chage my design.

Best Greetings
Christoph Digwa

Oct 22 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Carl Gilbert | last post by:
Hi I am currently writing a site that utilises tables. I have one page that links to a second page. The only problem is that when I link to the second page, the table loads up with a...
36
by: toedipper | last post by:
Hello, I am designing a table of vehicle types, nothing special, just a list of unique vehicle types such as truck, lorry, bike, motor bike, plane, tractor etc etc For the table design I am...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
1
by: dschectman | last post by:
I have an interesting issue. I need to implement a dynamic table to mimic a select list. Each time you double click from the master list, a row is added to the list of selected items. The list...
6
by: guffe | last post by:
I'm trying to display data in a datagrid. The rows are hours of the day and the coloums are days of the week. I need individual cell hight to display that a task takes more than one hour. How can it...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
11
by: Channa | last post by:
Dear all I have problem with my Internet usage. Everyday i used normal i never download everything sometime. But the ISP alway alert messaged to me that your usage is hight and maybe...
6
by: Jeff | last post by:
....still new to visual studio 2005 and vb.net I have a master page with a content placeholder. The content page has a table in the content placeholder (placed there via dragging from the...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.