Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
How to position fieldset?
William Flores
Ranch Hand
Posts: 32
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Guys!!
I have a problem here.
I want position in the center of the page fieldset, but I don't know how to do.
<fieldset style="width: 50%; position: absolute;"> <legend>Login</legend> <form action = "ServletLogin" method = "post"> <center> <table> <input type = "hidden" name = "cmd" value = "verificaLogin" /> <tr> <td> RE </td> <td><input type = "text" name = "cmpRe" /></td> </tr> <tr> <td> Senha </td> <td><input type = "password" name = "cmpSenha" /></td> </tr> <tr> <td colspan="2"> <div align="center"> <input type = "submit" name = "btnLogar" value = "Logar" /> </div> </td> </tr> </table> </form> </fieldset>
Can someone help me!?
Subhash Pavuskar
Ranch Hand
Posts: 57
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Use Table Align="Center" !!!
Ex ::
<table align="center">
<tr>
<td>First Name:</td>
<td><input type="text" name="fname" class="input" onblur="nameValidate()" size="15" value='<%=(request.getParameter("fname")==null) ? "" : request.getParameter("fname")%>'/></td>
<td><div id='a'></div></td>
</tr>
</table>
William Flores
Ranch Hand
Posts: 32
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have tried, but not succeeded.
When I used
<fieldset style="width: 400px;">
it don't stayed in the center of the page.
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Give the element a left and right margin of
auto
, as well as a specific width.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
William Flores
Ranch Hand
Posts: 32
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi!
I solved!
Follow the solution below.
<fieldset style = "width: 500px; margin: 0px auto;">
Thanks all!
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You're welcome.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSP session tracking problem
Pagination Problem
Error comes whilke compiling the jsp page
how show values in jsp from getting database
request.setAttribute() and request.getAttribute()
More...