Focal Point
[SOLVED] DS HTML Composer: Reduce space between radio buttons

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5207079316

December 06, 2011, 01:54 PM
Francis Mariani
[SOLVED] DS HTML Composer: Reduce space between radio buttons
Browser:


DS HTML Composer:


How do you reduce the space between the radio buttons? I've dragged the container border all the way left.

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 06, 2011, 03:48 PM
ERINP
Francis,
I do not have 7.7.03 but in 7.6.9 I have access to the Style Composer via the Properties window.
Styling: Advanced[CSS] if I create focus I get the '...' grey box, click it and the STyle Composer opens. You can change Text, Position, Layout, Padding, Z-Index, etc. Other than modifying the width of the Radio Button List perhaps one of the settings in the Style Composer will allow you to shrink the padding/spacing between these values.

ERINP


WebFOCUS 7.6.9

Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5
Reporting Server OS/400 V5R4M0
Outputs: HTML, Excel, PDF, CSV, and Flat Files
December 07, 2011, 10:45 AM
Francis Mariani
ERINP, unfortunately, I see no CSS styling for the space between the radio buttons.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 08, 2011, 04:02 AM
Wep5622
Possibly adding margin and padding styles would already help.

I think though that the real problem is that those radio-buttons are given a width. That can probably be overridden by applying a style to the surrounding SPAN, something like:
span .myRadioButtonClass {
   width: auto !important;
   padding: 0 !important;
   margin: 0 !important;
}



WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
December 14, 2011, 10:39 AM
Francis Mariani
From inspecting the HTML and CSS with Firebug in Firefox, it looks like part of the spacing is because four non-breaking spaces are added at the end of the text label. But there appears to be padding as well, which Firebug cannot find.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 14, 2011, 11:57 AM
Francis Mariani
Wep,

I finally found time to look at this and your suggestion worked, so thanks very much.

I added the class assignment to all radio button controls and this to my style sheet:
span .RadioButtonControl
{
width: auto !important;
}



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 23, 2012, 10:53 AM
Francis Mariani
One nice side effect of this is that the radio button set no longer expands like a jack-in-the-box when opening the HTML file in HTML Composer.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server