0

http://jsfiddle.net/6j7zC why is the adminbox floating although there is no command?

http://jsfiddle.net/6j7zC/1** the fixed div center not working properly

.adminbox
{
        width: 200px;    
        height: 17px;
        margin-top: 20px;  
        padding: 20px; 
        font-size: 12px;   
        color: white;
        background-color: black;
        font-size: 12px;           
        font-family:"Gears of Peace";
}

2 Answers2

0

Lines 57-61 of the css...

.adminbox
{
    width: 50px;
    height: 35px;
    font-family: Verdana;
    font-size: 24px;
    margin: auto;
    color: green;
    background-color: transparent;
    float: right;
    margin-top: 4px;
    margin-left: 60px;
    font-style: italic;
}

There's a float: right in there ;)

Sasidharan
  • 3,676
  • 3
  • 19
  • 37
Sj.
  • 1,402
  • 1
  • 12
  • 9
  • thank you. I made an edit to my question thank you very much. –  Aug 26 '13 at 08:47
  • what about the 2# question? –  Aug 26 '13 at 08:58
  • At the moment it's doing all your CSS is asking it to do. A common fix would be to say left/right: 50%; and then add a negative margin half of the div's width. For instance: .password {position: fixed; width: 370px; left: 50%; margin-left: -185px;} – Sj. Aug 26 '13 at 09:06
0

For your second question; it's exactly drawing your box as per your css

top: 50%;    right: 50%; 

and you have mention width and height to the password box

width: 370px; height: 200px;

There is noting unusual as per your code behavior on the output.

Your query is not clear; what resolution you are targeting your POC/website/app?

Akki619
  • 2,386
  • 6
  • 26
  • 56