The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> IE line spaces are too wide
Mozgus
post Sep 19 2006, 01:08 PM
Post #1





Group: Members
Posts: 6
Joined: 19-September 06
Member No.: 166



I'm hoping there is a way to make it so the following page will display roughly the same in both Firefox and IE:

http://stevemv.mightorindustries.net/history.html

In IE, there is a much thicker space between every line of text, as well as the dividers. This is also making it impossible to position the lone image near the bottom, to the right of the unordered list. If I use the exact padding, I can get the image vertically centered in Firefox, but it only makes it worse in IE.

I'm very new to XHTML and CSS. These little things are really frustrating me and making me wonder why I am even learning this. Because when I just gave the IMG the align="right" attribute before, it positioned fine, but apparently thats an illegal attribute now :-\

This post has been edited by Mozgus: Sep 19 2006, 01:09 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Sep 19 2006, 03:01 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,668
Joined: 10-August 06
Member No.: 7



QUOTE(Mozgus @ Sep 19 2006, 08:08 PM) *

I'm hoping there is a way to make it so the following page will display roughly the same in both Firefox and IE:

http://stevemv.mightorindustries.net/history.html


I think it does already. You can never expect identical rendering between different browsers.

QUOTE
In IE, there is a much thicker space between every line of text,


The line-height appears to be the same in IE6 and Firefox. Or do you mean the margin/padding on the P elements? These are not defined in http://stevemv.mightorindustries.net/web.css so maybe the browsers' default values create a difference.

QUOTE
as well as the dividers.


Again it's probably the unspecified P margin/padding. But I don't see the point in using <div class="divider"></div> between paragraphs in the first place, why not apply the CSS border on the P elements instead?

QUOTE
This is also making it impossible to position the lone image near the bottom, to the right of the unordered list. If I use the exact padding, I can get the image vertically centered in Firefox, but it only makes it worse in IE.


When an element is floated, other elements will flow around it beginning at the top. Furthermore the exact height of the list depends on the font-size, making vertical positioning unreliable. You might use the image as a background to the list, at least as long as the list is higher than the image.

QUOTE
I'm very new to XHTML and CSS. These little things are really frustrating me and making me wonder why I am even learning this.


CSS is useful, XHTML is not. My advice is to stick to HTML4/strict.

QUOTE
Because when I just gave the IMG the align="right" attribute before, it positioned fine, but apparently thats an illegal attribute now :-\


Can't see how the ALIGN atribute would make any difference. FWIW you can still use it with a transitional Doctype/HTML version.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st May 2024 - 03:28 PM