简体   繁体   中英

Change CSS font of the Google Search Form?

I have this css search form on the left top, above the flags. Please see this LINK

<form action="https://neculaifantanaru.com/search.html" method="get" id="site-search"> <fieldset> <;-- <label for="search">Cauta in site</label> --> <input type="text" name="q" id="q" value="" />&nbsp;&nbsp; <button type="submit" class="btn btn-inverse">cauta</button> </fieldset> </form>

I made this css:

 #site-search {float:right;width:240px;margin:0;padding:0px 0px 0px 0px;font-size:11px;background:#white;} #site-search LABEL {display:inline-block;font-size:11px;color:#red;} #site-search INPUT {width:140px;height:22px;margin:90;padding:0px 9px 0px;border-color:#yellow;background:#blueviolet;font-size:11px;} #site-search BUTTON {width:45px;height:22px;padding:0;margin:90;font-size:11px;line-height:13px;}

I want to change the css above, in order to look like this. LINK 2 So, what should I change on my css for this?

I have this css search form on the left top, above the flags. Please see this LINK

<form action="https://neculaifantanaru.com/search.html" method="get" id="site-search"> <fieldset> <;-- <label for="search">Cauta in site</label> --> <input type="text" name="q" id="q" value="" />&nbsp;&nbsp; <button type="submit" class="btn btn-inverse">cauta</button> </fieldset> </form>

I made this css:

 #site-search {float:right;width:240px;margin:0;padding:0px 0px 0px 0px;font-size:11px;background:#white;} #site-search LABEL {display:inline-block;font-size:11px;color:#red;} #site-search INPUT {width:140px;height:22px;margin:90;padding:0px 9px 0px;border-color:#yellow;background:#blueviolet;font-size:11px;} #site-search BUTTON {width:45px;height:22px;padding:0;margin:90;font-size:11px;line-height:13px;}

I want to change the css above, in order to look like this. LINK 2 So, what should I change on my css for this?

Remove the styles and try with these styles. May be helpful:)

<form action="https://neculaifantanaru.com/search.html" method="get" id="site-search">
    <fieldset>
        <!-- <label for="search">Cauta in site</label> -->
        <input type="text" name="q" id="q" value="" />&nbsp;&nbsp;
        <button type="submit" class="btn btn-inverse">cauta</button>
    </fieldset>
</form>

<style>

fieldset{ border: none;}
input { background-color: #ffff82; border: 1px solid #cccccc; }
button { background-color: #fff; color: blue; font-weight: bold; font-family: sans-sarif; border: none; border-top: 1px solid #0d6295; border-right: 1px solid #0d6295; font-size: 15px; }

</style>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM