Zurück   Flashforum > Alternative Technologien > HTML und CSS

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 11-07-2007, 20:44   #1 (permalink)
Neuer User
 
Registriert seit: Jul 2006
Beiträge: 54
Positionierung?

Hallo,

ich setze mich gerade mit den Positionierungen in CSS auseinandern. Bis dato komme ich mit "position:absolute" gut klar, jedoch verschieben sich die nachfolgenden Elemente nach Einfügen einer SWF-Datei immer nur relativ, dabei soll es doch so sein, dass absolute Positionierung sich immer unabhängig verhalten?

Hier meine format.css:

PHP-Code:
*{ margin:10padding:0;}
html background-color:#CCCCCC;}
body width:760px;}
img border:0px;}

a:link {color:#FFFFFF; text-decoration:none}
a:visited {color:#FFFFFF; text-decoration:none}
a:hover {font-weight:boldcolor:#FFFFFF; text-decoration:none}
a:active {font-weight:bold;color:#FFFFFF; text-decoration:none}
a:focus {color:#FFFFFF1; text-decoration:none}

#hintergrund { min-height:600px; background-color:#FFFFFF; width:756px; height:auto; border: 1px solid #666666; z-index:1; }

#home { font-family:verdana; font-weight:bold; font-size:12px; text-align:center; background-color:#666666; color:#000000; position:absolute; visibility:visible; border-bottom: 9px solid #666666; z-index: 7; height: 40px; width: 126px; }
#free { font-family:verdana; font-weight:bold; font-size:12px; text-align:center; background-color:#0093D3; color:#FFFFFF; position:absolute; visibility:visible; border-bottom: 1px solid #0093D3; z-index: 6; height: 40px; width: 126px; margin-left: 126px; }
#print { font-family:verdana; font-weight:bold; font-size:12px; text-align:center; background-color:#CC006B; color:#FFFFFF; position:absolute; visibility:visible; border-bottom: 1px solid #CC006B; z-index: 5; height: 40px; width: 126px; margin-left: 252px; }
#web { font-family:verdana; font-weight:bold; font-size:12px; text-align:center; background-color:#FDD518; color:#FFFFFF; position:absolute; visibility:visible; border-bottom: 1px solid #FDD518; z-index: 4; height: 40px; width: 126px; margin-left: 378px; }
#concept { font-family:verdana; font-weight:bold; font-size:12px; text-align:center; background-color:#000000; color:#FFFFFF; position:absolute; visibility:visible; border-bottom: 1px solid #000000; z-index: 3; height: 40px; width: 126px; margin-left: 504px; }
#refs { font-family:verdana; font-weight:bold; font-size:12px; text-align:center; background-color:#666666; color:#FFFFFF; position:absolute; visibility:visible; border-bottom: 1px solid #666666; z-index: 2; height: 40px; width: 126px; margin-left: 630px; }

#logo {margin-left:30px ; z-index:8; margin-top:50px; }

#head { position: absolute; visibility:visible; font-family:verdana; font-weight:bold; font-size:16px; color:#000000; margin-top:70px; margin-left:380px; width:320px; z-index:9;}
#subhead { position: absolute; visibility:visible; font-family:verdana; font-weight:normal; font-weight:bold; font-size:12px; color: #333333; margin-top:400px; margin-left:380px; width:320px; z-index:10;}
#fliesstxt { position: absolute; visibility:visible; font-family:verdana; font-weight:normal; font-size:10px; color:#000000; margin-top:4500px; margin-left:380px; width:320px; z-index:11;} 
Hier die html

PHP-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html>
<
head>
<
title>www.gutgeloest.de</title>
<
meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<
meta http-equiv="Content-Script-Type" content="text/javascript" />
<
link rel="stylesheet" type="text/css" href="css/format_home.css" />
<
script src="js/ebenen.jstype="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
    <body>
        <div id="hintergrund">
        <div id="home"><br /><a href="index.html" target="_parent">Startseite</a></div>
        <div id="free"><br /><a href="index.html" target="_parent">Freelancing</a></div>
        <div id="print"><br /><a href="index.html" target="_parent">Print</a></div>
        <div id="web"><br /><a href="index.html" target="_parent">Webdesign</a></div>
        <div id="concept"><br /><a href="index.html" target="_parent">Concept</a></div>
        <div id="refs"><br /><a href="index.html" target="_parent">Referenzen</a></div>
        <div id="logo">
          <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','300','height','280','title','gglogoani','src','swf/gg_ani','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swf/gg_ani' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="280" title="gglogoani">
            <param name="movie" value="swf/gg_ani.swf" />
            <param name="quality" value="high" />
            <embed src="swf/gg_ani.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="280"></embed>
          </object>
        </noscript></div>
        <div id="head">...is coming soon!</div>
        <div id="subhead">Bald gibt´s mehr</div>
        <div id="fliesstxt">bla</div>
        </div>
    </body>
</html> 
Die ungewollte Verschiebung findet bei head, subhead, fliesstxt statt...

Danke für die Hilfe.
dombre ist offline   Mit Zitat antworten
Alt 11-07-2007, 20:52   #2 (permalink)
Neuer User
 
Registriert seit: Jul 2006
Beiträge: 54
Hab´s geschafft, indem ich das margin-top:... durch top: ... bei den drei Containern ersetzt habe. Nix für ungut...

THX
dombre ist offline   Mit Zitat antworten
Alt 11-07-2007, 21:53   #3 (permalink)
Inventar
 
Benutzerbild von Nightflyer
 
Registriert seit: Jul 2002
Beiträge: 6.882
Gewöhn dir bitte trotzdem Zeilenumbrüche und Leerzeilen an. Jeder der das später mal lesen muss - auch du - wird es dir danken
__________________
(\__/)
(='.'=)
(")_(")
Nightflyer ist gerade online   Mit Zitat antworten
Alt 11-07-2007, 23:22   #4 (permalink)
Mike
 
Benutzerbild von mshp.net
 
Registriert seit: Aug 2003
Ort: Ingolstadt
Beiträge: 619
Ich wollt grad sagen: du positionierst gar nicht absolut, aber das hast ja selber gemerkt...
mshp.net ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 10:20 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele