2013-04-26 2 views
0

는 지금이 SiteHTML 레이아웃 위치 및 이미지 국경

있습니다.

그러면 이미지 옆에있는 텍스트 섹션이 올바른 위치에 없습니다. 그리고 이미지의 상단 테두리는 텍스트 옆에 한 줄로 표시되어야합니다. 몇 가지 조정을 시도했지만 도움이되지 않았습니다.

두 가지 문제를 해결하기 위해 수행 할 수있는 작업은 무엇입니까?

HTML :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>RW-Fliesen</title> 
<link rel="stylesheet" type="text/css" href="style.css" /> 



</head> 

<body> 

<div id="wrapper"> 



      <div id="header"> 

        <a href="index.html" class="logo"  title="Logo"></a> 

        <div class="contact-info" title="contact- info"></div> 

        <ul class="mn"> 
        <li><a href=" " title="" class="mn1 "></a> </li> 
        <li><a href=" " title="" class="mn2 "></a></li> 
        <li><a href=" " title="" class="mn3 "></a></li> 
        <li><a href=" " title="" class="mn4 "></a></li> 
        <li><a href=" " title="" class="mn5 "></a></li> 
        <li><a href=" " title="" class="mn6 "></a></li> 
        </ul> 

      </div> 


      <div id="content"> 

       <div id="top"> 
         <div class="foto1" title="Fliesen">  <img src="foto1.png" alt="Fliesen1"/> </div>  
         <div class="foto2" title="Fliesen"> <img src="foto2.png" alt="Fliesen2"/> </div>   
       </div> 



       <div id="leftcolumn">  


         <div class="text" title="text"> 

         <p> RW-Fliesen <br /> 
          Ludwig-Thoma-Str. 36 <br /> 
          82008 Unterhaching </p> 


           <div class="text2"  title="text"> 
           <p> Telefon: <br /> 
            Fax: <br /> 
            Mobil: <br  /> 
            Email: <br /> 
           </p> 
           </div> 

           <div class="text3" title="text"> 
           <p> 089 - 358 557  88 <br /> 
            089 - 358 557 89 <br /> 
            0179 - 673 77 41 <br /> 
            [email protected] fliesen.com <br /> 
           </p>  
           </div> 

         <div class="text4" title="text"> 


         <p> Betriebsnummer: 7084943 <br /> <span class="text-blue"> Eingetragen in die Handwerksrolle bei <br /> der Handwerkskammer  für München <br /> und Oberbayern. </span> </p> 



         </div> 




         </div> 




         <div class="face" title="face"> 
         <iframe id="f580fdad4"  name="f83387924" scrolling="no" style="border: none; overflow: hidden; height: 684px; width: 262px;" class="fb_ltr" src="http://www.facebook.com/plugins/likebox.php?api_key=&amp;locale=de_DE&amp;sdk=joey&amp;channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D18%23cb%3Dfe1e61258%26origin%3Dhttp%253A%252F%252Fwww.rw-fliesen.com%252Ff21318bbdc%26domain%3Dwww.rw-fliesen.com%26relation%3Dparent.parent&amp;height=290&amp;header=true&amp;show_faces=true&amp;stream=false&amp;width=262&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FRW-Fliesen%2F115860578491339&amp;colorscheme=light"></iframe> 
         </div> 



       </div> 



       <div id="rightcolumn"> 


         <div class="text5" title="text"> 

         <p> Wir sind Ihr fachlich  kompetenter Fliesenleger- und Innenausbaubetrieb in Unterhaching. </p><br /> 

         <p> Als Fachbetrieb mit langjähriger Erfahrung in Fliesenverlegung und Innenausbau bieten wir Ihnen hohe handwerkliche Qualität, wertvolle Materialien sowie faire Preise. </p><br /> 

         <p> Unsere Leistungen: </p> 
         <ul> 
         <li> Beratung & Verlegung von  Fliesen, Platten, Naturstein und Mosaik vom Fachmann </li> 
         <li> Individuelle und exclusive Bad- und Wohnraumgestaltung </li> 
         <li> Vermittlung von Handwerksmeisterbetrieben (Installlateur, Elektriker, Maurer, Maler, Schreiner, Bodenleger) </li> 
         <li> Trockenbau </li> 
         <li> Estrichverlegung </li> 
         <li> Innenausbau </li> 
         <li> Reparaturarbeiten </li> 
         <li> Entrümpelung </li> 
         <li> Zusammenstellen eines Teams zur Kompletten Renovierung & Bauaufsicht </li> 
         </ul> 
         </div> 

         <img src="img1.png" alt="img"  class="img1" /> 
         <p> Sie möchten Renovieren, Ihre Wohnräume neu und exclusiv gestalten? 

          Ob groß, oder klein spielt hier keine Rolle, selbst aus einem 5m² Bad kann man einen echten "Eyecatcher" machen! 

          Gerne erstellen wir Ihnen ein individuelles Angebot zu Ihrem Bauvorhaben, beraten Sie zu verschiedenen Möglichkeiten der Durchführung und Gestaltung, sowie neuen Produkten und Materialien in der Baubranche. 
          Erfahren Sie mehr über unser Leistungsspektrum auf den folgenden Seiten. </p> 

       </div> 



       <div id="footer"> 



       </div> 



      </div> 



