to the middle vertically, but
> am having a hard time.
>
> Here is the code on page.htm:
>
>
>
> And the css code:
>
> body
> {
> margin-top: 0;
> margin-left: auto;
> margin-right: auto;
> margin-bottom: 0;
> background-color: #003300;
> text-align: center;
> }
> #headerbox
> {
> margin-left: auto;
> margin-right: auto;
> text-align: left;
> width: 750px;
> height: 75px;
> border: 1px solid #000000;
> background-color: #005825;
> vertical-align: middle;
> }
> #houselogo
> {
> float: left;
> width: 233px;
> height: 73px;
> border: 0px none;
> }
> #logo
> {
> float: left;
> width: 282px;
> height: 35px;
> border: 0px none;
> }
>
> I've been trying for a long time now to fix this, any help is appreciated.
> Validator says CSS and page are both valid but don't get it...
If I understand what you want, you need margin-top:20px on
#logo.
--
Els
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Re: CSS Help Needed!!! -- Posted by Els on 03-13-04 16:55
Els wrote:
> If I understand what you want, you need margin-top:20px on #logo.
Oops: and margin-top:1px on #houselogo.
--
Els
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Re: CSS Help Needed!!! -- Posted by Sharif T. Karim on 03-13-04 19:46
Els said what up foo and said:
> Els wrote:
>
>> If I understand what you want, you need margin-top:20px on #logo.
>
> Oops: and margin-top:1px on #houselogo.
well that aligned the images right, but now there is extra space UNDER
#houselogo in mozilla.
--
Sharif T. Karim
...you expected some spam here?...
Re: CSS Help Needed!!! -- Posted by Els on 03-14-04 08:04
Sharif T. Karim wrote:
> Els said what up foo and said:
>
>>Els wrote:
>>
>>>If I understand what you want, you need margin-top:20px on #logo.
>>
>>Oops: and margin-top:1px on #houselogo.
>
> well that aligned the images right, but now there is extra space UNDER
> #houselogo in mozilla.
You mean between the bottom of #houselogo and the bottom of
#headerbox? Not in my Mozilla 1.4, Firebird and Firefox..
Tried with and without doctype strict, no difference.
height of headerbox is 75px, the houselogo is 73 px, so with
1px space above it, there should also be 1px space beneath
it. And I can hardly see that 1px, actually.
--
Els
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Discuss this issue in the live
discussion
forums now.