WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2007, 05:33 PM
davebarnes's Avatar
WebProWorld MVP
WebProWorld MVP
 

Join Date: Jul 2003
Location: Denver, Colorado USA
Posts: 1,439
davebarnes RepRank 3davebarnes RepRank 3
Default Search Box alignment in different browsers

The website: DEFENSICS. Defend. Then Deploy. - Codenomicon

The problem: the search box in the upper-right corner has different vertical alignment depending upon the browser.

IE 6 under Windows and Safari 3 under Mac OS X have the white box correctly aligned with the text to the left.

Firefox 2 under Mac OS X and Firefox 2 under Windows have the box positioned too low.

The code of interest begins at approximately line 37.
I have placed the form in a table cell to "constrain" it.
I have applied CSS to "<input name="query" type="text"..."

Any ideas would be appreciated as my CSS skills are not the strongest.

thanks,
dave
__________________
Dave Barnes
+1.303.744.9024
http://www.marketingtactics.com
Reply With Quote
  #2 (permalink)  
Old 08-21-2007, 04:32 PM
WebProWorld Pro
 

Join Date: Apr 2004
Posts: 288
imvain2 RepRank 0
Default Re: Search Box alignment in different browsers

Without copying the html and testing this, I'm not sure if it will work.

But, in the td that holds your text box, and the tds that hold your menu items try adding either valign="top" or valign="bottom". Whatever one you add make sure you add the same across all of the td stated above.

Hope this works.
Reply With Quote
  #3 (permalink)  
Old 08-21-2007, 05:24 PM
iany's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: Stirling, Scotland
Posts: 237
iany RepRank 1
Default Re: Search Box alignment in different browsers

Dave,
I suspect that what imvain2 suggests will sort your problem as there doen't appear to be anything in the style sheet that would have any affect on the search box. However, if you are going to crack CSS, there are some things you could do to make sure that things work.
First - make sure that your xhtml validates.

[Invalid] Markup Validation of http://www.vectorgreen.com/ - W3C Markup Validator

Although as you are using tables, I prefer to leave as 4.01 hml DocType.

As IE6 is not a compliant browser, always best to build in FireFox. As IE7, Safari and Opera are compliant (more or less), they will render ok too. Then all you have to do is tweak for IE6.

AND FINALLY, well you would expect me to say this, ditch the tables and fly without a safety net and build a true CSS site. Eric Meyer's discussion group will give you all the help and support you will ever need.

If you need any help, Dave, let me know via a pm.

Cheers and good luck
__________________
Ian Young
http://www.iyesolutions.co.uk
Reply With Quote
  #4 (permalink)  
Old 08-21-2007, 05:55 PM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,768
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: Search Box alignment in different browsers

Another thing that might work is removing the height attribute from the table containing the links - this is a big difference between IE and FF. Then, removing the margin-top from the form field should put everything into a straight line, although you may need to tweak the margins here and there. Finally, you can give the containing table itself a margin-top if you feel the line becomes too close to the top of the window.
__________________
The best way to learn anything, is to question everything.
Interestingly Average Security Blog
Reply With Quote
  #5 (permalink)  
Old 08-22-2007, 12:53 PM
WebProWorld Pro
 

Join Date: May 2004
Location: anchorage, alaska
Posts: 241
jomariet RepRank 0
Default Re: Search Box alignment in different browsers

I've had success with this issue by giving the input field a margin/padding attribute in the style sheet. It is a page element so you don't give it a . or #.

input {margin: 0px; padding: 0px;}

tweak the margin/padding to look the way you want it to.


JM
__________________
http://www.akalt.net - Alaskan Web Hosting
http://www.crucibledesigns.com - Web Design & Development
http://www.jomaries.com
Reply With Quote
  #6 (permalink)  
Old 08-22-2007, 01:50 PM
WebProWorld Pro
 

Join Date: Aug 2007
Location: Southern Illinois USA
Posts: 152
kruser RepRank 0
Default Re: Search Box alignment in different browsers

Not sure, but it appears that the td widths do not add up to the table width??

Best Regards,
Randy
Illinois Real Estate Mobi
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search box on website alextj Graphics & Design Discussion Forum 4 02-13-2006 04:56 AM
Google X: Icons Above Search Box For Specialty Search WPW_Feedbot Search Engine Optimization Forum 0 03-16-2005 12:30 PM
Some questions about the Search box littlegiant Google AdWords/Google AdSense 0 02-14-2005 04:44 AM
Atomz Search Box nezmin2 Graphics & Design Discussion Forum 1 08-29-2004 08:12 PM
Search Box Setup ponpots Graphics & Design Discussion Forum 1 07-10-2004 10:15 PM


Search Engine Optimization by vBSEO 3.2.0