Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > spacing different from IE to FF

Reply
Thread Tools

spacing different from IE to FF

 
 
alice
Guest
Posts: n/a
 
      06-23-2008
In the following code, the space between the empty.gif and the letter
N is about 6 px in Firefox, and about 12 in EI7 (that's the closest I
can measure using a ruler tool). What would have to do to make it the
same in both browsers?

<li style="margin-top:-47px;margin-left:561px;"><a
href="sound.html"><img src="empty.gif" style="border:none;" /></a>
<ul>
<li style="position:relative;top:-248px;left:2px;">S</li>
<li style="position:relative;top:-264px;left:-1px;">O</li>
<li style="position:relative;top:-280px;">U</li>
<li style="position:relative;top:-300px;">N</li>
</ul>
</li>
 
Reply With Quote
 
 
 
 
Chris F.A. Johnson
Guest
Posts: n/a
 
      06-23-2008
On 2008-06-23, alice wrote:
> In the following code, the space between the empty.gif and the letter
> N is about 6 px in Firefox, and about 12 in EI7 (that's the closest I
> can measure using a ruler tool). What would have to do to make it the
> same in both browsers?
>
><li style="margin-top:-47px;margin-left:561px;"><a
> href="sound.html"><img src="empty.gif" style="border:none;" /></a>
><ul>
><li style="position:relative;top:-248px;left:2px;">S</li>
><li style="position:relative;top:-264px;left:-1px;">O</li>
><li style="position:relative;top:-280px;">U</li>
><li style="position:relative;top:-300px;">N</li>
></ul>
></li>


First, validate your HTML (http://validator.w3.org/).
If you still have problems, post the URL here.

--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      06-23-2008

alice wrote:
> In the following code, the space between the empty.gif and the letter
> N is about 6 px in Firefox, and about 12 in EI7 (that's the closest I
> can measure using a ruler tool). What would have to do to make it the
> same in both browsers?


How many times has it been said that pixel-perfect layouts are doomed to
fail? A couple pixels don't really matter in the scheme of things, and
chances are you'll never get it the same across all of the major browsers.

> <li style="margin-top:-47px;margin-left:561px;"><a
> href="sound.html"><img src="empty.gif" style="border:none;" /></a>
> <ul>
> <li style="position:relative;top:-248px;left:2px;">S</li>
> <li style="position:relative;top:-264px;left:-1px;">O</li>
> <li style="position:relative;top:-280px;">U</li>
> <li style="position:relative;top:-300px;">N</li>
> </ul>
> </li>


Do you even know what position:relative really does? Or what this looks
like at varying text sizes? I can't imagine this is the best way to do
whatever it is you're trying to accomplish.

Post a URL.

--
Berg
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-23-2008
On Jun 23, 2:50*pm, Bergamot <berga...@visi.com> wrote:
> How many times has it been said that pixel-perfect layouts are doomed to
> fail?


My guess would be about 1/10th the number of times there have been a
successful pixel-perfect site...

> A couple pixels don't really matter in the scheme of things, and
> chances are you'll never get it the same across all of the major browsers..


The same? maybe not, close enought to the same that no one would
notice, probalby so. Pixel perfect sites created by competent
professionals look fine in all but extreme circumstances . (And yes,
based on what I know of you I would categorize you as being in that
group)

For examples of fixed width pixel-perfect sites that look the same in
all the popular browsers please see virtually any fortune 500 website.

> Do you even know what position:relative really does?


They probably don't.

> Or what this looks like at varying text sizes?


Agan they probably never checked.

> I can't imagine this is the best way to do
> whatever it is you're trying to accomplish.


Your probably right.

> Post a URL.


The anticipation is killing me...
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-23-2008
On Jun 22, 10:12*pm, alice <al...@fearofdolls.com> wrote:
> In the following code...


Posting the code is meaningless as your error may be in the code you
did not post. Post a URL so we can see EXACTLY what you are doing.
 
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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu spacing v1.5 FF Willie Buck Merle Firefox 5 12-02-2005 05:48 AM
Dynamic placement/spacing on page using radio button lists, etc. KatB ASP .Net 1 10-04-2004 11:36 PM
Spacing columns in DataGrid Greg Linwood ASP .Net 2 12-19-2003 02:48 AM
Row spacing in DataList Stephan Bour ASP .Net 0 12-08-2003 06:23 PM
Re: Spacing radio buttons in a PlaceHolder Craig Deelsnyder [MVP] ASP .Net 0 07-15-2003 12:50 AM



Advertisments
 



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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57