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
Solved

HTML: How to get search form where it is supposed to be on this page

Posted on 2013-11-29
7
373 Views
Last Modified: 2013-11-30
How can I get the search form where it is supposed to be (as indicated by the picture of it in the bottom corner of the top banner)?

http://bkgoswami2013.atourcity.com/wp/

And also how to get the little magnifying glass graphic in it. I have the graphic already.
0
Comment
Question by:Jeff swicegood
  • 3
  • 2
  • 2
7 Comments
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 217 total points
ID: 39686216
Overlay the real search box using absolute positioning which will be difficult to manage, unreliable and non-responsive.

Use an image map to create a hotspot link.  This will not function like a real search and will require a lot of scripting to manage.

OR
Do it properly by using a real search in a real form and quit trying to do things that are certain to fail under some conditions, because you think it looks cool.

User don't really care about technically difficult, but they do care when a page fails because the developer did some weird. If you want to impress users you might start by address the 39 errors in the markup report by the validator so the page is less likely to crash:
http://validator.w3.org/check?uri=http%3A%2F%2Fbkgoswami2013.atourcity.com%2Fwp%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

Cd&
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 39686247
Thanks for the chastisement, Mr Dinosoar! I will work on the validation error immediately.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 217 total points
ID: 39686262
It was not my intent to chastise or offend.  It appears that an image on competence is important for this site to meet its objectives, and having errors that could cause the page to fail would hurt that objective.

Development of a site should always put the message it carries ahead of all other considerations, because in the end the only things users actually notice are the things that don't work correctly.  Something that does not work then becomes the memory and impression of the site instead of the message.

Cd&
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Author Comment

by:Jeff swicegood
ID: 39686263
This is good philosophy. I am learning...
0
 
LVL 38

Assisted Solution

by:Tom Beck
Tom Beck earned 283 total points
ID: 39686849
You have a real search in a real form already, you just need to position it properly. Position relative is more reliable cross-browser than position absolute. Try it with this css:

form#searchform input#s {
    background-attachment: fixed;
    background-image: url("/wp/wp-content/uploads/magnifying_glass.png");
    background-position: right center;
    background-repeat: no-repeat;
    border-radius: 25px;
    height: 20px;
    left: -15px;
    position: relative;
    top: -108px;
    width: 213px;
    z-index: 10;
}

Modify your header image so the background area of the search box is plain black.
And of course, fix the validation errors like COBOL suggested.
0
 
LVL 38

Assisted Solution

by:Tom Beck
Tom Beck earned 283 total points
ID: 39686884
To get the magnifying glass image as your submit button you could do something like this:

HTML:
<form id="searchform" action="/wp/index.php" method="get">
    <div>
        <input id="s" type="text" value="Search this blog..." name="s" onclick="this.value=''" onblur="if(this.value.length<1)this.value='Search this blog...';">
        <input id="magGlass" type="image" src="/wp/wp-content/uploads/magnifying_glass.png" title="Search">
    </div>
</form>

CSS:
form#searchform input#magGlass {
    cursor: pointer;
    left: 165px;
    position: relative;
    top: -130px;
    z-index: 11;
}
0
 
LVL 1

Author Closing Comment

by:Jeff swicegood
ID: 39687513
Thank you COBOL for your invaluable wisdom. And thank you tommyBoy for your invaluable code. I still have 5 validation errors which I need to do some research to learn how to fix, but I will end the question.

As far as making the page reliable, responsive and easy to manage. I may still go back and find a way to do that and still preserve the look. Maybe by cutting up the header graphic and then piecing it together within <div>'s, leaving space for a searchform div.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Filktering Alphabetically 8 32
Word, Excel, Access icons 4 17
Copying table data to one another 15 31
How to put a "check" next to active checkboxes. 5 17
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

829 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