0
I’m developing a site, Administrative side, already set up Masterpage and now defining the Layout of the pages daughters, where I came across a problem, which I need help. This is the code that matters on the daughter page:
<asp:Content ID="ContentFormAdmin" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="FormAdminBase" class="container">
<div class="row">
<header id="HeaderFormAdmin">
<h2>Cadastro dos Serviços Prestados</h2>
</header>
</div>
</div>
</asp:Content>
So I created the CSS
as follows:
#FormAdminBase {
background-color: #285ce6;
max-width: 1170px;
margin-left: auto;
margin-right: auto;
margin-top: 5px;
margin-bottom: 3px;
text-align: center;
font-size: 18px;
color: whitesmoke;
padding: 15px;
height: calc(100% - 5px);
border: 3px red ridge;
}
#FormAdminBase h2 {
text-align: left;
color: white;
text-shadow: 4px 4px 5px rgba(31, 54, 99, 0.73);
}
The thing is that "Registration of Services Provided" is aligned to the left of the browser and not to the left, inside the "Formadminbase" as I imagined you would be. I wonder how to nestle everything in "Formadminbase".
I’m using ASPX, C#, with Bootstrap!
I’ve researched about and I can’t find anything targeted!
In case it is positioned outside the parent element? Can you add a print how it looks?
– Woss
I have separated these styles and HTML to a static html, and it is inside the parent element normally. Probably some parent of
#FormAdminBase
must be affecting the style of<h2>
... try to see, in the developer tools of Chrome or Firefox, what is the "computed" style of the element.– Wtrmute