Things younger than Republican Presidential candidate (oh, and did I forget to mention war hero?) John McCain

Am I being “age-ist”? Maybe. But maybe not. The world is a pretty complicated place right now and I’m thinking that it’s not such a great time to elect our oldest President ever. So sue me.

Saturday, July 26, 2008

I added a ‘search’ box in the sidebar.

But if there are any CSS gurus out there who could tell me how to make the box narrower so that the button sits on the same line, please let me know.

Thanks.

Buy the book: "72 Things Younger Than John McCain"

posted by admin at 12:24 pm  

4 Comments

  1. Two ways to change the search box size:
    in the HTML code, update:

    by changing the size value (to something like 12)
    OR
    in the CSS code, add:
    #s { width:100px; }
    Adjust the width value to whatever width makes the search button fit on the line.
    I’d suggest the latter version as I think different browsers render the “size” attribute differently, but they all agree on what 1 pixel is.

    In both cases you’ll need to remove the tag between the text field and search button.

    Comment by Melissa — July 26, 2008 @ 12:57 pm

  2. Er, looks like part of my comment got cut out.
    Here is the HTML code:
    <input type=”text” size=”15″ id=”s” name=”s”/>
    Change the size to something smaller, like 10.
    And you’ll need to remove the <br/> tag between the text field and search button.

    Comment by Melissa — July 26, 2008 @ 1:00 pm

  3. hi melissa,

    where did you find that code? is it in the stylesheet document?

    thanks!

    Comment by admin — July 26, 2008 @ 8:21 pm

  4. So, I image the search box is probably younger than John McCain, then?

    Comment by Napzilla — August 3, 2008 @ 8:22 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress


Warning: include(/home/thingsyoungerthanmccain/thingsyoungerthanmccain.com/wp-content/themes/minima-black-for-wordpress-115/imgt_dot.gif) [function.include]: failed to open stream: No such file or directory in /nfs/c09/h04/mnt/140541/domains/thingsyoungerthanmccain.com/html/wp-content/themes/minima-black-for-wordpress-115/footer.php on line 7

Warning: include() [function.include]: Failed opening '/home/thingsyoungerthanmccain/thingsyoungerthanmccain.com/wp-content/themes/minima-black-for-wordpress-115/imgt_dot.gif' for inclusion (include_path='.:/usr/local/php-5.3.29/share/pear:/nfs/c09/h04/mnt/140541/domains/thingsyoungerthanmccain.com/html/wp-content/plugins/updraftplus/includes/phpseclib') in /nfs/c09/h04/mnt/140541/domains/thingsyoungerthanmccain.com/html/wp-content/themes/minima-black-for-wordpress-115/footer.php on line 7

google