Hallo,
in folgendem html Quelltext, will ich einfach nur eine div rechts postitionieren - so wie es jetzt schon im firefox,ie dargestellt wird - weiter soll die Hintergrundfarbe des inneren divs angezeigt werden. Wird mir jemand helfen? Vielen Dank schon mal!
Alles anzeigen
in folgendem html Quelltext, will ich einfach nur eine div rechts postitionieren - so wie es jetzt schon im firefox,ie dargestellt wird - weiter soll die Hintergrundfarbe des inneren divs angezeigt werden. Wird mir jemand helfen? Vielen Dank schon mal!
Quellcode
- <html>
- <head>
- <title></title>
- </head>
- <style type="text/css">
- <!--
- #box1 {
- position: absolute;
- width: 100%;
- text-align: right;
- top: 0px;
- right: 0px;
- margin: 0px;
- padding: 0px;
- z-index: 1;
- }
- #box1 div {
- background-color: #287126;
- width: 70px;
- text-align: center;
- margin: 3px 0px 0px 0px;
- padding: 3px 0px 0px 4px;
- color: #ffffff;
- font: bolder 12px Arial;
- z-index: 2;
- }
- -->
- </style>
- <body>
- <div id="box1"><div>Hallo!</div></div>
- </body>
- </html>