Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 07-30-2009, 07:31 PM   #1
New Member
 
Join Date: Jul 2009
Posts: 3
Cool IE7 display:inline padding bottom issue

I was just wrestling with a VERY annoying issue with IE7. I wanted to create an <h1> with a background color that expanded only as far as the dynamic text inside it. When the <h1> was set to display:inline, I got the desired effect in every browser (including IE6!) except IE7. The <h1> would not display any bottom padding. I added a border around it and saw that it didn't show the bottom border! Only cut it off. I tried vertical-align, height, padding, margin, !important, other unorthodox display types (inline-block, table-cell, etc) and nothing.

Then for some reason, I thought about line spacing. So I added line-height:2; and viola! Now I got my padding that I wanted. Hopefully the next person to have this issue will come across this post and not burn 1.5 hours on a stupid issue.
wkdown is offline   Reply With Quote


Reply

Tags
header, ie7, inline, padding

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:58 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.