atar.yosef Posted November 9, 2009 Share Posted November 9, 2009 Hello to all!!!Can someone help me concerning with how to limit the size of the <fieldset> element?I want this element to surround my data "coupledly", but instead, it spread to all the page's width!!!What can I do in order to force it to couple to my data also to the width? Waiting for your help!!!! Link to comment Share on other sites More sharing options...
Ingolme Posted November 9, 2009 Share Posted November 9, 2009 Setting the display property to inline-block should get it to behave as you want it to. Link to comment Share on other sites More sharing options...
Synook Posted November 9, 2009 Share Posted November 9, 2009 Or, you could give it a defined width. Link to comment Share on other sites More sharing options...
atar.yosef Posted November 9, 2009 Author Share Posted November 9, 2009 Or, you could give it a defined width.Although I used at the "width" attribute, it didn't work!!! :)Please specify -if you can- how to do it! Link to comment Share on other sites More sharing options...
jeffman Posted November 9, 2009 Share Posted November 9, 2009 Don't use a width attribute in the tag. Use a width definition in a CSS stylesheet. If you're not sure how to do that, this will work also. Put it in your tag:<fieldset style="width:100px">My choice of 100px was just for illustration. You can choose your own width.The following is better. Put the style section in your document head: <style type="text/css"> fieldset.mine { width: 100px }</style>* * *<fieldset class="mine"> Link to comment Share on other sites More sharing options...
atar.yosef Posted November 9, 2009 Author Share Posted November 9, 2009 Don't use a width attribute in the tag. Use a width definition in a CSS stylesheet. If you're not sure how to do that, this will work also. Put it in your tag:<fieldset style="width:100px">My choice of 100px was just for illustration. You can choose your own width.The following is better. Put the style section in your document head:<style type="text/css"> fieldset.mine { width: 100px }</style>* * *<fieldset class="mine"> Oh yeah!!!A lot of thanks for you Deirdre's Dad!!!!you are great!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.