Solved

Search box in WordPress

Posted on 2014-04-11
3
287 Views
Last Modified: 2014-04-13
Working on getting the orange square to the right like on the following site:

http://domgarofalo.com/wellcity/

The site I am working on is:

http://domgarofalo.com/wellcity2/

Any ideas?
0
Comment
Question by:domgarofalo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39996237
The input is too wide and you should be floating left, not right.  The markup is horrible.  Using inline styling and sticking form elements inside of list items guarantees you will have maintenance issues every time you touch the page.

Cd&
0
 

Author Comment

by:domgarofalo
ID: 39996335
Any suggestions for how to improve the code?
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39997425
Get the form out of the list.  I actually would be better outside of nav.  Search is not really nav anyway so it is semantically incorrect as well as being a structural freak.  

I would put a wrapper around nav and the search to give them a common parent. Then float the form left so it bumps ua against the nav. You will have to play with the widths od the elements to make everything fit correctly.  It is best to leave some slack (total width of the elements a few pixels less than the width of the containing element or you will end up with cross browser issues.  

All browser/device/OS combinations do not calculate the width of a pixel the same, and user setting can also mess up glass renderings and break them.  the only way to insure that the rendering is exact is with an image; and that is not a good idea because it will screw things up in other ways.

The more precise you try to do positioning, the more compatibility and cross-platform issues you will have.  Because you are working within Wordpress instead of with custom code where you have total control, you need to keep the design loose and self adapting unless you want to hand complete control to a theme.  

A tight design will just increase the number of environments where you don't get acceptable rendering; and I guarantee you that there is no styled page anywhere on the internet that renders correctly on 100% of platforms for all user settings.

Cd&
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question