Franco Prati Posts:26
|
03-30-2008 11:26 AM |
|
Hello,
I have setup a form here: http://www.medinvest.lu/Contact/tab...ault.aspx, but as you can see, there is excessive spacing between the lines. By checking the source, it looks to me that there are too many "br" tags inserted at each table row. How do I control that, please?
Thank you in advance.
Franco |
|
|
|
|
Chad Nash Posts:5260
|
03-31-2008 11:28 AM |
|
Are you using any question headers or footers? If you go into each question I would check to see if there is any text in the question header/footers area (you might even switch it to HTML source or basic textbox to see if there is any text)... Maybe some spaces were added here when setting up the fields? Also, are you using a custom stylesheet properties or standard stylesheet classes? -Chad |
|
|
|
|
Franco Prati Posts:26
|
03-31-2008 12:39 PM |
|
Hi Chad,
I made the checks you suggested and found no header or footer text for each field. The stylesheet is the standard DNN one.
Where are all those break tags coming from? If you take the field example below you see a break before the input field, despite being in a new row, and another one at the end. Al that inside another table, which I guess adds up to the whole spacing.
Franco
| |
|
|
|
|
Chad Nash Posts:5260
|
03-31-2008 03:48 PM |
|
Hi. Well I have confirmed that there are adding < BR > tags when setting up each question footer. I am going to have to research why these are there though because these were necessary to prevent another bug that was happening... So, ill remove it temporarily on a test site with the 2.6 beta I am working off of and see what the reasoning is for why it was put there. Its possible it only needs to be there if you are actually using a form footer but its also possible that it was affecting other areas such as example text etc... |
|
|
|
|
Franco Prati Posts:26
|
04-08-2008 10:39 PM |
|
Hi Chad, any news on this? Any result from your tests? Thanks, Franco |
|
|
|
|
Tom Lyczko
wading in the water Posts:26
|
04-10-2008 06:00 AM |
|
I had the same problem with BR tags being inserted into the footer.
For this reason I had to give up on having a captcha field, its footer would not display properly.
My other fields which also get a BR tag, _do_ display properly, but these are text and textbox fields.
Please improve the module such that the people using it can do all the styling and that the module does nothing but draw the tables...even the amount of tables could be reduced.
This means not inserting any BR tags anywhere...
Thank you, Tom |
|
|
|
|
Chad Nash Posts:5260
|
04-10-2008 07:35 AM |
|
Hi guys... Well these were added as a bug fix previously so before removing them we are double checking to see if it affects the form at all. Previously I believe it was adding the question footer to the right (like example text) without the BR tag so again, maybe this isn't the case but we have to test before changing it back. Also, we have found that within the question header / footer and any other element using the standard Rich Text Editor it can sometimes (depending on the version and version of DNN) automatically add PARAGRAPH tags to your text. You can review this thread here.
Hopefully this will be corrected in future versions of the editor.
Ill see if I can follow up today after some additional testing on removing this for the 2.6 release.
-Chad
|
|
|
|
|
Chad Nash Posts:5260
|
04-10-2008 11:05 AM |
|
Hi guys... I am attaching a screenshot of what happens when these BR tags are removed. Basically these are needed for it to be able to process header/field/footer properly (as you can see). The real problem here is that the standard Rich Text Editor being used in DNN keeps adding in their own paragraph tags. This has been discussed in several threads in the last few days. The only way around this that I know of is to switch from Rich Text Box to Basic Text Box and remove the starting P and ending P tags.
Below is a screenshot that shows if we remove the BR tags (and why they are put there). This represents the first image in the screenshot.
The other images in the screenshot shows what happens after I switched a question header/footer to basic textbox and removed the paragraph tags.
-Chad
|
spacingissue.JPG
|
|
|
|
Franco Prati Posts:26
|
04-13-2008 02:53 AM |
|
Hi Chad, perhaps I do not quite understand your suggestion; I removed the p tags from the header and footer, but the interline spacing remains large. Besides, I do not see why removing those controls from the header and footer should affect the fields. It is the space between each line (composed by label and input field) of the form which I need to reduce. Thanks Franco |
|
|
|
|
saqib azhar
new to the springs Posts:2
|
|
David To
river guide Posts:2719
|
03-02-2009 08:59 AM |
|
HI Saqib
To decrease spacing between rows, it's a combination of stylesheet properties. For example, under the "Module Configuration", choose "Style Sheet" and click on "Use Custom Dynamic Registration Style Sheet", then use the following parameters:
.DynamicForms_Maintable {
width: 100%;
padding: 0px;
line-height:0%;
}
.DynamicForms_Maintable td {
border-width: 0px;
padding: 0px;
line-height:0%;
}
Make sure to click on "Update Style Sheet" and then hit F5 in your browser to refresh.
There are perhaps other combination / parameters that can be added to effect the look / fell of the form so it's a great idea to check out other websites stylesheet properties as well in order to obtain the effect you want. -- David |
|
|
|
|
Franco Prati Posts:26
|
03-02-2009 12:01 PM |
|
Thank you David for the hint.
For me, however, it was not effective and it only started to work when I used:
.DynamicForms_QuestionTable td {border-width: 0px; padding: 0px; line-height: 0%;}
Best,
Franco |
|
|
|
|
Dan C.
river guide Posts:82
|
04-19-2012 07:46 AM |
|
When a question is positioned above a field, what is the stylesheet setting to adjust the distance between the field label and the field?
|
|
|
|
|
Dan C.
river guide Posts:82
|
04-19-2012 07:51 AM |
|
Let me answer my own question so I can search for it later and remind myself in the event I forget (again): DynamicForms_Label line-height:100%; |
|
|
|
|
Chad Nash Posts:5260
|
04-24-2012 04:22 PM |
|
haha line-height CSS field label distance[ There I helped us both out later! -Chad |
|
|
|
|