Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Vertical Align - Table-cell - IE Not Working
Old 07-20-2008, 10:34 AM Vertical Align - Table-cell - IE Not Working
Galaxian's Avatar
Dingleberry!

Posts: 825
Name: Rich
Location: United Kingdom
Trades: 0
Trying to vertical-align with table-cell set however it doesn't seem to work in IE(<=7)

World of Warcraft Cheats

Check that link out. If you use IE then you will see that the top H1 where it says World of Warcraft is stuck to the top, however in Firefox it is fine.

Code:
.gamehead {
 float: left;
}
.gamehead h2 {
 color: #C9C9C9;
 padding: 0px;
 display: table-cell;
 margin: 0px;
 vertical-align: middle;
 text-align: center;
 width: 235px;
 height: 85px;
}
Suggestions?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Galaxian; 07-20-2008 at 11:03 AM..
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
 
Register now for full access!
Old 07-20-2008, 12:29 PM Re: Vertical Align - Table-cell - IE Not Working
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
IE doesn't support display:table-cell.

http://www.quirksmode.org/css/display.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-20-2008, 06:58 PM Re: Vertical Align - Table-cell - IE Not Working
Galaxian's Avatar
Dingleberry!

Posts: 825
Name: Rich
Location: United Kingdom
Trades: 0
Shoot. Suggested fix?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 07-20-2008, 07:13 PM Re: Vertical Align - Table-cell - IE Not Working
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Conditional comments. This is what I use when I'm using the table-row and table-cell properties to correct for IE7. You will, of course have to modify to your ends:

<!--[if lte IE 7]>
<style>
.row{
display: block;
}
.cell{
clear: none;
display: inline;
float:left;
vertical-align: middle;
}
.cell div{
clear: none;
display: inline;
float:left;
vertical-align: middle;
}
.cell a{text-align:center;}
.cell a img{border:2px solid #000;}
.ieclear{clear:both;}
</style>
<![endif]-->

Which means you'll have to put in ieclear divs to clear your floats, thus really eliminating the ease of using table-row and table-cell. That's why I cleaned up what I really name the class names.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by serandfae; 07-20-2008 at 07:16 PM..
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 07-21-2008, 06:25 PM Re: Vertical Align - Table-cell - IE Not Working
Galaxian's Avatar
Dingleberry!

Posts: 825
Name: Rich
Location: United Kingdom
Trades: 0
Eh sorry having trouble adapting that code. Maybe it's just best I take the easy option and use tables for the header?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 07-21-2008, 10:33 PM Re: Vertical Align - Table-cell - IE Not Working
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Use what you already have posted, minus the table-cell entry, in the conditional comments, with display:inline; to override the previous stylesheet. Make sure your conditional comments come *after* your main stylesheet link, and make sure the float is cleared after that h1.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to Vertical Align - Table-cell - IE Not Working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35441 seconds with 12 queries