Solved

Search box in WordPress

Posted on 2014-04-11
3
283 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now