Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture on the top
Message
De
27/12/2010 02:30:53
 
Information générale
Forum:
Internet
Catégorie:
HTML
Divers
Thread ID:
01493788
Message ID:
01493890
Vues:
42
>Hi
>
>
>I inserted a picture to be the header of my site.
> However my picture is not place on the real top, there is a blank space above the picture.
>Is there a way to remove this blank ?
>
>Also, is there some html command to center my site ?
>
>
>Moises

Hi Moises,

the body tag, by default (=no defines) has top, bottom, left and right borders that you have to set to 0 explicitly.

To center your page contents depends on how your page is designed.
Is it based on a table(s), then you can center the main table.
Is it based on layers, then you'll have to use css and position the layer relatively to the left and right.
something like this might do:

div style="position: relative; float: none; margin-left: auto; margin-right: auto; " id="myMasterDiv"

All other layers, that are part of this master can be positioned absolutely.

However, as I don't know your page design, you might do a search for "css center layer". You will find lots of possible ways that may be better usable with your pages structure.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform