Hello, I need some help with my coding. I want the google search bar to be centred in the middle rather than the right hand side. anybody any idea how to do this plese? This is what i have so far: <style type="text/css"> @import url(//www.google.com/cse/api/branding.css); </style> <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000"> <div class="cse-branding-form"> <form action="http://onlinechecker.info" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-8843825154778052:c7dyxzoihh9" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="20" /> <input type="submit" name="sa" value="Search" /> </div> </form> </div> <div class="cse-branding-logo"> <img src="//www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" /> </div> <div class="cse-branding-text"> Web Search Thanks
Hey Add the following HTML Code <p style="text-align: center;">Your Complete Code here</p> That will work out.. Thanks Yo Patel !!!
Hi, thanks for your help I have tried that but it dose not work: <p style="text-align: center;"><style type="text/css"> @import url(//www.google.com/cse/api/branding.css); </style> <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000"> <div class="cse-branding-form"> <form action="http://www.google.com/cse" id="cse-search-box" target="_blank"> <div> <input type="hidden" name="cx" value="partner-pub-8843825154778052:c7dyxzoihh9" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="77" /> <input type="submit" name="sa" value="Search" /> </div> </form> </div> <div class="cse-branding-logo"> <img src="//www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" /> </div> <div class="cse-branding-text"> Custom Search</p> At first I though there was something wrong with my site but its the same else where. Copy and paste the code into here - http://www.w3schools.com/Html/tryit.asp?filename=tryhtml_intro Any more idea?? Many thanks Im really really greatful
Thanks digitech but it still dose not work :/ Im not an expert in this but id have thought that would have worked :S maybe its something to do with google or something in there html coding thats it dose not work with ?? <div align="center" style="float:left;clear:both;"><p style="text-align: center;"><style type="text/css"> @import url(//www.google.com/cse/api/branding.css); </style> <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000"> <div class="cse-branding-form"> <form action="http://www.google.com/cse" id="cse-search-box" target="_blank"> <div> <input type="hidden" name="cx" value="partner-pub-8843825154778052:c7dyxzoihh9" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="77" /> <input type="submit" name="sa" value="Search" /> </div> </form> </div> <div class="cse-branding-logo"> <img src="//www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" /> </div> <div class="cse-branding-text"> Custom Search</div> Copy and paste the code into here to see how the code looks - http://www.w3schools.com/Html/tryit....=tryhtml_intro
Sonia - again this dose now work - im very puzzled !! Any other ideas anybody ???? Copy and paste the code into here to see how the code looks - http://www.w3schools.com/Html/tryit....=tryhtml_intro
Change <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000"> to <div class="cse-branding-center" style="background-color:#FFFFFF;color:#000000">
If it was simple html the previous solutions may have worked but as its using css you have to call the right css class.