2010-12-11 2 views
0

leftpanel이라는 부유 요소를 항상 유지하고 싶습니다.HTML/CSS : 요소가 항상 떠 다니는 경우

높이를 지정하고 싶지 않습니다.

어떻게하면됩니까?

예 :

|floated element |  main content here 
|floated   |  text is here and the 
| stops   |  floated content <- 
| here   |  keeps following until 
|    |  main content also ends 
|    |  main content here 
|    |  main content here 
|    |  main content here 
|    |  main content here 
|    |  main content here 
|    |  main content here 
|    |  ends here, and it also ends here. 

이 현재는 다음과 같습니다

|floated element |  main content here 
    |stops   |  main content here 
    |here   |  main content here 
main content here 
main content here 

http://jsfiddle.net/my5Aj/

가 어떻게 고정 할 수있다?

답변

0

해당 콘텐츠를 div에 넣기 만하면 widthfloat: right;으로 설정하십시오.

0

주 콘텐츠에 떠 다니는 요소 너비의 여백을 남겨 둡니다.

관련 문제