JSF button spacing

0

I am entering the JSF world and I am trying to create a calculator but I can not leave the buttons without space, they need to be together, does anyone know how to solve this?

    <h:form>
            <h:panelGrid columns="4">
                <h:commandButton value="7" />
                <h:commandButton value="8" />
                <h:commandButton value="9" />
                <h:commandButton value="/" />
            </h:panelGrid>
        </h:form>
    
asked by anonymous 08.09.2015 / 14:10

1 answer

2

Use the cellpadding and cellspacing attributes to remove spaces between cells:

<h:panelGrid columns="4" cellpadding="0" cellspacing="0">
        <h:commandButton value="7" />
        <h:commandButton value="8" />
        <h:commandButton value="9" />
        <h:commandButton value="/" />
</h:panelGrid>
    
08.09.2015 / 14:21