/    Sign up×
Community /Pin to ProfileBookmark

IE only: valign=middle won’t work

Hi guys,

I’m working on optic.virkpaanettet.dk – and the problem is the form, with the input field and the submit button (labeleld “Søg”). valign=middle works fine in mozilla – but not in IE.

I even tried setting:
TD { vertical-align: middle; }

in my style.css – but that made very other tablecell put the stuff in the middle – EXCEPT that one cell ?

I’m really lost for ideas here ?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@crh3675Jul 29.2004 — Get rid of the line-height and see if it works.

I actually see no problems with the valign attribute in IE 6 and Firefox
Copy linkTweet thisAlerts:
@klavsauthorJul 29.2004 — I actually found the problem (which was there with and without the lineheight.

IE added a newline after the </form> tag - which was only fixed by moving the <form> and </form> tags outside of the <td> the inputfields were in.. see how it looks now.

Annoying - but it works - but is not w3c validatable I'm afraid ?

there are other none-w3c validatible things in there - so ?
Copy linkTweet thisAlerts:
@crh3675Jul 29.2004 — Ahhh! Dont' invalidate the code. Set this style:

FORM{

margin-bottom:0px;

}
×

Success!

Help @klavs 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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