Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » H2 tag shows different size on IE and firefox ?


H2 tag shows different size on IE and firefox ?

Reply
  #1 (permalink)  
Old 10-08-06, 07:06 PM
feelexit feelexit is offline
New Member
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
H2 tag shows different size on IE and firefox ?

I just got my site done few days ago.

try to make it to show up exactly same on both IE 6 and firefox.

but just found out they show the h2 tag differently.


if you have both IE , and firefox.

http://www.blog-creative.com

on IE, title is alot bigger, on firefox, its small. what happens?
Reply With Quote
  #2 (permalink)  
Old 10-08-06, 08:42 PM
fmx fmx is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
add this to your css file-
Code:
#siteTitle h2{
   font-size:18px;
}
change the size to whatever...
Reply With Quote
  #3 (permalink)  
Old 10-09-06, 09:19 AM
Shaffer Shaffer is offline
Wannabe Coder
 
Join Date: Sep 2006
Location: Israel
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
What?!
How the heck is that supposed to help..?

This Javascript should...
Code:
<!--
if(navigator.appName == "Firefox") {
    h2.style='font-size: 'yourFontSize' ;
} else if(navigator.appName == "Microsoft Internet Explorer") {
    h2.style='font-size: yourFontSize' ;
}
//-->
Not sure, sorry if I got it wrong...
<<snip>>



Shaffer.
__________________
Hello from Israel!

Last edited by Christian; 10-09-06 at 01:42 PM. Reason: Lets keep the ads in the ads forums. ;)
Reply With Quote
  #4 (permalink)  
Old 10-10-06, 10:44 AM
Spaced Spaced is offline
Newbie Coder
 
Join Date: Jul 2006
Location: Winnipeg MB
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Why would you use a clunky javascript when you can use one line of css to fix that problem??
Reply With Quote
  #5 (permalink)  
Old 10-10-06, 10:59 AM
Shaffer Shaffer is offline
Wannabe Coder
 
Join Date: Sep 2006
Location: Israel
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Which is..?
__________________
Hello from Israel!
Reply With Quote
  #6 (permalink)  
Old 10-11-06, 06:04 PM
feelexit feelexit is offline
New Member
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fmx , thanx.

it works.
Reply With Quote
  #7 (permalink)  
Old 10-17-06, 02:11 PM
leeprice2006 leeprice2006 is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Shaffer
What?!
How the heck is that supposed to help..?
oh my god shaffer, bet you feel like a right fool now...

What was the point in using javascript when CSS is a lot easier...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 08:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.