Jump to content

How to change shape of text field


lucy

Recommended Posts

I want to create a search bar, which is rectangular with right angled edges, but i can only get one with rounded(ish) corners. See images below:

 

I want the search bar to look like this:

captureynv.jpg

 

but i can only get it to look like this:

capture1dck.jpg

 

Can anyone give me a solution or point me in the right direction please.

 

Thanks,

Lucy

Link to comment
Share on other sites

Put an id to the search field, such below...

 

<input type='text' id='search' name='search' />
<input type='submit' value='search' name='search' />

Change the 'name=' to the names you already have.

 

Then apply some CSS to the input, put this in the header...

 

<style type='text/css' ref='stylesheet'>
#search
{
     padding-5px; /* adjust to make it fit with the image */
     margin-right: -5px;
}
</style>

You can put the CSS in with your file, if you have it already.

 

Hope that helped.

Link to comment
Share on other sites

Yes that has made the image stick by the search box, but it has not made the search box with sharp 90 degree corners as in the image, it has kept the box with rounded corners.

 

How can i make the corners sharp?

 

Thanks :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.