Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > CSS
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-24-2009, 05:11 PM
  #1
eugene3.1
Novice (Level 1)
 
Join Date: Dec 2008
Posts: 10
iTrader: (0)
eugene3.1 is an unknown quantity at this point
IE6 IE7 h3 positioning

I've been building a website but have an Issue with H3 headers. It seems that the positioning with padding etc is ignored by IE7 and below.

Does anyone know a way around this? Adding sizes into the style sheet desn't help. The site can be seen here: www.bangersandmashme.com

cheers,
eugene3.1 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-26-2009, 02:52 PM
  #2
eugene3.1
Novice (Level 1)
 
Join Date: Dec 2008
Posts: 10
iTrader: (0)
eugene3.1 is an unknown quantity at this point
I've managed to solve it for all browsers but in IE7 the padding pushes the pink h3 in the middle column under other content. Anyone know why IE7 treats the css different?
eugene3.1 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-26-2009, 03:58 PM
  #3
Excavator
Lord (Level 16)
 
Join Date: Dec 2006
Location: Alaska
Posts: 737
iTrader: (0)
Excavator is on a distinguished road
Hello eugene3.1,
Have you tried the reset?
Applying margin:0; padding:0; to everything will let you specify your own measurements since defaults are different from browser to browser.

Put this at the top of your CSS -
Code:
* {
margin: 0;
padding: 0;
}
__________________
Validate often, DURING development! Use it like a splelcheker.
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-26-2009, 04:40 PM
  #4
phatbass
Warrior (Level 8)
 
Join Date: Jul 2008
Posts: 72
iTrader: (0)
phatbass is on a distinguished road
The problem seems to be caused by your <div class="padding"> that wraps the <h3>. The padding-top of 17px pushes the content too far down in IE and hides it behind the div below it.

If you change your padding-top to 12px it works fine, BUT in FF it then appears a bit too high. I've experienced quite a bit of such inconsistencies between browsers. So far, I have not been able to find an elegant fix, not sure if one exists. I noticed that it's not caused by a particular tag, but is rather caused by heavy nesting. The more nested elements you have, the more noticeable such inconsistencies will be.
phatbass is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-26-2009, 05:57 PM
  #5
eugene3.1
Novice (Level 1)
 
Join Date: Dec 2008
Posts: 10
iTrader: (0)
eugene3.1 is an unknown quantity at this point
Thanks phatbass and Excavator, been banging my head against the cross browser walls for ages with this.

Excavator's tip works well, makes alignment much easier.

* {
margin: 0;
padding: 0;
}

In my case I also needed to make the the top div in the middle column taller so the text aligned with the right column but didn't push the middle column headers too far.

Thanks again guys thats one annoying issue to cross of my list. :-)
eugene3.1 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 04:00 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.