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

Hieght problem in css

I would like a dynamic height in css for my center stuff,
I've got a top that 78px high, and a bottom thats 20px high, so I want
the center to be 100% minus 98px, is it possible to do this??

The other stuff I tried didn't work, I tried to set top:78; and
bottom:20; it only took 1 of them , and only if the position was
absolute.

Anyone who got a solution?
Jul 21 '05 #1
1 1658
Richard wrote;
I would like a dynamic height in css for my center stuff,
I've got a top that 78px high, and a bottom thats 20px high, so I want
the center to be 100% minus 98px, is it possible to do this??
Yes.
xml {height:100%;position:absolute}
top {height:78px;}
center {position:absolute;top:78px;bottom:20px;overflow:a uto;}
bottom {position:absolute;bottom:0;height:20px;}

<xml>
<top/>
<center/>
<bottom/>
</xml>
The other stuff I tried didn't work, I tried to set top:78; and
bottom:20; it only took 1 of them , and only if the position was
absolute.


You tried nothing. bottom:20 means same as "" because no unit. "It" might
also be some browswer that don't support much CSS. Like IE. URLs might
have made clearer what you ahe tried.

I hope you are not trying to do this in WWW, with something but images on
top/bottom elelments, as your text will spill out those containers.

Better idea would be to allow center part to take whatever width, and
push bottom part under window border edge, when it is longer.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #2

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

Similar topics

2
by: mr_burns | last post by:
Hi there, Is it possible to use PHP to change the values of XML nodes in an XML file witout having to extract all the node values, change the variable I want, use PHP to generate the node...
13
by: Martin Ho | last post by:
I know this must be trivial for many of you. But I am playing with this and can't figure it out. I have a form, on that form is one panel which has 3 textboxes, when I run my program and...
8
by: ctiggerf | last post by:
I was hopeing someone could help me out here. Been stumped on this one all day. This function 1. Checks uploaded files. 2. Creates two resized images from each (a full size, and a...
3
by: Suko | last post by:
If anyone could help explain this, thanks, If i try to compile a headerfile with the entry:- typedef struct T *T; I recieve this message from the compiler:- C:\Program Files\Miracle...
11
by: mars505 | last post by:
I've been reading the overwhelmingly arrogant replies to why people "need to control" their content without having to remove scoll bars... There was an invention a few years back ... it is called...
4
by: Pubs | last post by:
Hi all, I have application being written in C# where I have to calculate the text pixel height and width of the line being typed in rich text box. I need to get the pixel height of the character...
12
by: Keith G Hicks | last post by:
I have a client that I wrote an MS Access app for quite a few years ago where they need to know the height in inches of a block of text for billing their customers. The MS Access app opens Word in...
17
by: dijnr | last post by:
Issue NOT use This script makes the popup sit behind the main webpage once clicked off it and if another image is chosen to enlarge the image will not be seen as it is still sits behind the main...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.