Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How does the browser determine where to place positioned elements?

user-image
Question added by Feras Abualrub , Web Solutions Manager , Qistas for Information Technology
Date Posted: 2015/04/23
Faran Ahmed khan
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.