[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Search box in WordPress

Posted on 2014-04-11
3
Medium Priority
?
292 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses

649 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