Solved

Search box in WordPress

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in 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 : Click on Too…

785 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