Forum Moderators: not2easy

Message Too Old, No Replies

Help with 404 Google code - Search size box

Modifiying the google search field

         

silverbytes

4:44 pm on Aug 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How do I set to a fixed width of 80 px search field
that google provides for 404 custom pages?
Also the header is pushing my div in width, I'd like to
set it in 300 px.

Tried adding widht: 300 px; to first parameter #goog-wm
and also withd: 80 px; to #goog-wm li.search-goog
without success:

This is the pure code:

style type="text/css">
#goog-wm {}
#goog-wm h3.closest-match {}
#goog-wm h3.closest-match a {}
#goog-wm h3.other-things { }
#goog-wm ul li { }
#goog-wm li.search-goog {}
</style>

swa66

9:08 pm on Aug 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since Google has more than one search thing you can use, it's kinda not enough info to help you along. What's the that html goes along with this and exactly what part do you want to be 80px wide ?
width is set by "width: 80px;",

Caveat: check the Google ToS, you might not be allowed to change some of their things.

silverbytes

10:58 pm on Sep 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is allowed, they also have an example
[google.com...]

but not about modifications on

#goog-wm ul li { }
#goog-wm li.search-goog {}

The html around is irrelevant because this code adds the search box I need to make shorter. Tried adding width: 40px before but nothing happened. I'm not css expert but that's what I understand width: do...