1 reply [Last post]
Janetb
Offline
newbie
Last seen: 11 years 7 weeks ago
Joined: 2004-09-28
Posts: 10
Points: 0

Have the following code giving me what I need in IE6 and IE7, but Firefox won't center the header. I want the header fixed, so that when you scroll down it's always at the top, centered. I'm not a pro, so I'd appreciate a little help before I bang my head against the wall... Any takers - many thanks?

html,body { padding:0; height:100%; background:#DAD2DA; font: normal 14px Comic Sans MS; margin: 0 auto; } html>body #wrap { height:100%; margin: 0 auto; border-left:solid 1px #336699; border-right:solid 1px #336699; border-top:solid 1px #336699; } #wrap { margin: 0 auto; } #header { margin: 0 auto !important; position:fixed; background-image: url(http://www3.mahec.net/images/banner.jpg); width:760px; height:130px; z-index:10; border-top:solid 1px #336699; border-left:solid 1px #336699; border-right:solid 1px #336699; } html>body #header { margin: 0 auto !important; position:fixed; background-image: url(http://www3.mahec.net/images/banner.jpg); width:760px; height:130px; z-index:10; } html>body #header-content { position:relative; float:left; margin: 105px 0px 0px 340px; } #header-content { position:relative; float:left; margin: 105px 0px 0px 170px; } html>body #content-wrap {...yada yada

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 19 weeks 5 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

Where's the HTML?

Where's the HTML?

Verschwindende wrote:
  • CSS doesn't make pies