2013-01-15 5 views
0

website Google + 및 Facebook에 대한 링크를 추가해야합니다. CSS를 가져올 수 없어 div 상자를 적용합니다. 나는 또한 img 태그가있는 사진을 추가하려고했지만 올바른 디렉토리 인 것처럼 보이고 다른 이미지의 디렉토리가 같더라도 사진을로드 할 수 없습니다. 메뉴 모음의 오른쪽에 2 개의 아이콘을 추가하고 싶습니다.WP - 상자의 스타일을 지정하거나 사진을로드 할 수 없습니까?

HTML :

<div class="art-nav"> 
    <ul class="art-menu"> 
     <?php art_menu_items(); ?> 
    </ul> 
    <div id="facebooktopmarc"> 
     <a href="https://www.facebook.com/raadmal"> 
      <img src="images/facebook.png" alt="Go to Facebook!"/> 
     </a> 
    </div> 
    <div id="googleplustopmarc"> 
     <a href="https://www.facebook.com/"> 
      <img src="images/google-plus.png" alt="Go to Google-plus!"/> 
     </a> 
    </div> 
</div> 

CSS : CSS 내부

#facebooktopmarc { 
    background-image: url("images/facebook.png"); 
    background-position: right center; 
    background-repeat: no-repeat; 
    display: block; 
    float: right; 
    height: 25px; 
    margin: 0 5px 0 0; 
    position: relative; 
    width: 25px; 
} 

#googleplustopmarc { 
    background-image: url("images/google-plus.png"); 
    background-position: right center; 
    background-repeat: no-repeat; 
    display: block; 
    float: right; 
    height: 25px; 
    margin: 0 5px 0 0; 
    position: relative; 
    width: 25px; 
} 

답변

1

URL을 파일 시스템에서이 CSS 파일의 위치와 관련이 있습니다. html 내부에서 img를 사용하려면이 html 또는 절대 경로와 관련하여 경로를 도메인 이름과 함께 사용해야합니다.

화상이

http://raad-mal.dk/wp-content/themes/green_room/images/facebook.png 
http://raad-mal.dk/wp-content/themes/green_room/images/google-plus.png 
+0

들으은 지금은 이미지가 보여있어 URL을 가지고,하지만 난 여전히 DIV 스타일을 할 수없는, 그래서 메뉴 표시 줄에서 그들을 이동할 수 없습니다. 이것에 대한 어떤 생각? :) – McKeene

+0

http://clad-mal.dk/에서 CSS에서 #facebooktopmarc 및 #googleplustopmarc를 찾을 수 없습니다. 당신은 이미 거기에 있는지 확신합니까? – antejan

+0

아하 나의 백업 작업을하고 원래의 파일을 업로드했다. 바보 나. 도움을 많이 Thx :) – McKeene

관련 문제