MarkS Posted September 8, 2006 Share Posted September 8, 2006 [code]<?php$html = "<form name='search' method='post' action='search.php'>";$html .="<div style='vertical-align: middle;'>Search \n";$html .="<input type='hidden' name='search' value='1'>\n";$html .="<select name='catagory'>\n";$html .="<option value='user'>DJ Name</option>\n";$html .="<option value='location'>Location</option>\n";$html .="<option value='religion'>Genre</option>\n";$html .="</select> \n";$html .="<input type='text' name='string' size='25' border-color='blue'> \n";$html .="<input type='image' src='http://www.cublox.com/images/go.jpg'></div></form> \n";echo $html;?>[/code]Thats the code im using for the search box in the header of www.cublox.comWhy does the image not line up? Please can you tell me how to get the image to line up, and if its possible to make the input box border blue, and make the image not have a border?Thanks in advancemy other question in another area never got answered so im hoping this one will ;D Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/ Share on other sites More sharing options...
AndyB Posted September 8, 2006 Share Posted September 8, 2006 Since this is either a pure html or an html/css questions, let's move it to right place because that WILL increase the chances of getting a reply. Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88692 Share on other sites More sharing options...
MarkS Posted September 8, 2006 Author Share Posted September 8, 2006 i doubt it Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88704 Share on other sites More sharing options...
Guest WarpNacelle Posted September 8, 2006 Share Posted September 8, 2006 Hi,Move the 'vertical-align' style from your <div> to your <input> button and then set the border to zero - like so:[code]$html .="<div>Search \n";....$html .="<input type='image' src='http://www.cublox.com/images/go.jpg' style='vertical-align: middle; border: 0'></div></form> \n";[/code]Also change the <input> text field to:[code]$html .="<input type='text' name='string' size='25' style='border: 1px solid #3333FF'> \n";[/code]Change the HEX color to whatever blue you want.Later! Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88706 Share on other sites More sharing options...
MarkS Posted September 8, 2006 Author Share Posted September 8, 2006 i could kiss youthanks very much ;D Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88716 Share on other sites More sharing options...
AndyB Posted September 8, 2006 Share Posted September 8, 2006 [quote author=MarkS link=topic=107399.msg430928#msg430928 date=1157753141]i doubt it [/quote]Looks like we both win. Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88718 Share on other sites More sharing options...
MarkS Posted September 8, 2006 Author Share Posted September 8, 2006 while i could kiss you, one more question :-* hahaI want to make the text "search" font size 2 ie <font size="2"> but i know i cant do it like thatHow would i go about it? :)AndyB: that was a first time poster..you in disguise? ;) Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88719 Share on other sites More sharing options...
Guest WarpNacelle Posted September 8, 2006 Share Posted September 8, 2006 Hi,The CSS for changing your font size is:style="font-size: 12px" - for example. You can adjust the size to suit your needs. Add it to your <div> just before the "search" text.[quote author=MarkS link=topic=107399.msg430943#msg430943 date=1157753941]AndyB: that was a first time poster..you in disguise? ;)[/quote]No, that was my first post. I'd been viewing the boards in stealth mode and finally decided to become official. You'll have to clear it with my wife before you kiss me.:DLater Quote Link to comment https://forums.phpfreaks.com/topic/20163-why-wont-the-image-line-up/#findComment-88737 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.