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.
Enable Mini Page LayoutFirst,navigate to and check “Enable Hover Details” which can enable Mini Page Layout mode in your Salesforce.
Usage of Mini Page LayoutMini Page Layout also can be used in Visualforce Pages with only a few lines of code, like the following.
Customize Mini Page LayoutIf you want to customize them,just navigate to “Page Layouts” and find the Mini Page Layout link. Select which fields should be displayed, and don’t forget to save your changes.