Jump to content

Recommended Posts

Posted

The reason for the space in Firefx is that you have a p tag

 

About

 

right at the top of the #body div which has no top padding or margin and the p tag has a default top margin in Firefox whch forces a space.

 

If you add

p { margin-top: 0; }

to your stylesheet the space will disappear. However, this will affect all p tags elsewhere so it would be preferable to add a padding-top to #body but it is a good idea to make padding the same for all browsers for p tags and some other tags by including

 

p { margin: 3px 0; }

 

which makes top and bottom padding 3px and side padding 0 so that paragraph separation is the same in all browsers.

 

#body{ padding-top: 5px;

background-image: url('../img/hbfbg.png');

margin: auto;

width: 800px;

background-color: #544E4F;

}

 

You have an incorrect

tag here shown as :-

 

 

About

...........

 

You don't need it when the padding-top is added to #body and you should not use

tags to create line space, try to use padding or margins to the following element.

 

Experts prefer to use ... instead of ...

 

.. is deprecated, use text-decoration: underline; in a class instead.

Posted (edited)
The reason for the space in Firefx is that you have a p tag

 

About

 

right at the top of the #body div which has no top padding or margin and the p tag has a default top margin in Firefox whch forces a space.

 

If you add

p { margin-top: 0; }

to your stylesheet the space will disappear. However, this will affect all p tags elsewhere so it would be preferable to add a padding-top to #body but it is a good idea to make padding the same for all browsers for p tags and some other tags by including

 

p { margin: 3px 0; }

 

which makes top and bottom padding 3px and side padding 0 so that paragraph separation is the same in all browsers.

 

#body{ padding-top: 5px;

background-image: url('../img/hbfbg.png');

margin: auto;

width: 800px;

background-color: #544E4F;

}

 

You have an incorrect

tag here shown as :-

 

 

About

...........

 

You don't need it when the padding-top is added to #body and you should not use

tags to create line space, try to use padding or margins to the following element.

 

Experts prefer to use ... instead of ...

 

.. is deprecated, use text-decoration: underline; in a class instead.

 

I'l admit i have no idea why that works, but it did. Thanks!

 

And thanks for pointing out the incorrect line break, i had a bunch of them in here to try somthing and i must have missed that one when removing them.

Edited by delirium

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...