Solved

Search box in WordPress

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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…

757 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

20 Experts available now in Live!

Get 1:1 Help Now