1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help! White space at my search form

Discussion in 'HTML & Website Design' started by kojakfilth, May 7, 2008.

  1. #1
    I asked this before here but i forgot again what to do. I disabled all borders at css but still there some space around the search form here www.sherlockrecords.com/new you can see it at "First Name: and Last Name: form..

    How can i get rid of it..?

    please advice.
     
    kojakfilth, May 7, 2008 IP
  2. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Ok, find this code:

    
    .textform {
    	width:243px;
    	height:24px;
    	background-image: url(images/background-form.gif);
    	background-repeat: no-repeat;
    	border: none;
    	margin: 0px;
    	padding-top: 2px;
    	padding-right: 2px;
    	padding-bottom: 0px;
    	padding-left: 5px;
    	font-family: Arial;
    	font-size: 12px;
    	font-weight: bold;
    	color: #666666;
    }
    
    Code (markup):
    and change it to:

    
    .textform {
    	width: 243px;
    	height: 24px;
    	background: url(images/background-form.gif) no-repeat;
    	border: none;
    	margin: 0;
    	padding: 2px 2px 0 5px;
    	font: bold 12px Arial;
    	color: #666;
    }
    
    Code (markup):
    Why? because the default background color value of the input fields is white, and the default value of the css background color property is transparent.
     
    VimF, May 7, 2008 IP
  3. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Thanks a lot ViMF. That works Perfectly!
     
    kojakfilth, May 7, 2008 IP