css - How to place button without spaces? -


i need place button @ left side of panel without spaces.

i this:

<p:panel style="padding-left:0;border:0">     <p:commandbutton .../> </p:panel> 

but see in browser instruments content in inner div , has default style settings:

<div id="a7058:form:j_idt212" class="ui-panel ui-widget ui-widget-content ui-corner-all" style="padding-left:0;border:0">     <div id="a7058:form:j_idt212_content" class="ui-panel-content ui-widget-content">         <button id="a7058:form:content">...</button>     </div> </div> 

so button doesn't go left want to. how place button @ left side?

in html, white space meaningful, , default collapsed down single space. can modify markup remove white space, results in code isn't readable. commenting out white space possibility. can use font-size: 0 in css force text nodes (including white space) occupy no physical space, apply second font-size declaration on child elements should display text.

space may come margins, padding or borders. use browser's developer tools investigate space coming from.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -