![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||||
| |||||||
|
|
Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html |
|
I am having a few problems with my CSS: 1. Restyling the Select (a) When using IE the Drop Down List is on the right instead of on the bottom; (b) The current item in the list should have a different background color; |
|
(Please check the select on the bottom of the page to check these 2 items working fine. In this case I used a different class) |
|
2. Error messages Please, submit the form. After the Name input you will get a error message. How can I make this message to not expand and still have the padding? And also having the text aligned left. |
|
One problem I am having with my form is every time I use a list inside my form somethings get "broken". This is because the form is using a list. |
|
What should be the best way to counteract the styles of the form list into a child list? |
|
Any suggestion to improve my form CSS would be great. |
#3
| |||
| |||
|
|
shapper wrote: Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html Page stalls and never is displayed I am having a few problems with my CSS: 1. Restyling the Select * * (a) When using IE the Drop Down List is on the right instead ofon the bottom; * * (b) The current item in the list should have a different background color; Okay, I am use I have read that you have been told more than once in other NG, form controls have very limited and uneven CSS styling support. Some browsers, (i.e., IE use OS library of widgets) have little styling at all. IE will not let you style the SELECT element. Opera won't let you style SUBMIT buttons. And other differences apply. Design recommendations, don't fool with form controls...efforts are doom to fail.. * * (Please check the select on the bottom of the page to check these 2 items working fine. * * *In this case I used a different class) Ah, finally your page loaded...hmmm. You've have some CSS errors, property-value pairs are delimited with ';' semi-colons you are missing some. 2. Error messages * * Please, submit the form. After the Name input you will get a error message. * * How can I make this message to not expand and still have the padding? * * And also having the text aligned left. * form.Base fieldset ol li label.Error { * * * * * *background-color: #FFAAAA; * * * * * *color: #FFFFFF; * * * * * *float: none; * * * * * *font: normal 0.7em/2.5 Verdana, Geneva, sans-serif; * * * * * *margin: 0; * * * * * *padding: 0.2em; * * * * * *width: auto; * * * * *} LABEL is not a block element, width doesn't apply, now if you set it to display block and give it a width, test-align: left.... One problem I am having with my form is every time I use a list inside my form somethings get "broken". This is because the form is using a list. http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.27lamps..... [Invalid] Markup Validation ofhttp://www.27lamps.com/Beta/Form/Form.html-W3C Markup Validator you got an error in there thats messing things up. HINT, bitten by the must-use-xhtml bug. What should be the best way to counteract the styles of the form list into a child list? Use a selector to apply to that condition. Any suggestion to improve my form CSS would be great. Not been too receptive in the past, not inclined to bother now. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
#4
| |||
| |||
|
|
On Jul 25, 4:39*am, "Jonathan N. Little" <lws4... (AT) central (DOT) net> wrote: shapper wrote: Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html Page stalls and never is displayed I am having a few problems with my CSS: 1. Restyling the Select * * (a) When using IE the Drop Down List is on the right instead of on the bottom; * * (b) The current item in the list should have a different background color; Okay, I am use I have read that you have been told more than once in other NG, form controls have very limited and uneven CSS styling support. Some browsers, (i.e., IE use OS library of widgets) have little styling at all. IE will not let you style the SELECT element. Opera won't let you style SUBMIT buttons. And other differences apply. Design recommendations, don't fool with form controls...efforts are doom to fail. * * (Please check the select on the bottom of the page to check these 2 items working fine. * * *In this case I used a different class) Ah, finally your page loaded...hmmm. You've have some CSS errors, property-value pairs are delimited with ';' semi-colons you are missing some. 2. Error messages * * Please, submit the form. After the Name input you will get a error message. * * How can I make this message to not expand and still have the padding? * * And also having the text aligned left. * form.Base fieldset ol li label.Error { * * * * * *background-color: #FFAAAA; * * * * * *color: #FFFFFF; * * * * * *float: none; * * * * * *font: normal 0.7em/2.5 Verdana, Geneva, sans-serif; * * * * * *margin: 0; * * * * * *padding: 0.2em; * * * * * *width: auto; * * * * *} LABEL is not a block element, width doesn't apply, now if you set it to display block and give it a width, test-align: left.... One problem I am having with my form is every time I use a list inside my form somethings get "broken". This is because the form is using a list. http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.27lamps..... [Invalid] Markup Validation ofhttp://www.27lamps.com/Beta/Form/Form.html-W3C Markup Validator you got an error in there thats messing things up. HINT, bitten by the must-use-xhtml bug. What should be the best way to counteract the styles of the form list into a child list? Use a selector to apply to that condition. Any suggestion to improve my form CSS would be great. Not been too receptive in the past, not inclined to bother now. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com Hi Jonathan, My server problems are solved and I uploaded a new version of the form:http://www.27lamps.com/Beta/Form/FormBeta.html I value all suggestions given to me in this newsgroup ... but I can decide if I follow or not the suggestions, right? It does not mean that I do not consider them ... In this case, the form is for a CMS of my personal web site. In this web site is where I try many features, even if I am not sure if I will use them: CSS, Ajax, etc ... However, for other projects my approach is a little bit different and I tend to me more conservative. Now about my form: 1. If you submit the form without filling the first field you will see the error. * * I had tried before the suggestions you made ... but it do not work as you can see. * * The only way to make this work is to add "clear: both" to the List Item. I commented that in my CSS. Do I need this? Am I doing something wrong? 2. I found a bug in IE7 concerning the fieldset background ... a IE bug ... what's new? The usual ... * * Anyway, you can see that the background gets outside the fieldset border on the top extending to the top of the legen ... any idea how to solve this? Finally, any suggestions are welcome to improve my form. Many of the approaches I used in this form came from tips coming from this newsgroups ... mainly in Typography. Thank You, Miguel |
#5
| |||
| |||
|
|
On Jul 26, 7:34 pm, shapper <mdmo... (AT) gmail (DOT) com> wrote: On Jul 25, 4:39 am, "Jonathan N. Little" <lws4... (AT) central (DOT) net> wrote: shapper wrote: Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html Page stalls and never is displayed I am having a few problems with my CSS: 1. Restyling the Select (a) When using IE the Drop Down List is on the right instead of on the bottom; (b) The current item in the list should have a different background color; Okay, I am use I have read that you have been told more than once in other NG, form controls have very limited and uneven CSS styling support. Some browsers, (i.e., IE use OS library of widgets) have little styling at all. IE will not let you style the SELECT element. Opera won't let you style SUBMIT buttons. And other differences apply. Design recommendations, don't fool with form controls...efforts are doom to fail. (Please check the select on the bottom of the page to check these 2 items working fine. In this case I used a different class) Ah, finally your page loaded...hmmm. You've have some CSS errors, property-value pairs are delimited with ';' semi-colons you are missing some. 2. Error messages Please, submit the form. After the Name input you will get a error message. How can I make this message to not expand and still have the padding? And also having the text aligned left. form.Base fieldset ol li label.Error { background-color: #FFAAAA; color: #FFFFFF; float: none; font: normal 0.7em/2.5 Verdana, Geneva, sans-serif; margin: 0; padding: 0.2em; width: auto; } LABEL is not a block element, width doesn't apply, now if you set it to display block and give it a width, test-align: left.... One problem I am having with my form is every time I use a list inside my form somethings get "broken". This is because the form is using a list. http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.27lamps.... [Invalid] Markup Validation ofhttp://www.27lamps.com/Beta/Form/Form.html-W3C Markup Validator you got an error in there thats messing things up. HINT, bitten by the must-use-xhtml bug. What should be the best way to counteract the styles of the form list into a child list? Use a selector to apply to that condition. Any suggestion to improve my form CSS would be great. Not been too receptive in the past, not inclined to bother now. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com Hi Jonathan, My server problems are solved and I uploaded a new version of the form:http://www.27lamps.com/Beta/Form/FormBeta.html I value all suggestions given to me in this newsgroup ... but I can decide if I follow or not the suggestions, right? It does not mean that I do not consider them ... In this case, the form is for a CMS of my personal web site. In this web site is where I try many features, even if I am not sure if I will use them: CSS, Ajax, etc ... However, for other projects my approach is a little bit different and I tend to me more conservative. Now about my form: 1. If you submit the form without filling the first field you will see the error. I had tried before the suggestions you made ... but it do not work as you can see. The only way to make this work is to add "clear: both" to the List Item. I commented that in my CSS. Do I need this? Am I doing something wrong? 2. I found a bug in IE7 concerning the fieldset background ... a IE bug ... what's new? The usual ... Anyway, you can see that the background gets outside the fieldset border on the top extending to the top of the legen ... any idea how to solve this? Finally, any suggestions are welcome to improve my form. Many of the approaches I used in this form came from tips coming from this newsgroups ... mainly in Typography. Thank You, Miguel One more issue. I added a header before my form. Everything seems fine. But see what happens to the last two fieldset legends. They are aligned to the left even if they have margin. I was able to detect what is making this. It is the Float: Left in: h1 { background-color: #252525; color: #D2D2D2; font: normal 1.2em Verdana, Geneva, sans-serif; float: left; letter-spacing: 0.1em; margin: 0.3em 0em 0.5em 0em; padding: 0.4em 0.6em 0.5em 0.6em; } But I added a p tag with cleat both after it. Shouldn't this work? Well, in fact it works in IE7, Opera and Safari. The only browser where this happens is in Firefox. Any idea of how to solve this? |
#6
| |||
| |||
|
|
shapper wrote: On Jul 26, 7:34 pm, shapper <mdmo... (AT) gmail (DOT) com> wrote: On Jul 25, 4:39 am, "Jonathan N. Little" <lws4... (AT) central (DOT) net> wrote: shapper wrote: Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html Page stalls and never is displayed I am having a few problems with my CSS: 1. Restyling the Select * * (a) When using IE the Drop Down List is on the right insteadof on the bottom; * * (b) The current item in the list should have a different background color; Okay, I am use I have read that you have been told more than once in other NG, form controls have very limited and uneven CSS styling support. Some browsers, (i.e., IE use OS library of widgets) have little styling at all. IE will not let you style the SELECT element. Opera won't let you style SUBMIT buttons. And other differences apply. Design recommendations, don't fool with form controls...efforts are doom to fail. * * (Please check the select on the bottom of the page to check these 2 items working fine. * * *In this case I used a different class) Ah, finally your page loaded...hmmm. You've have some CSS errors, property-value pairs are delimited with ';' semi-colons you are missing some. 2. Error messages * * Please, submit the form. After the Name input you will get aerror message. * * How can I make this message to not expand and still have the padding? * * And also having the text aligned left. * form.Base fieldset ol li label.Error { * * * * * *background-color: #FFAAAA; * * * * * *color: #FFFFFF; * * * * * *float: none; * * * * * *font: normal 0.7em/2.5 Verdana, Geneva, sans-serif; * * * * * *margin: 0; * * * * * *padding: 0.2em; * * * * * *width: auto; * * * * *} LABEL is not a block element, width doesn't apply, now if you set it to display block and give it a width, test-align: left.... One problem I am having with my form is every time I use a list inside my form somethings get "broken". This is because the form is using a list. http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.27lamps.... [Invalid] Markup Validation ofhttp://www.27lamps.com/Beta/Form/Form.html-W3CMarkup Validator you got an error in there thats messing things up. HINT, bitten by the must-use-xhtml bug. What should be the best way to counteract the styles of the form list into a child list? Use a selector to apply to that condition. Any suggestion to improve my form CSS would be great. Not been too receptive in the past, not inclined to bother now. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com Hi Jonathan, My server problems are solved and I uploaded a new version of the form:http://www.27lamps.com/Beta/Form/FormBeta.html I value all suggestions given to me in this newsgroup ... but I can decide if I follow or not the suggestions, right? It does not mean that I do not consider them ... In this case, the form is for a CMS of my personal web site. In this web site is where I try many features, even if I am not sure if I will use them: CSS, Ajax, etc ... However, for other projects my approach is a little bit different and I tend to me more conservative. Now about my form: 1. If you submit the form without filling the first field you will see the error. * * I had tried before the suggestions you made ... but it do not work as you can see. * * The only way to make this work is to add "clear: both" to the List Item. I commented that in my CSS. Do I need this? Am I doing something wrong? 2. I found a bug in IE7 concerning the fieldset background ... a IE bug ... what's new? The usual ... * * Anyway, you can see that the background gets outside the fieldset border on the top extending to the top of the legen ... any idea how to solve this? Finally, any suggestions are welcome to improve my form. Many of the approaches I used in this form came from tips coming from this newsgroups ... mainly in Typography. Thank You, Miguel One more issue. I added a header before my form. Everything seems fine. But see what happens to the last two fieldset legends. They are aligned to the left even if they have margin. I was able to detect what is making this. It is the Float: Left in: h1 { * background-color: #252525; * color: #D2D2D2; * font: normal 1.2em Verdana, Geneva, sans-serif; * float: left; * letter-spacing: 0.1em; * margin: 0.3em 0em 0.5em 0em; * padding: 0.4em 0.6em 0.5em 0.6em; } But I added a p tag with cleat both after it. Shouldn't this work? Well, in fact it works in IE7, Opera and Safari. The only browser where this happens is in Firefox. Any idea of how to solve this? Yeah, dump the floats and the list and use a table. Let's face it a data entry form can be argued as tabular, i.e, name-value pairs. A column for the names, and a column for the values fieldset legend>Perfil</legend table tr th>label for="Name" class="Required">Nome</label></th td>input type="text" name="Name" id="Name" value="" /></td /tr * ... Style accordingly... -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
#7
| |||
| |||
|
|
On Jul 27, 2:32*am, "Jonathan N. Little" <lws4... (AT) central (DOT) net> wrote: shapper wrote: On Jul 26, 7:34 pm, shapper <mdmo... (AT) gmail (DOT) com> wrote: On Jul 25, 4:39 am, "Jonathan N. Little" <lws4... (AT) central (DOT) net> wrote: shapper wrote: Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html Page stalls and never is displayed I am having a few problems with my CSS: 1. Restyling the Select * * (a) When using IE the Drop Down List is on the right instead of on the bottom; * * (b) The current item in the list should have a different background color; Okay, I am use I have read that you have been told more than once in other NG, form controls have very limited and uneven CSS styling support. Some browsers, (i.e., IE use OS library of widgets) have little styling at all. IE will not let you style the SELECT element. Opera won't let you style SUBMIT buttons. And other differences apply. Design recommendations, don't fool with form controls...efforts are doom to fail. * * (Please check the select on the bottom of the page to check these 2 items working fine. * * *In this case I used a different class) Ah, finally your page loaded...hmmm. You've have some CSS errors, property-value pairs are delimited with ';' semi-colons you are missing some. 2. Error messages * * Please, submit the form. After the Name input you will geta error message. * * How can I make this message to not expand and still have the padding? * * And also having the text aligned left. * form.Base fieldset ol li label.Error { * * * * * *background-color: #FFAAAA; * * * * * *color: #FFFFFF; * * * * * *float: none; * * * * * *font: normal 0.7em/2.5 Verdana, Geneva, sans-serif; * * * * * *margin: 0; * * * * * *padding: 0.2em; * * * * * *width: auto; * * * * *} LABEL is not a block element, width doesn't apply, now if you set it to display block and give it a width, test-align: left.... One problem I am having with my form is every time I use a list inside my form somethings get "broken". This is because the form is using a list. http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.27lamps.... [Invalid] Markup Validation ofhttp://www.27lamps.com/Beta/Form/Form..html-W3CMarkupValidator you got an error in there thats messing things up. HINT, bitten by the must-use-xhtml bug. What should be the best way to counteract the styles of the form list into a child list? Use a selector to apply to that condition. Any suggestion to improve my form CSS would be great. Not been too receptive in the past, not inclined to bother now. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com Hi Jonathan, My server problems are solved and I uploaded a new version of the form:http://www.27lamps.com/Beta/Form/FormBeta.html I value all suggestions given to me in this newsgroup ... but I can decide if I follow or not the suggestions, right? It does not mean that I do not consider them ... In this case, the form is for a CMS of my personal web site. In this web site is where I try many features, even if I am not sure if I will use them: CSS, Ajax, etc ... However, for other projects my approach is a little bit different and I tend to me more conservative. Now about my form: 1. If you submit the form without filling the first field you will see the error. * * I had tried before the suggestions you made ... but it do not work as you can see. * * The only way to make this work is to add "clear: both" to the List Item. I commented that in my CSS. Do I need this? Am I doing something wrong? 2. I found a bug in IE7 concerning the fieldset background ... a IE bug ... what's new? The usual ... * * Anyway, you can see that the background gets outside the fieldset border on the top extending to the top of the legen ... any idea how to solve this? Finally, any suggestions are welcome to improve my form. Many of the approaches I used in this form came from tips coming from this newsgroups ... mainly in Typography. Thank You, Miguel One more issue. I added a header before my form. Everything seems fine. But see what happens to the last two fieldset legends. They are aligned to the left even if they have margin. I was able to detect what is making this. It is the Float: Left in: h1 { * background-color: #252525; * color: #D2D2D2; * font: normal 1.2em Verdana, Geneva, sans-serif; * float: left; * letter-spacing: 0.1em; * margin: 0.3em 0em 0.5em 0em; * padding: 0.4em 0.6em 0.5em 0.6em; } But I added a p tag with cleat both after it. Shouldn't this work? Well, in fact it works in IE7, Opera and Safari. The only browser where this happens is in Firefox. Any idea of how to solve this? Yeah, dump the floats and the list and use a table. Let's face it a data entry form can be argued as tabular, i.e, name-value pairs. A column for the names, and a column for the values fieldset legend>Perfil</legend table tr th>label for="Name" class="Required">Nome</label></th td>input type="text" name="Name" id="Name" value="" /></td /tr * ... Style accordingly... -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com I prefer to use tables only in data display not in forms ... it is just an option not saying that you are wrong. I was thinking maybe on styling the header in some other way but accomplish the same effect. I found the following:http://www.woothemes.com/demo/proudfolio/ Check the header (h2) where is says: "Latest project" I think they use a background image to accomplish this without floats, etc Until now I am not exactly sure how ... do you know? Thanks, Miguel |
![]() |
| Thread Tools | |
| Display Modes | |
| |