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.
|
|
|
|
|
![]() |
||
Positioning between <h3>
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
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 |
|
|
|
|||
|
Re: Positioning between <h3>
Different browsers have different default styles. If you don't specify a style, you leave it to the browser to decide.
|
|
|||
|
Re: Positioning between <h3>
Quote:
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:
Last edited by MikeHopley; Sep 11th, 2007 at 22:40. |
![]() |
| Tags |
| vertical positioning, white space |
| Thread Tools | |
|
|
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 |