tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
7
ZUGRIFFE
532
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    Xching Xching ist offline Mitglied Gold
    Registriert seit
    Sep 2010
    Beiträge
    190
    Ich habe Homepage erstellt aber Ich habe Problem mit 3 Spalten Layout,wenn ich die Seite verkleinern,wird die Inhalt und Bild von jedem Seite nach links und manchmal nach rechts verschieben.

    HTML-Code:
    body {
    	font-family: Arial;
    	font-size: 1.0 em;
    	color:#000000;
    	margin:0px;
    	background-color:#CECECE;
    	}
    	
    	*html body {font-size: 10pt;}   /* Internet Explorer 6 */
    	
    a:link { text-decoration:none; font-weight: bold; color:#00849C;}    /* noch nicht besuchte Ziele */
    a:visited { text-decoration:none; font-weight: bold; color:#00849C;} /* besuchte Ziele */
    a:hover { text-decoration:underline; font-weight: bold; color:#00849C; }   /* Verweise bei "MouseOver" */
    
    img {border: 0;}
    
    
    
    #gesamt {
    	background-color: #FFFFFF;
    	background-position:center center;
    	background-repeat:no-repeat;
    	border: 5px solid #3366FF;
    	margin-left: auto;
    	margin-right: auto;
    	margin-top:20px;
    	margin-bottom: 0px;
    	min-width: 900px;
    	height: 1000px;
    	display: table;		
    	}
    
    #header {
    	background-color:#3366FF;
    	background-position:center center;
    	background-repeat:no-repeat;
    	min-width: 900px;
    	height: 120px;
    	}
    	
    	#headline {
    	color:#FFFFFF;
    	font-size:1.5em;
    	font-weight:bold;
    	padding-left:20px;
    	padding-top:20px;
    	width:400px;
    	}
    		*html #headline {font-size: 15pt;}   /* Internet Explorer 6 */
    
    		#headline a:link { text-decoration:none; font-weight: bold; color:#FFFFFF;}    /* noch nicht besuchte Ziele */
    		#headline a:visited { text-decoration:none; font-weight: bold; color:#FFFFFF;} /* besuchte Ziele */
    		#headline a:hover { text-decoration:none; font-weight: bold; color:#FFFFFF; }   /* Verweise bei "MouseOver" */
    	
    	#uebersetzung {
    	float:right;
    	color:#FFFFFF;
    	margin-right:30px;
    	margin-top:-30px;
    	width:200px;
    	text-align:right;
    	}
    		*html #uebersetzung {margin-top:-20px; margin-right:10px;}   /* Internet Explorer 6 */
    
    	#uebersetzung a:link { text-decoration:none; font-weight: normal; color:#FFFFFF;}    /* noch nicht besuchte Ziele */
            #uebersetzung a:visited { text-decoration:none; font-weight: normal; color:#FFFFFF;} /* besuchte Ziele */
            #uebersetzung a:hover { text-decoration:underline; font-weight: bold; color:#FFFFFF; }   /* Verweise bei "MouseOver" */
    		
    	#menue1 {
    	margin-left:20px;
    	margin-top:38px;
    	color:#000000;
    	}
    						
    				#menue1 a:link {text-decoration:none; font-weight: bold; color:#FFFFFF;}
    				#menue1 a:visited {text-decoration:none; font-weight: bold; color:#FFFFFF;}
    				#menue1 a:hover {text-decoration:underline; font-weight: bold; color:#FFFFFF;}
    				#menue1 a:active {text-decoration:underline; font-weight: bold; color:#FFFFFF;}
    		
    		#menue1 ul{
      		margin: 0px;
      		padding: 0px;
       		}
       
    		#menue1 ul li {
       		list-style-image:none;
       		list-style-type:none; 
       		padding: 14;
       		margin-right: 20px;
       		margin-top: 6px;
       		float: left;
       		}
       		
       		a#menue1act:link, 
            	a#menue1act:active, 
            	a#menue1act:visited, 
            	a#menue1act:hover { 
                       text-decoration:underline; 
                       font-weight: bold; 
                       color:#FFFFFF;
                       }
    	
    
    	#strich
    	{
    	float:left;
    	margin-top:2px;
    	width:100%;
    	height:0px;
    	}
    	
    	*html #strich {margin-top:10px;}   /* Internet Explorer 6 */
    
    #menue2 {
    	background-color:#66CCFF;
    	float:left;
    	height: auto;
    	margin-left:20px;
    	margin-top: 10px;
    	width:180px;
    	padding:5px;
    	color: #000000;
    	display:table-cell;
    	/*background-color: grey;*/
    	}
    		*html #menue2 {margin-left:10px;}   /* Internet Explorer 6 */
    				
    				#menue2 a:link {text-decoration:none; font-weight: bold; color:#CECECE;}
    				#menue2 a:visited { text-decoration:none; font-weight: bold; color:#CECECE;}
    				#menue2 a:hover { text-decoration:underline; font-weight: bold; color:#CECECE;}
    				#menue1 a:active { text-decoration:underline; font-weight: bold; color:#CECECE;}
    				
    		#menue2 ul{
      				margin: 0px;
      				padding: 0px;
       				}
       
    		#menue2 ul li {
       					list-style-image:none;
       					list-style-type:none; 
       					padding: 0;
       					margin-left: 10px;
       					margin-right: 10px;
       					margin-top: 5px;
       					margin-top: 5px;
       					float: left;
    			}					  
    				
    	    a#menue2act:link, 
                a#menue2act:active, 
                a#menue2act:visited, 
                a#menue2act:hover { 
                       text-decoration:underline; 
                       font-weight: bold; 
                       color:#000000;
                       }	
       
    #text {
    	float:right;
    	margin-left:10px;
    	margin-right:10px;
    	margin-top:10px;
    	padding-bottom:20px;
    	display:table-cell;
    	min-width:630px;
    	
    	}
    		*html #text {width:610px;}   /* Internet Explorer 6 */
    	
    	#inhalt
    	{
    	background-color: white;
    	}
    	
    	#Rechte {
    	background-color:#66CCFF;
    	float:right;
    	height: auto;
    	margin-right:20px;
    	margin-top: 10px;
    	width:180px;
    	padding:12px;
    	color: #000000;
    	display:table-cell;
    	/*background-color: grey;*/
    	}
    		*html #Rechte {margin-right:10px;}   /* Internet Explorer 6 */
    				
    				#Rechte a:link {text-decoration:none; font-weight: bold; color:#CECECE;}
    				#Rechte a:visited { text-decoration:none; font-weight: bold; color:#CECECE;}
    				#REchte a:hover { text-decoration:underline; font-weight: bold; color:#CECECE;}
    				#menue1 a:active { text-decoration:underline; font-weight: bold; color:#CECECE;}
    				
    		#Rechte ul{
      				margin: 0px;
      				padding: 0px;
       				}
       
    		#Rechte ul li {
       					list-style-image:none;
       					list-style-type:none; 
       					padding: 0;
       					margin-left: 10px;
       					margin-right: 0px;
       					margin-top: 5px;
       					margin-top: 5px;
       					float: right;
    			}					  
    				
    	    a#Rechteact:link, 
                a#Rechteact:active, 
                a#Rechteact:visited, 
                a#Rechteact:hover { 
                       text-decoration:underline; 
                       font-weight: bold; 
                       color:#000000;
                       }	
       
    	   
    					
        #text {
    	float:right;
    	margin-left:20px;
    	margin-right:20px;
    	margin-top:10px;
    	padding-bottom:20px;
    	display:table-cell;
    	/*width:630px;*/
    	}
    		*html #text {width:610px;}   /* Internet Explorer 6 */
    	
    	
    	
    #fusszeile {
    	background-color:#FF7F00;
    	background-position:center center;
    	background-repeat:no-repeat;
    	border: 1.5px solid #FFFFFF;
            margin-left: auto;
            margin-right: auto;
    	padding-left: 10px;
    	min-width: 900px;
    	height: 20px;
    	color:#FFFFFF;
    	font-size: 0.9em;
    	text-align:center;
    	line-height:210%;
    	vertical-align:middle;
    	margin-bottom:20px;
    	display:table;
    	}
    	
    	#fusszeile ul{
                      margin: 0px;
                      padding: 0px;
                       }
       
            #fusszeile ul li {
                           list-style-image:none;
                           list-style-type:none; 
                           padding: 0;
                           margin-left: 10px;
                           margin-right: 10px;
                           float:left;
                           }                
    	
        *html #fusszeile {margin-bottom:20px; font-size: 8pt;}   /* Internet Explorer 6 */
        *+html #fusszeile {margin-bottom:20px;}   /* Internet Explorer 7 */
    
    	#fusszeile a:link { text-decoration:none; font-weight: normal; color:#FFFFFF;}    /* noch nicht besuchte Ziele */
            #fusszeile a:visited { text-decoration:none; font-weight: normal; color:#FFFFFF;} /* besuchte Ziele */
            #fusszeile a:hover { text-decoration:underline; font-weight: bold; color:#FFFFFF; }   /* Verweise bei "MouseOver" */
    	#fusszeile a:active { text-decoration:underline; font-weight: bold; color:#FFFFFF; }
    
    	a#fusszeileact:link, 
            a#fusszeileact:active, 
            a#fusszeileact:visited, 
            a#fusszeileact:hover { 
                       text-decoration:underline; 
                       font-weight: bold; 
                       color:#FFFFFF;
                       }
    
    h1 {
    	font-family: Arial;
    	font-size: 1.4em;
    	font-weight: bold;
    	text-decoration: none;
    	text-align: left;
    	color:#727272;
    	margin: 0px !important;
    	}
    	*html h1 {font-size: 14pt;}   /* Internet Explorer 6 */
    
    
    .clearer {
    	 clear: all;
    	 }
    Hier ist mein html.
    HTML-Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    
    <head>
    	<link rel="stylesheet" type="text/css" href="style.css" media="all">
    </head>
    <body>
    
    ###DOCUMENT###
    <div id="gesamt"> 
    
    		<div id="header">
    			<div id="headline">
    			<a href="index.html">Name von Helder&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</a>
    
    			</div>		
    			
    			<div id="menue1">
    			###MENUE1###
    			</div>
    			
    			
    			<div id="strich"><hr width="100%" size="2px" color="#FFFFFF"></div>
    		</div>
    		
    		<div id="menue2">
    			###MENUE2###
    		</div>
    				<div id="Rechte">
    			###RECHTE###
    		</div>
    		<div id="text">
               	<div id="inhalt">###INHALT###</div>   		
       		</div>	
    
    		<div class="clearer"></div>
    
           </div>
    
    <div id="fusszeile">
    ###FUSSZEILE###
    </div>
    
    ###DOCUMENT###	
    
    </body>
    
    
    Geändert von Xching (06.10.10 um 10:40 Uhr)
     

  2. #2
    Avatar von spicelab
    spicelab spicelab ist offline ZENmechanic
    Registriert seit
    Feb 2010
    Beiträge
    1.744
    Ohne den dazugehörigen HTML-Code lässt sich keine Ursachenforschung betreiben, geschweige denn ein sachdienlicher Hinweis äußern.
    Geändert von spicelab (06.10.10 um 10:30 Uhr)
     

  3. #3
    Xching Xching ist offline Mitglied Gold
    Registriert seit
    Sep 2010
    Beiträge
    190
    Entschudigung hab ich vergessen
     

  4. #4
    Avatar von spicelab
    spicelab spicelab ist offline ZENmechanic
    Registriert seit
    Feb 2010
    Beiträge
    1.744
    Zitat Zitat von Xching Beitrag anzeigen
    Entschudigung hab ich vergessen
    Und warum postet du ihn nicht gleich direkt mit der zweiten Antwort?
     

  5. #5
    Avatar von spicelab
    spicelab spicelab ist offline ZENmechanic
    Registriert seit
    Feb 2010
    Beiträge
    1.744
    Code css:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    
    #text {
            /*float:right;*/
            margin-left:210px;
            margin-right:224px;
            margin-top:10px;
            padding-bottom:20px;
            display:table-cell;
            /*min-width:630px;*/
     
            }
                    /* *html #text {width:610px;} */   /* entfällt für Internet Explorer 6 */

    Und entferne im Verlauf des Stylesheets den doppelt vorhandenen Regelblock für #text unmittelbar vor #fusszeile

    Desweiteren besitzt die clear-Eigenschaft keinen Wert "all" - hier ist both gefragt.
     

  6. #6
    Xching Xching ist offline Mitglied Gold
    Registriert seit
    Sep 2010
    Beiträge
    190
    vielen Dank,es hat jetzt funktioniert )
     

  7. #7
    Xching Xching ist offline Mitglied Gold
    Registriert seit
    Sep 2010
    Beiträge
    190
    Hallo,
    ich habe gerade festgestellt, dass die Bilder mehr nach rechte Seite und untere Seite verschieben,wenn ich die Seite verkleinern,woran liegt das**** und Ich habe both anstatt all eingesetzt,funktioniert nicht,er sagte Please check whether if this file is opened in another programm
     

  8. #8
    Avatar von spicelab
    spicelab spicelab ist offline ZENmechanic
    Registriert seit
    Feb 2010
    Beiträge
    1.744
    Da aus deinem "abgespeckten" HTML-Code überhaupt nicht hervorgeht, von welchen Bildern du sprichst, in welchen DIV-Blöcken sie konkret eingebunden sind, und wir keine hellseherischen Kräfte besitzen, um diese Wissenslücke zu schließen, wäre es an dieser Stelle hilfreich, die Seite hier zu verlinken, damit sie direkt im Browser in Augenschein genommen werden kann.
     

Ähnliche Themen

  1. Antworten: 9
    Letzter Beitrag: 03.07.09, 12:31
  2. 3-Spalten-Layout / Moz vs. IE
    Von sipoh im Forum CSS
    Antworten: 6
    Letzter Beitrag: 31.10.07, 13:26
  3. Antworten: 3
    Letzter Beitrag: 07.05.07, 06:13
  4. 3-Spalten-Layout mit CSS
    Von Crashburn im Forum CSS
    Antworten: 7
    Letzter Beitrag: 06.05.07, 16:30
  5. 3 Spalten Layout
    Von freakcx im Forum CSS
    Antworten: 2
    Letzter Beitrag: 06.11.05, 00:19