/    Sign up×
Community /Pin to ProfileBookmark

Need Help centering text

Hi Guys,

I’m hoping someone can pin point where the error is. I have a css hover table that loads a js file displaying text. The prob i have is that the text is not centered within the middle of the table row, instead it is at the top of the row. Everything looks fine in FF but in IE is does not. i have listed the css code below.

Here is the page that shows the hover table.
[url]www.iheartvacation.com/toronto[/url]

Here is the CSS for the hover table.

#table1 {
position:absolute;
width:515px;
height:25px;
z-index:1;
border-collapse: collapse;
background-color: #DEEFEF;
font-family: Verdana;
font-size: 10px;
}
#table1 tr:hover td {
background-color:#d0dafd;
}

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 11.2010 — Try this:#table1 td {vertical-align:middle;}
#table1 td a {display:block;}

Invalid id and invalid nesting of elements. Validate your document.
<tr><td id="[COLOR="Red"]1[/COLOR]">[COLOR="Red"]<ol>[/COLOR]<a href="
×

Success!

Help @khujo56 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,
)...