Problem With H1 Tags In Ie & Ff

This is a discussion on "Problem With H1 Tags In Ie & Ff" within the Web Page Design section. This forum, and the thread "Problem With H1 Tags In Ie & Ff are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Apr 1st, 2008, 18:08
McG McG is offline
New Member
Join Date: Apr 2008
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Problem With H1 Tags In Ie & Ff

Hi, i have a problem with my h1 tag displaying different postion results in IE & FF.


Ive attached two images for clearly idea. The position of the headline changes in both browsers.

my aim is to have "hello" postion in the vertical middle of div tag.
i have used both padding and line height previously, but i have the same inconsistent results.

Heres my xhtml code:
HTML: Select all
<body>
<div id="Container">
 
<div id="headline"><h1>Hello</h1></div>
 
</div>
</body
 
Heres my css:
 
h1 {
font-family:"Century Gothic";
font-size: 1em;
font-weight: bold;
color: #CC0000;
text-align: center;
width: 600px;
}
 
 
#Container {
background-color: #66CCFF;
height: 200px;
width: 800px;
position: absolute;
}
 
#headline {
background-color: #CCCCCC;
height: 40px;
position: relative;
bottom: 0px;
margin: 0px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 200px;
}
any help would be great
Attached Images
File Type: jpg IE.jpg (123.4 KB, 4 views)
File Type: jpg FF.jpg (103.3 KB, 3 views)

Last edited by Aso; Apr 1st, 2008 at 18:18. Reason: Please use BBcode
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 1st, 2008, 18:22
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,341
Blog Entries: 2
Thanks: 11
Thanked 49 Times in 46 Posts
Re: Problem With H1 Tags In Ie & Ff

Get rid of;
HTML: Select all
<div id="headline">...</div>
and use;
HTML: Select all
<h1 id="headline">Hello</h1>
Now modify the CSS to
Code: Select all
 #Container {
background: #66CCFF;
height: 200px;
width: 800px;
position: relative;
}
 
#headline {
font: 1em "Century Gothic" bold;
color: #CC0000;
background: #CCCCCC;
display: block;
width: 100px;
margin: 0;
padding: 0;
position: absolute;
bottom: 10px; //adjust if needed
right: 150px; //adjust if needed
}
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Title Tags, Meta Tags and SEO - Keyword Density or Keyword Spamming? pctank Search Engine Optimization (SEO) 2 Jul 4th, 2008 11:52
alt tags in css multichild Web Page Design 1 Feb 24th, 2008 12:35
Tags acrikey Webforumz Cafe 28 Jul 12th, 2007 09:20
Help with Tags... courtjester Classic ASP 15 Sep 19th, 2004 07:38


All times are GMT. The time now is 11:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42