Why my CSS does not position my div to the right side of the page?
I have a div element which cont开发者_JAVA百科ains the language selection links like below:
<head>
    ...
    <link rel="stylesheet" type="text/css" href="css/page.css">
</head>
<body>
  <div id="#language">
        <a href="#french">French</a> |
        <a href="#english">English</a>
  </div>
  ...
  ...
</body>
I try to CSS the position of #language div to the right side of the page by (css/page.css):
#language {
    text-decoration: none;
    position:absolute;
    right:0px;
}
But it does not work, why?
Remove the # from <div id="#language"> and it should work.
Example: http://jsfiddle.net/jasongennaro/83naR/
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论