</div> 



</body> 
</html> 

CSS :

@charset "utf-8"; 
/* CSS Document */ 

body { background: #1c1b17 url(bg.jpg) repeat-x; margin: 0; padding: 0; height: auto;  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;} 

ul, p { color: #373b3f; line-height: 18px; font-size: 13px; font-weight: 600; } 
h3 { color: #003d7a; font-size: 10px; font-weight: 600; margin-top: 0px; padding: 0px;  }  
h4 { color: #2f303f; font-size: 13px; font-weight: 600; margin-top: 20px; padding: 0px; }  

.text-blue {  color: #003d7a; line-height: 16px; padding: 0; font-size: 10px;  font-weight: 600; } 
.img1 { float: left; margin: 0 20px 10px 0; padding: 0; border: #FFF 3px solid; } 


#wrapper { width: 1000px; height: 800px; margin: 0 auto; } 
#header { height: 400px; width: 1000px; display: block; position: relative; } 
#header .logo { position: absolute; width: 374px; height: 221px; display: block; float:  left; cursor: pointer; background: url(logo.png) 0 0 no-repeat transparent; top: 55px;  left: 10px; } 
#header .contact-info { position: absolute; width: 293px; height: 133px; display:  block; float: left; cursor: pointer; background: url(contact-info.png) 0 0 no-repeat  transparent; top: 100px; left: 700px; } 

ul.mn { position: absolute; float: left; top: 316px; width: 978px; margin: 0; padding:  0; list-style-type: none; } 
ul.mn li { float: left; } 
ul.mn li a { display: block; float: left; height: 73px; } 
ul.mn li a.mn1 { width: 104px; background-image: url('mn1.png'); background-position: 0  0; } 
ul.mn li a.mn2 { width: 212px; background-image: url('mn2.png'); } 
ul.mn li a.mn3 { width: 142px; background-image: url('mn3.png'); } 
ul.mn li a.mn4 { width: 128px; background-image: url('mn4.png'); } 
ul.mn li a.mn5 { width: 117px; background-image: url('mn5.png'); } 
ul.mn li a.mn6 { width: 147px; background-image: url('mn6.png'); } 
ul.mn li a.active, ul.mn li a:hover { background-position: 0 73px; } 

#content { height: 1000px; width: 1000px; display: block; position: relative; } 

#top { height: 300px; width: 1000px; display: block; position: relative; margin-bottom:  100px; } 
#top .foto1 { width: 452px; height: 139px; float: left; margin-top: 30px; border: 3px solid #FFF; } 
#top .foto2 { width: 253px; height: 138px; float: left; margin-top: 30px; margin-left:  100px; border:#FFF 3px solid; } 

#leftcolumn { height: 800px; width: 300px; display: block; position: relative; float: left; } 
#leftcolumn .text { height: 10px; width: 300px; display: block; position: relative;  margin-bottom: 0px; } 
#leftcolumn .text2 { height: 10px; width: 50px; display: inline-block; position:  relative; } 
#leftcolumn .text3 { height: 10px; width: 200px; display: inline-block; position: relative; padding-left: 30px; } 
#leftcolumn .text4 { height: 10px; width: 300px; display: inline-block; position: relative; margin-top: 80px; } 
#leftcolumn .face { height: 100px; width: 300px; display: block; position: relative; margin-top: 290px; } 

#rightcolumn { height: 800px; width: 700px; display: inline-block; position: absolute;  margin-left: 310px; margin-top: 0px; float: right; } 
#rightcolumn .text5 { height: 300px; width: 700px; display: inline-block; position: relative; } 

#footer 

답변

0

귀하의 .foto1 및 .foto2 클래스는 IMG를 감싸는 DIV의 크기를 강제하고 있습니다. 사진의 높이 스타일을 & foto2에서 꺼내십시오.

FireFox 또는 Google 크롬의 웹 개발자 도구 용 FireBug 플러그인을 사용하여 문제를 진단 해보십시오. 나는 체계적으로 당신이 찾고있는 결과를 얻을 때까지 CSS 스타일을 해제하려고합니다.

두 이미지 주위의 DIV에 대해 여백 - 바닥 및 패딩 - 하단 스타일을 조정 해보십시오.

호프가 도움이됩니다. 감사!

+0

감사합니다. @viscro. 나는 그것을 시도했다. 그러나 그것은 나에게이 출력을 줬다 http://dh-creative-webdesign.de/rw-fliesen2.html –

+0

당신이 원했던 것이 아닌가? 흰색 테두리가 완전히 두 이미지를 래핑하는 것처럼 보입니다. :) –

+0

네,하지만 이미지 하단에는 공간이 남아 있고 나머지는 내 질문에 설명 된 것처럼 올바른 위치에 있지 않습니다. –

0

이미지를 둘러싼 <div> 태그를 제거한 다음 div의 스타일을 이미지 자체에 적용하십시오. 너비와 높이를 남겨두면 원하는 방식으로 모든 작업을 할 수 있습니다. 여기에 아이디어를 제공하는 코드 샘플이 있으며 결국에는 많은 스타일링을 <style> 태그 또는 CSS 파일로 이동해보십시오. 나는 당신의 질문의 두 번째 부분에 답을 생각

<div id="top"> 
    <img src="foto1.png" alt="Fliesen1" style="float: left; margin-top: 30px; border: 3px solid #FFF;"/> 
    <img src="foto2.png" alt="Fliesen2" style="float: left; margin-top: 30px; border: 3px solid #FFF; margin-left: 100px;" /> 
</div> 
+0

감사합니다. 그것은 저에게 저 산출 http://dh-creative-webdesign.de/rw-fliesen.html를 준다. 나는 이제 모든 요소가 어떻게 서로 관련되어 있는지 혼란 스럽다. 너 나 좀 도와 줄 수있어? –

+0

이것은 실제로 튜토리얼이 아니기로되어 있습니다. 웹 개발을 위해 지역 학교에 가입하거나 온라인에서 HTML/CSS 자습서를 검색하십시오. 당신의 질문에 만족스럽게 대답합니까? – SimonDever

0

은 텍스트 5의 div 종료 태그의 위치를 ​​변경하고 라인을 삽입하여 수행 할 수있는 것은 원하는
나누기. 나는 텍스트 5 div 섹션은 다음과 같이 읽어야한다고 생각합니다 :

<div class="text5" title="text"> 

         <p> Wir sind Ihr fachlich  kompetenter Fliesenleger- und Innenausbaubetrieb in Unterhaching. </p><br /> 

         <p> Als Fachbetrieb mit langjähriger Erfahrung in Fliesenverlegung und Innenausbau bieten wir Ihnen hohe handwerkliche Qualität, wertvolle Materialien sowie faire Preise. </p><br /> 

         <p> Unsere Leistungen: </p> 
         <ul> 
          <li> Beratung & Verlegung von  Fliesen, Platten, Naturstein und Mosaik vom Fachmann </li> 
          <li> Individuelle und exclusive Bad- und Wohnraumgestaltung </li> 
          <li> Vermittlung von Handwerksmeisterbetrieben (Installlateur, Elektriker, Maurer, Maler, Schreiner, Bodenleger) </li> 
          <li> Trockenbau </li> 
          <li> Estrichverlegung </li> 
          <li> Innenausbau </li> 
          <li> Reparaturarbeiten </li> 
          <li> Entrümpelung </li> 
          <li> Zusammenstellen eines Teams zur Kompletten Renovierung & Bauaufsicht </li> 
         </ul> 
        <!-- </div> this is where you inserted your ending tag in the HTML code you provided--> 

        <img src="img1.png" alt="img"  class="img1" /> 
        <p> Sie möchten Renovieren, Ihre Wohnräume neu und exclusiv gestalten?<br/><br/> 

         Ob groß, oder klein spielt hier keine Rolle, selbst aus einem 5m² Bad kann man einen echten "Eyecatcher" machen!<br/><br/><br/> 

         Gerne erstellen wir Ihnen ein individuelles Angebot zu Ihrem Bauvorhaben, beraten Sie zu verschiedenen Möglichkeiten der Durchführung und Gestaltung, sowie neuen Produkten und Materialien in der Baubranche. 
         Erfahren Sie mehr über unser Leistungsspektrum auf den folgenden Seiten. </p> 
        </div> <!-- This is where I believe you should end text 5 div -->