473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

align fieldsets with css

realin
254 100+
hi guys,

i wanna set my fieldsets properly without using table.. like two fields in one row... here are my fieldsets..


Expand|Select|Wrap|Line Numbers
  1.             <fieldset>
  2.                             <legend>Personal Information</legend>
  3.                             <p><label>First Name</label><br/>
  4.                             <input type='text'size='38' name='fname'/></p>
  5.                             <p><label>Last Name</label><br/>
  6.                             <input type='text'size='38' name='lname'/></p>
  7.                             <p><label>Display Name</label><br/>
  8.                             <input type='text'size='38' name='dname'/></p>
  9.                             <p><label><input type='checkbox' name='chk'onClick='en_bday(this)'/>Fill Birthday</label><br/>
  10.  
  11.                             Day<select name='bday' id='bday' disabled='disabled'>
  12.                             <?php $i=1;
  13.                             while($i!=32){
  14.                             echo"<option>$i</option>";
  15.                             $i++;
  16.                             }?>
  17.                             </select>
  18.                             Month<select name='bmon' id='bmon' disabled='disabled'/>
  19.                             <option>Jan</option><option>Feb</option><option>Mar</option>
  20.                             Year<select name='byr' id='byr' disabled='disabled'/>
  21.                             <?php $j=1900;
  22.                             while($j!=2002){
  23.                             echo"<option>$j</option>";
  24.                             $j++;
  25.                             }?></select>
  26.                             </p>
  27.                             <p><label>Few Lines About yourself<br />
  28.                                 <textarea cols='25' rows='5' name='yrself'></textarea></label></p>
  29.  
  30.                     </fieldset>
  31.  
  32.                         <fieldset><legend>Websites</legend>
  33.                                 <p><label>Website<br/><input type='text' name='web' size=38/><br /></p>
  34.                                 <p>Yahoo ID<br/><input type='text' name='ymsg' size=38/><br /></p>
  35.                                 <p>MSN ID<br/><input type='text' name='msn' size=38/><br/></p>
  36.                                 <p>GTalk ID<br/><input type='text' name='gtalk' size=38/></label></p>
  37.                         </fieldset>
  38.  
  39.  
  40.  
  41.                         <fieldset>
  42.                                 <legend>Change Password</legend>
  43.                                 <p><label>Old Password<br />
  44.                                 <input type="password" name="opass" size='38' /></p>
  45.                                 <p>New Password<br />
  46.                                 <input type="password" name="npass1" size='38' /></p>
  47.                                 <p>Repeat New Password<br />
  48.                                 <input type="password" name="npass2" size='38' />
  49.                                 </label></p>
  50.                         </fieldset>
  51.  
  52.                         <fieldset>
  53.                                 <legend>Customize</legend>
  54.                                 <p><label>Do not like the GUI, 
  55.                                 Change the one you like</label></p>
  56.  
  57.                         </fieldset>
  58.  
  59.  
And here is the CSS i am using

Expand|Select|Wrap|Line Numbers
  1. fieldset {
  2.  
  3.     padding: 0px 50px 10px 50px;
  4.     border:1px solid blue;    
  5.     float:left;
  6.     margin-right:5px;
  7.     color:black;
  8.     position:relative;
  9.  
  10.  
  11.  
  12. }
  13.  
  14.  
  15. fieldset legend {
  16.     padding: 0px .1em 0px .3em;
  17.     color:blue;
  18.     font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana;
  19.  
  20. }
  21.  

Please help me.. the one with legend customize.. comes really down.. i also wanna add three buttons .. but it doesnt come below the fieldsets.. please help me.. do i need to add one more div for button ??

sorry for my n00bness in css :(

thanks for ur time :)
Aug 15 '07 #1
1 3657
realin
254 100+
well i couldnt edit the above post so i have to reply to it and to make my post more clear i am adding the actual picture of the layout.. now the problem/issue is more clear to you experts, please help me guys



i hope you can see the image, the direct link is here

Direct Link
Aug 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Phil Powell | last post by:
Code: <!-- script src="/js/val_header.js"></script --> <style> <!-- BODY { scrollbar-3d-light-color:#eeeedd; scrollbar-arrow-color:#000000; scrollbar-base-color:#000000;...
2
by: PatD | last post by:
Fieldsets, as introduced with, I think, HTML 4, tend to span the entire width of the window. As most (all?) "Block", or so, elements do... What I would like, however, is a solution do cut them...
3
by: Trent | last post by:
I'm trying to be a good little coder and design my HTML form with as much semantic HTML and CSS as possible. I'm using fieldsets, legends, and labels. It seems like the only way to reliably...
4
by: andrew | last post by:
Hi, Let me know if I should ask this in a microsoft jscript group instead as the problem I'm witnessing only seems to appear in IE. Or if you can recommend another group if this is not an...
24
by: Mike Otten | last post by:
Any help greatly appreciated. The validated page is at: http://myweb.stedwards.edu/michaelo/ddtab.htm The trouble is with the radio buttons (2/3-down the left column). The radios are...
3
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%;...
2
by: yangtono | last post by:
Hi, I am creating a table to list some data. The table is using a sorting and highlight function that I found from the net. I can't attach image here, basically html will wrap the heading,...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
3
by: happyse27 | last post by:
Hi All, I wanted to align the text box for user registration but the code just wont budge... Kindly advise what is wrong? Cheers... Andrew <HTML>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.