Posted by Neredbojias on 04/29/06 01:53
To further the education of mankind, "Trevor" <trevordixon@gmail.com>
vouchsafed:
> Note the following html code:
>
> <div id="linkbar">
> <p>
> links
> </p>
> </div>
>
> Now take a look at this CSS:
>
> #linkbar {
> height: 30px;
> text-align: center;
> }
>
> #linkbar p {
> vertical-align: middle;
> }
>
> Why isn't the text in the div aligned vertically? What's the best way
> to do what I want?
Add this line to #linkbar p {
line-height: 30px;
--
Neredbojias
Infinity has its limits.
Navigation:
[Reply to this message]
|