开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