/    Sign up×
Community /Pin to ProfileBookmark

Alignment problem, search engine input/submit button

Hi,

I have a bar across the top-middle part of my page with HTML:

[code=html]<div id=”subheader”>
<div class=”searchbar”><input type=”text” name=”search” value=”Search…” /><input type=”image” src=”images/searchbutt.jpg” width=”52″ height=”17″ style=”margin-top:5px” /></div>
</div>[/code]

and CSS:

[code=html]#subheader
{
width:100%;
height:36px;
background: #000 url(‘images/subheader.jpg’);
background-repeat:repeat-x;
}

/* SUB-HEADER WITH SEARCH ENGINE ETC. */

.searchbar {
float:right;
padding-right:225px;
height:36px
}

#subheader input {
margin-top:1px;
font-size:14px;
}[/code]

However, I am having problems with alignment. The submit button is higher up the page by a few pixels than my input field.

Can someone suggest how I fix this? I’m convinced it’s a very simple change.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelFeb 15.2008 — <div id="subheader"> <div class="searchbar"><input type="text" name="search" value="Search..." [B]style="vertical-align:middle;"[/B] /><input type="image" src="images/searchbutt.jpg" width="52" height="17" style="margin-top:5px" [B]style="vertical-align:middle;"[/B] /></div> </div>[/QUOTE] Seems to work.

Probably could be applied once to "[B].searchbar[/B]"
Copy linkTweet thisAlerts:
@invisionauthorFeb 15.2008 — See what I mean! So simple ?

Many thanks WebJoel, you're a credit to the forum ?
×

Success!

Help @invision spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...