I have the following CSS for an unordered list.
ul
{
padding:0px;
margin:0px;
list-style: none;
padding-top: 50px;
}
li
{
padding:0px;
margin:0px;
line-height: 38px;
}
So the idea is pretty simple. I pad the list by 50px top to move it
down within it's contaning div. I then list the menu and set each li
to 38px line-height. The line-height centers the text within a
background image in IE. However, in firefox, the li element's height
is larger than in IE implying that the line-height is interpreted
differently.
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px. I don't see how this could be the case given that padding and
margin are set to 0, and the line-height is set to 38px. 27 7008 ck******@gmail. com wrote:
>
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px.
Gee, what a disaster. :-\
If you're so hung up on 1 pixel in a list item, I can imagine what the
rest of the layout is like. And it isn't good. :(
--
Berg
Scripsit ck******@gmail. com:
I have the following CSS for an unordered list.
How about a URL?
I pad the list by 50px top to move it
down within it's contaning div.
Why? Anyway, this seems to have nothing to do with anything else in the
question.
I then list the menu and set each li
to 38px line-height.
Why? Did you even consider the possibility that some people _have_ to set
font size to, say, 60px in order to be able to read the text? Besides,
setting line-height is a wrong idea here. Who knows whether some items will
some day actually spread across two lines, and how silly will things _then_
look like?
The line-height centers the text within a
background image in IE.
What background image? Anyway, it's a silly idea, since line-height was not
designed for such purposes and need _not_ mean equal spacing above and
below.
However, in firefox, the li element's height
is larger than in IE implying that the line-height is interpreted
differently.
Should we be surprised?
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px. I don't see how this could be the case given that padding and
margin are set to 0, and the line-height is set to 38px.
If your problem is really the difference between 38px on one browser and
39px on another, then you clearly have no idea of what your real problems
are. Neither have us, since you didn't reveal a URL.
--
Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/
On Mar 19, 12:37 pm, Bergamot <berga...@visi. comwrote:
ckarb...@gmail. com wrote:
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px.
Gee, what a disaster. :-\
If you're so hung up on 1 pixel in a list item, I can imagine what the
rest of the layout is like. And it isn't good. :(
--
Berg
Well, calling it a disaster isn't going to help. I have a layout
given to me by a graphic designer. It's more than 1 px, it's 1px off
per list item which adds up over several menu items. I'm trying to
do this the "right" way by using CSS.
I'm looking for advice or constructive criticism, not "this is a
disaster." I'm still learning. Thanks in advance. ck******@gmail. com wrote:
I have the following CSS for an unordered list.
ul
{
padding:0px;
margin:0px;
list-style: none;
padding-top: 50px;
}
li
{
padding:0px;
margin:0px;
line-height: 38px;
}
So the idea is pretty simple. I pad the list by 50px top to move it
down within it's contaning div. I then list the menu and set each li
to 38px line-height. The line-height centers the text within a
background image in IE. However, in firefox, the li element's height
is larger than in IE implying that the line-height is interpreted
differently.
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px. I don't see how this could be the case given that padding and
margin are set to 0, and the line-height is set to 38px.
Is there any <aelement inside the <li>?
Is there any width restriction on the <ulor <li>?
Are there any other style rules that could be interfering with the
above snippet?
What doctype did you use?
What does the HTML for that list look like? Do you have any whitespace
between the </liand <litags?
(I think giving the url would be best ;-) )
--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
On 2007-03-19, ck******@gmail. com <ck******@gmail .comwrote:
I have the following CSS for an unordered list.
ul
{
padding:0px;
margin:0px;
list-style: none;
padding-top: 50px;
}
li
{
padding:0px;
margin:0px;
line-height: 38px;
}
So the idea is pretty simple. I pad the list by 50px top to move it
down within it's contaning div. I then list the menu and set each li
to 38px line-height. The line-height centers the text within a
background image in IE. However, in firefox, the li element's height
is larger than in IE implying that the line-height is interpreted
differently.
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px. I don't see how this could be the case given that padding and
margin are set to 0, and the line-height is set to 38px.
Bear in mind that the line-height property sets a minimum line height.
What do you have in the <li>?
On 19 Mar, 18:45, ckarb...@gmail. com wrote:
Well, calling it a disaster isn't going to help.
You're right, it's not a disaster.
I have a layout given to me by a graphic designer.
OK, _now_ it's a disaster.
Why are you employing a graphic designer obsessed with individual
pixels to design for a document-based medium where you have no control
over, or idea of, the pixel resolution of the users' display devices?
Don't set line-height.
Don't ever set line-height unless you're really pretty experienced
with CSS.
On Mar 19, 12:15 pm, "Andy Dingley" <ding...@codesm iths.comwrote:
On 19 Mar, 18:45, ckarb...@gmail. com wrote:
Well, calling it a disaster isn't going to help.
You're right, it's not a disaster.
I have a layout given to me by a graphic designer.
OK, _now_ it's a disaster.
Why are you employing a graphic designer obsessed with individual
pixels to design for a document-based medium where you have no control
over, or idea of, the pixel resolution of the users' display devices?
Don't set line-height.
Don't ever set line-height unless you're really pretty experienced
with CSS.
http://whoisweb20.com/gallery/
On Mar 19, 12:15 pm, "Andy Dingley" <ding...@codesm iths.comwrote:
On 19 Mar, 18:45, ckarb...@gmail. com wrote:
Well, calling it a disaster isn't going to help.
You're right, it's not a disaster.
I have a layout given to me by a graphic designer.
OK, _now_ it's a disaster.
Why are you employing a graphic designer obsessed with individual
pixels to design for a document-based medium where you have no control
over, or idea of, the pixel resolution of the users' display devices?
Don't set line-height.
Don't ever set line-height unless you're really pretty experienced
with CSS.
http://whoisweb20.com/gallery/
On Mar 19, 11:20 am, ckarb...@gmail. com wrote:
I have the following CSS for an unordered list.
ul
{
padding:0px;
margin:0px;
list-style: none;
padding-top: 50px;
}
li
{
padding:0px;
margin:0px;
line-height: 38px;
}
So the idea is pretty simple. I pad the list by 50px top to move it
down within it's contaning div. I then list the menu and set each li
to 38px line-height. The line-height centers the text within a
background image in IE. However, in firefox, the li element's height
is larger than in IE implying that the line-height is interpreted
differently.
It's as if in IE it's perfectly 38px per LI, and in Firefox it's
39px. I don't see how this could be the case given that padding and
margin are set to 0, and the line-height is set to 38px.
Here's a URL http://whoisweb20.com/gallery/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jeremy Epstein |
last post by:
I've got a 4-page form that lets users enter a whole lot of information,
which is then submitted and emailed at the end. All the fields are
stored as session data.
The whole thing works fine:
1. On my local box (WinXP / Apache2 / PHP4) using IE6
2. On my local box using Firefox1
3. On my hosted server (RHLinux / Apache1.3 / PHP4) using IE6
|
by: expertware |
last post by:
Dear friends,
My name is Pamela, I know little about CSS,
but I would like to ask a question
I have an image on a web page within a css layer:
<DIV ID=MyLayer
STYLE = "position: absolute;top:68px; left:563px;
width:640px;height:480px;">
<IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
|
by: expertware |
last post by:
Ok! to avoid confusion I will start a new argument.
Thanks!!
FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT
===============================================================
by Pamela
Datatime Team
-----------------
|
by: SPE - Stani's Python Editor |
last post by:
Hi,
During optimizing SPE for Ubuntu, I found something strange. I have
Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not
working:
>>> import webbrowser
>>> webbrowser.open("http://www.python.org")
It does not throw an exception, but is not able to launch a browser.
|
by: Coder |
last post by:
Hi I have the following code in java script, it is not giving proper
output in FIREFOX but running fine in IE... can anybody help me out to
make this run in FIREFOX .
<script language="JavaScript">
var cntlName;
var eleTarget = document.getElementById('hiding');
function showOrHide(){
| |
by: amit |
last post by:
Hello group,
I'm kinda skeptical about a code is being used in my js program. All it
does is checking what browser is being run and finds out if FLASH is
installed or not.
This code works just fine withe IE but as far as Firefox I'm not sure.
Using the firefox I can see flash pages easily but when this code says
firefox is not installed in my firefox!!!
|
by: scotty |
last post by:
I have a script that loops through an existing table list and prepares
each href element node to trigger a function when an image is
clicked. The function that will be run passes a property value to the
function upon clicking. The property value is one of the attributes
defined for each respective href in the property list.
In IE and Netscape, the property values pass correctly, but in
Firefox, only the last property value in the list...
|
by: Carlos Mendonça |
last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me
that it still has the same issues VS 2K5 had.
I appreciate any comments or tips.
|
by: SAL |
last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps
section of either web.config or machine.config but it didn't work.
It seems that most pages in my webapp are okay but a couple of the Firefox
is munging up.
So, on my information page there is a gridview in the content section of the
page. The masterpage contains searching capabilities for the gridview. The
masterpage has controls contained in a panel control,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |