Hello!
I want to create an horizontal bar with some elements on it, some text,
a text box for searches, and date time, just below the top part
of the page.
What's the best way to create a vertical-center content with XHTML 1.0
Strict and CSS2?
Thanks!
2006/2/10, Roberto Santana [EMAIL PROTECTED]:
Hello!
I want to create an horizontal bar with some elements on it, some text,
a text box for searches, and date time, just below the top part
of the page.
What's the best way to create a vertical-center content with XHTML 1.0
Strict and
Roberto Santana wrote:
I want to create an horizontal bar with some elements on it, some text,
a text box for searches, and date time, just below the top part of the
page.
What's the best way to create a vertical-center content with XHTML 1.0
Strict and CSS2?
Don't know about best, but...
I want to create an horizontal
bar with some elements on it, some text,
a text box for searches, and date time, just below the top part
of the page.
I've used this example:
http://www.wellstyled.com/css-single-line-vertical-centering.html
Thanks Nuno and Bert!
Vertical align, it really works ? Example:style#box{widht:200px;height:200px}#box span{float:left}#box img{vertical-align:middle}/stylediv id=box
spanSome text/spanimg src="">/divAny idea ?Thanks
I know that making HEIGHT and LINE-HEIGHT equal for text - will make ONE row valign:center.
But what about 2 rows of text?
Is there some way to align even two rows of text this way?-- glhf,akella.
akella schrieb:
I know that making HEIGHT and LINE-HEIGHT equal for text - will make ONE row
valign:center.
But what about 2 rows of text?
Is there some way to align even two rows of text this way?
You'll need a container of known height
http://www.brunildo.org/test/vertmiddle.html
Ingo
Sorry, just noted that Bruno Fassino's explanation of the technique he
developed can be better understood here:
http://www.brunildo.org/test/img_center.html
with a link to the text centering method I already mentioned.
Ingo
**
The
Hi
vertical-align doesn't really work the way valign in a table cell works
- it applies to inline elements and table cell elements only (see css2
rec 10.8.1).
You have to approach the matter from the other way, remove the table
layout hat and put on a box model hat :
div id=topthing
div
yes, that would work great, however...i can't force the height (sorry i
didn't mention this previously) because it will wonk up another div where
the height is being set by javascript to fill all the available space in the
window it can (minus the top div height of course)...
what i have done,
10 matches
Mail list logo