Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to change the top margin using css?

ApexMeisterNov 30 2021 — edited Nov 30 2021

I'm using apex 20.2 and universal theme.
I'm using the standard page template and I want to reduce the top margin see the one in red below
image.pngBelow is the html generated by Apex and I need to change the bold from 48px to 40 px
<div class="t-Body-main" style="margin-top: 48px;">
<div class="t-Body-title" id="t_Body_title" style="top: 48px**;**"></div>
<div class="t-Body-content" id="t_Body_content"><div id="t_Body_content_offset" style="height: 0px;"></div>
<main id="main" class="t-Body-mainContent">
I tried the css below but it does not work, thanks
.t-Body-title {
margin-top:40px
}

This post has been answered by Chandler Bing on Dec 1 2021
Jump to Answer
Comments
Post Details
Added on Nov 30 2021
2 comments
938 views