Yup, now we're talking
First of all, I must admit that I don't know why you're using the
position: absolute CSS property. I'm sure you could accomplish the same Look & Feel with relative positions. I know it sometimes takes a little longer to figure relative positioning out, but trust me, if you decide to change something about your layout, you're going to find that absolute positioning will make the modifications take ten times more time. But of course, you know your site much better than I do, and it's your decision at the end

OK, back to business...
QUOTE(khalilov @ Sep 28 2008, 07:49 PM)

What i did is i changed the top and left numbers of the code.
The code of the button is:
CODE
.submit{ position:absolute;
top:720px;
left:360px;
width:250px;
background:black;
color:yellow;
border:1px solid orange;
text-align: center
}
This is the version that I get of the CSS file. There must be something with your browser not clearing the cache properly or something. I guess that's good news, in a way. After all, you now know that it's your browser that's misbehaving, not the server.
QUOTE(khalilov @ Sep 28 2008, 07:49 PM)

Its like a caption, i dunno if it can be done via HTML coding or CSS coding, but what i want is a button to be attached to a table. That way if i add a row to the table i don't have to edit the button's position every time. Also the button should appear in the middle below the table.
Well, I can propose one way to do that. It's an ugly hack (from a coding point of view), but perhaps you might want to try it out and see if it suits you. Here's what you should do...
- Back up your PHP file -- no need to back the CSS files, we won't be tampering with them.
- Delete this code snippet:
CODE
<p class='submit'><input type='submit' value='Train troops'></p>
- Find this line:
CODE
<TD ><input name='Monster' size='17'></TD></TR>
- Between the previous line and the </TABLE> tag, paste this code snippet:
CODE
<TR><TD colspan="4" style="border:0;"> </TD></TR>
<TR><TD colspan="4" style="border:0;"><input type='submit' value='Train troops'></TD></TR>
<TR><TD colspan="4" style="border:0;"> </TD></TR>
By having the "Train Troops" submit button in a row of the same table, you can easily add as many rows before it as you want, without worrying about changing its position. It'll change automatically, the same way any other table row would. And the extra empty two rows above it and below it are just for visual aesthetics. You can delete them if you don't want them.
Try it and tell me if that works for you
Reply