Positioning between <h3>

This is a discussion on "Positioning between <h3>" within the Web Page Design section. This forum, and the thread "Positioning between <h3> 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 Sep 11th, 2007, 20:20
Up'n'Coming Member
Join Date: Feb 2007
Location: Norwich, UK
Age: 23
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Positioning between <h3>

This is a common problem I have always had but I've never sought about looking for an answer until now.

I am getting text between a <h3> tag shown in a different vertical position in firefox and IE. The size also appears to be different despite the <h3> tag being unstyled.

Firefox



IE7



The code can be viewed here....

http://www.mattoconnor.co.uk/studentrecipes.php

Thanks in advance,

Matt
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 Sep 11th, 2007, 21:00
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning between <h3>

Quote:
Originally Posted by konnor5092 View Post
The size also appears to be different despite the <h3> tag being unstyled.
Different browsers have different default styles. If you don't specify a style, you leave it to the browser to decide.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 11th, 2007, 21:29
Up'n'Coming Member
Join Date: Feb 2007
Location: Norwich, UK
Age: 23
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning between <h3>

Quote:
Originally Posted by MikeHopley View Post
Different browsers have different default styles. If you don't specify a style, you leave it to the browser to decide.
Even regarding vertical positioning when I have set the margin and padding to 0?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 11th, 2007, 22:37
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning between <h3>

Quote:
Originally Posted by konnor5092 View Post
Even regarding vertical positioning when I have set the margin and padding to 0?
Maybe.

The line-height value, for example, could also affect the vertical positioning. Unless this is zero, the difference in browser font-sizes will cause a difference in line-height, which will have much the same effect as adding different padding to the top and bottom. Try specifying a font-size, or specifying line-height: 0;, or both.

You might also have a conflict of styles, although it's unlikely. You can check this by adding !important after your zero-margin and padding declarations:

Code: Select all
{
margin: 0 !important;
padding: 0 !important;
}
These will override all conflicting rules, provided you have not used !important anywhere else. It's a marvellous CSS debugging tool for when you have complex stylesheets, or a cascade over multiple stylesheets. Be sure to remove it after testing.

Last edited by MikeHopley; Sep 11th, 2007 at 22:40.
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

Tags
vertical positioning, white space

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
CSS and positioning djme Web Page Design 6 Feb 3rd, 2006 13:27
Positioning with CSS Tino Web Page Design 8 Jan 21st, 2006 15:45
css positioning ivyholly Web Page Design 14 Dec 20th, 2005 18:43
Positioning with css Hub Web Page Design 12 Dec 13th, 2005 19:45
div positioning benbacardi Web Page Design 10 May 24th, 2004 12:25


All times are GMT. The time now is 07:06.


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