Use Salesforce Mini Page Layout in Visualforce Page

Mini Page Layout is a nice feature of Salesforce,it can be maintained for every parent object in master-detail or lookup relationship in order to display additional record information without jumping to its detail page. MiniPageLayout1

Enable Mini Page Layout

First,navigate to Customize > User Interface and check “Enable Hover Details” which can enable Mini Page Layout mode in your Salesforce. User Interface

Usage of Mini Page Layout

Mini Page Layout also can be used in Visualforce Pages with only a few lines of code, like the following.
MiniPageLayout2

Customize Mini Page Layout

If you want to customize them,just navigate to “Page Layouts” and find the Mini Page Layout link. MiniPageLayout3 Select which fields should be displayed, and don’t forget to save your changes. MiniPageLayout4
Enjoy it!