Ich versuche, ein besseres Layout meiner Webseite zu machen, also möchte ich zwei divs in der Mitte meiner HTML-Seite platzieren. Ich habe keinen Zugriff auf meine CSS-Datei. Ist es möglich, zwei Divs auf einer Seite in HTML-Code ohne CSS zu zentrieren?2 Divs zentriert in HTML-Seite
Dies ist mein Code:
<div style="width: 100%;">
<div style="; width: 100%;">
<h1 style="text-align: center;">This is Web Page Main tit</h1>
<div style="position: relative;
float: left;
left: 0px;
width: 470px;
height: 470px;
margin: 0 auto;
background-color: #828282">
<div><strong>Main Menu</strong></div>
</div>
<div style="position: relative;
float: left;
margin: 0 auto;
left: 0px;
width: 470px;
height: 470px;
background-color: #828282">
<p>oke and Managerial Tutorials</p>
</div>
</div>
<div style="background-color: #b5dcb3; clear: both;">Here text</div>
</div>
Warum in der Welt nicht Sie Zugriff auf Ihre CSS haben? Das klingt zu schrullig, um irgendetwas anderes als eine dumme Aufgabe oder ähnliches zu sein ... – junkfoodjunkie