Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:24 PM
Andreas Emmert
Guest
 
Posts: n/a
Default margin/padding of submit button with CSS

Hi NG,

I have a submit button on my form with the class "button", i.e.

<input type=button class=button value=XXXX>

The class is currently defined as

..button
{
border: solid 1px #787878;
background-color: #022e72;
color: #f0f0f0;
font-weight: bold;
font-family : arial;
}

The current submit button has spaces on each side, i.e. looks like "
XXXX ". Is there a way to remove/reduce the spaces on either side to
have a button like "XXXX"? I've tried the styles "padding" and "margin" and
set both of them to 0px;
However, those settings won't produce the desired result. padding-left,
padding-right, margin-left and margin-right don't either.

Can anyone help me out here?

cheerio

--
Andreas


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles