Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How does the browser determine where to place positioned elements?

user-image
Question ajoutée par Feras Abualrub , Web Solutions Manager , Qistas for Information Technology
Date de publication: 2015/04/23
Faran Ahmed khan
par Faran Ahmed khan , Sr Software Engineer , Next Bridge Pvt Ltd

What i can comment on this is If you build a Web page and don't include any positioning rules the Web browser will decide how to place your elements on the page. This is called normal flow. It is the normal flow of elements on the Web page. Browsers will display elements in the following fashion:

  1. In the order the elements appear in the HTML - the first element after the <body> tag appears first, the second second, and so on Images are inline elements, so they will appear with their bottom edge aligned with the baseline of the text they are next to. And any text following an image will line up on the baseline of the image.

    If you're not sure whether an item is positioned as normal flow, you can set that position with the CSS position property:

 

 

 

position: static;

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?