Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Page menu with search bar 'how to remove white space' at the top of the menu (http://forum.bytesforall.com/showthread.php?t=21504)

secretsquirrel Feb 12, 2014 11:37 AM

[SOLVED] Page menu with search bar 'how to remove white space' at the top of the menu
 
www.lostdogswestmidlands.co.uk

Problem is white space above the black border below the header on the 'Page menu color blue with search bar'

Please how can I remove the white space above the black border

I have positioned the search bar

search Box - When I remove the code below from the configure header area, it corrects itself,
the white space disappears

Search Box:
valign:top;
margin-bottom: -250;
padding: 0;
position: relative;
top:12px;
font: .80em candara, trebuchet ms, cali;
width: 25%;
height: 0;

I usually can find answers in the forum but totally stumped and would appreciate little help, thanks in advance

juggledad Feb 12, 2014 02:21 PM

did you look at the site with a code inspector?

secretsquirrel Feb 12, 2014 02:49 PM

Yes I use firebug

its the td-search-box

I just can't see it, have spend couple nights twiddling, when I delete the node, the line disappears

Juggledad please can you move this to the Gold forum, I should have posted in there. Thank you

lmilesw Feb 12, 2014 03:52 PM

For something like this I generally use absolute postioning. Here is some sample code.
HTML Code:

.search-box {
    position: absolute;
    top: 246px;
    width: 1000px;
}


juggledad Feb 12, 2014 06:39 PM

Larry's almost right. Get rid of the 'height: 0px;' you have in 'div.searchbox' and use
HTML Code:

position: absolute;
top: 261p;
right: 0px;
z-index: 99;


lmilesw Feb 12, 2014 07:41 PM

My code relates to .search-box and gets rid of the white space.

I think Juggledad's relates to .searchbox but in my test didn't get rid of the white space.

secretsquirrel Feb 13, 2014 01:14 AM

Thanks to both of you its perfect, I have posted the code from 'Style the search box in the header' ATO options for any forum member to share.

Search Box:
align:top;
margin-bottom: -250;
position: absolute;
top: 260px;
font: .80em georgia, tahoma, verdana;
width: 25%;
right: 0px;
z-index: 99;

www.lostdogswestmidlands.co.uk

Thank you, I try not to ask as find the forum an extremely useful tool for research, this time I have learnt about the rule 'z-index: 99;' thou what it means is another matter ;-)


All times are GMT -6. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.