fireburner69
Programmer
I have this problem
I have a CSS file that has this code in it :
DIV.button {
FLOAT: center;
}
DIV.button .btnleft {
FLOAT: left; BACKGROUND-IMAGE: url(images/button_left.gif); WIDTH: 5px; HEIGHT: 20px
}
DIV.button .btnright {
FLOAT: left; BACKGROUND-IMAGE: url(images/button_left.gif); WIDTH: 5px; HEIGHT: 20px
}
DIV.button .btnright {
BACKGROUND-IMAGE: url(images/button_right.gif)
}
DIV.button .btncenter {
FLOAT: left; BACKGROUND-IMAGE: url(images/button_midt.gif); HEIGHT: 20px
}
DIV.button .btncenter A {
PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 0px; LINE-HEIGHT: 20px; PADDING-TOP: 0px; TEXT-DECORATION: none
}
DIV.button .btncenter INPUT {
BORDER-RIGHT: #000 0px solid; BORDER-TOP: #000 0px solid; MARGIN-TOP: 1px; BACKGROUND: none transparent scroll repeat 0% 0%; FONT: 11px "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif; BORDER-LEFT: #000 0px solid; CURSOR: pointer; COLOR: #000; BORDER-BOTTOM: #000 0px solid; HEIGHT: 19px; TEXT-DECORATION: none
}
And I am trying to make a button in the center of an html
I use this code below
<tr><td>
<div class='button'><div class='btnleft'></div>
<div class='btncenter'>
<a href='welcome.html'>Edit</a>
</div>
<div class='btnright'></div>
</div>
</td>
<td>
I tried to make it center by typing <td><center> and stuff like that but nothing happend
The button is fine but in the left side of the table and
always there!
I just need to make it go to the center of the page or table!
Any sujestions?
I have a CSS file that has this code in it :
DIV.button {
FLOAT: center;
}
DIV.button .btnleft {
FLOAT: left; BACKGROUND-IMAGE: url(images/button_left.gif); WIDTH: 5px; HEIGHT: 20px
}
DIV.button .btnright {
FLOAT: left; BACKGROUND-IMAGE: url(images/button_left.gif); WIDTH: 5px; HEIGHT: 20px
}
DIV.button .btnright {
BACKGROUND-IMAGE: url(images/button_right.gif)
}
DIV.button .btncenter {
FLOAT: left; BACKGROUND-IMAGE: url(images/button_midt.gif); HEIGHT: 20px
}
DIV.button .btncenter A {
PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 0px; LINE-HEIGHT: 20px; PADDING-TOP: 0px; TEXT-DECORATION: none
}
DIV.button .btncenter INPUT {
BORDER-RIGHT: #000 0px solid; BORDER-TOP: #000 0px solid; MARGIN-TOP: 1px; BACKGROUND: none transparent scroll repeat 0% 0%; FONT: 11px "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif; BORDER-LEFT: #000 0px solid; CURSOR: pointer; COLOR: #000; BORDER-BOTTOM: #000 0px solid; HEIGHT: 19px; TEXT-DECORATION: none
}
And I am trying to make a button in the center of an html
I use this code below
<tr><td>
<div class='button'><div class='btnleft'></div>
<div class='btncenter'>
<a href='welcome.html'>Edit</a>
</div>
<div class='btnright'></div>
</div>
</td>
<td>
I tried to make it center by typing <td><center> and stuff like that but nothing happend
The button is fine but in the left side of the table and
always there!
I just need to make it go to the center of the page or table!
Any sujestions?