Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to position fieldset?

 
William Flores
Ranch Hand
Posts: 32
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


Can someone help me!?
 
Subhash Pavuskar
Ranch Hand
Posts: 57
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried, but not succeeded.
When I used it don't stayed in the center of the page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65110
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give the element a left and right margin of auto, as well as a specific width.
 
William Flores
Ranch Hand
Posts: 32
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I solved!
Follow the solution below.


Thanks all!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65110
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic