On Jan 16, 2011, at 2:44 PM, 李硕 wrote:
> Thanks!
>
> I know the reason now, the vertical-align attribute
> cannot be put together with float attribute.
Not really the issue. If you float an element, its display will be 'block' and
not 'table-cell'.
see also
http://www.w3.org/TR/CSS21/visuren.
Thanks!
I know the reason now, the vertical-align attribute
cannot be put together with float attribute.
2011/1/16 John D
> This CSS works:
>
> #test {
> border: 5px double #eee;
> display: table-cell;
> background-color: #FF;
> height: 300px;
> width: 400px;
> mar
This CSS works:
#test {
border: 5px double #eee;
display: table-cell;
background-color: #FF;
height: 300px;
width: 400px;
margin: 0 auto;
font-size: 24px;
line-height: 36px;
vertical-align: middle;
text-align: center;
}
I have ignored branding and ins
Hello,
I've made a page, but I don't know how
to make the top left multi-line text become
vertical middle.
I want to change the content of the text
later, so I want it to be vertical middle by
itself.
The page:
http://www.ffb-all.com/my-test/1.html
I've tried
#site-description {
display: