Will the following css have the same visual result in most modern browsers
as it does in IE6? TIA
p { margin-top: 6px; margin-bottom: 6px}
ul { margin-top: 6px; margin-bottom: 6px} 6 1474
namenotgivenher e wrote: Will the following css have the same visual result in most modern browsers as it does in IE6? TIA
p { margin-top: 6px; margin-bottom: 6px} ul { margin-top: 6px; margin-bottom: 6px}
Depends.
Is your doctype triggering standards or quirks mode? Should there be
any collapsing margins?
Steve
in comp.infosystem s. www.authoring.stylesheets, namenotgivenher e wrote: Will the following css have the same visual result in most modern browsers as it does in IE6? TIA
p { margin-top: 6px; margin-bottom: 6px}
No.
ul { margin-top: 6px; margin-bottom: 6px}
No.
Both work just fine in technical sence. But different browsers and
computers have different defaults.
For example if I have 5mm high letters on high PPI screen, there seems to
be no space between paragraphs. On low PPI screen, there is noticeable
space.
Note that if you style lists, there is quite different defaults for
different list elements in different browsers.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
"Steve Pugh" <st**********@g mail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. . namenotgivenher e wrote: Will the following css have the same visual result in most modern
browsers as it does in IE6? TIA
p { margin-top: 6px; margin-bottom: 6px} ul { margin-top: 6px; margin-bottom: 6px}
Depends.
Is your doctype triggering standards or quirks mode? Should there be any collapsing margins?
Steve
The doctype: <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
I want the margins to be 6px before and after each <p> or <ul>. In IE6 this
style results (to my eyes) in a vertical gap of 12px between any adjacent
<p> or <ul>.
in comp.infosystem s. www.authoring.stylesheets, namenotgivenher e wrote: "Steve Pugh" <st**********@g mail.com> wrote in message
Is your doctype triggering standards or quirks mode? Should there be any collapsing margins?
Steve
The doctype: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Not that, but thing starting <!DOCTYPE as a first thing in your file. If
there is no such thing, you are in quirks mode, which is not good.
I want the margins to be 6px before and after each <p> or <ul>. In IE6 this style results (to my eyes) in a vertical gap of 12px between any adjacent <p> or <ul>.
That's wrong behaviour, margins should collapse.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
namenotgivenher e wrote: "Steve Pugh" <st**********@g mail.com> wrote in message news:11******** **************@ g44g2000cwa.goo glegroups.com.. . namenotgivenher e wrote: Will the following css have the same visual result in most modern browsers as it does in IE6? TIA
p { margin-top: 6px; margin-bottom: 6px} ul { margin-top: 6px; margin-bottom: 6px} Depends.
Is your doctype triggering standards or quirks mode? Should there be any collapsing margins?
The doctype: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
That's not a doctype.
I want the margins to be 6px before and after each <p> or <ul>.
If p and ul and the only elements you use in yout HTML then the above
styles will give 6px gaps between each adjacent element in conforming
browsers (ignoring cases where users over ride your styles with their
own preferences).
In IE6 this style results (to my eyes) in a vertical gap of 12px between any adjacent <p> or <ul>.
IE is wrong as IE isn't collapsing adjacent vertical margins.
Steve
Steve Pugh wrote: If p and ul and the only elements you use in yout HTML then the above styles will give 6px gaps between each adjacent element in conforming browsers (ignoring cases where users over ride your styles with their own preferences).
Oh, and allowing for different browsers having different vertical
margins on <li> elements which may affect the appearance of your <ul>s.
Steve This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Thomas Mlynarczyk |
last post by:
Hello,
I noticed that IE seems to put some kind of default margins on <li> elements
and the only way to get rid of them seems to be asigning negative margins.
To make things worse, IE5 and IE6 seem to have different defaults. Is there
an elegant way to remove these stupid margins?
Greetings,
Thomas
|
by: Jukka K. Korpela |
last post by:
I just noticed that most browsers render
<table border="1"><tr><td><p>foo</p></td></tr></table>
the same way as
<table border="1"><tr><td>foo</td></tr></table>
That is, they ignore the p markup in the sense that they don't apply the
normal default top and bottom margins. This is rather odd, especially
|
by: slim |
last post by:
hi again all,
i am still working on the website as mentioned in earlier threads and
have hit another snag...
http://awash.demon.co.uk/index.php
http://awash.demon.co.uk/vd.css
the php is pulling a name and placing it under the thumbnail (the text is
|
by: Philip Herlihy |
last post by:
I'm creating a common navigation bar of text "buttons" using CSS. On each
page, I want the corresponding button to be "inert" (no hover, etc) as a
visual clue to where you are.
I thought I'd include simple <p> tags, and style them the same way as the
<a> tags, but I can't get it to work - I get different margins in each case.
I've reduced the situation to the essentials here:
http://philipherlihy.members.beeb.net/CssMargins/
|
by: Kyle James Matthews |
last post by:
Hello all,
Please have a look at http://www.digitalovertone.com/v3/example.htm.
Netscape, Mozilla, and Firefox all insert an upper margin on 1 em on the
content on the left, and an upper margin of 2em on the content on the
right. Opera inserts an upper-margin of 1 em on both columns, and
IE6/Win displays this layout as I would like it. Can someone explain
why the upper-margin is there? Is there any way to deal with this other
than...
| |
by: Patient Guy |
last post by:
For a long time, this page has been up and an embarrassment.
http://tinyurl.com/ylcqum
In Firefox, the table moves out of its parent container with the negative
margin, but not in MSIE6.
Does someone keep a list of workarounds in dealing with problems like these
for the browsers that when listed in ranking order with respect to use,
make up the 95-99% cumulatively used browsers?
|
by: listerofsmeg01 |
last post by:
Argh! I'm going nuts trying to get a constant margin after a floated
div that works cross browser.
This works in IE but not Firefox:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head></head>
<body>
<div style="float:left; height:100px; background-color:red;">Hi,
I'm floating</div>
|
by: Harris Kosmidhs |
last post by:
Hello.
sorry if this has been answered previously. I use a main wrapper div to
put the whole site in it. And I use
margin: 0 auto 0 auto
in order to center the page. But in IE it fails. Is there a workaround
for this?
Thanks
|
by: Mark Shroyer |
last post by:
I just noticed an unintuitive aspect of how nested blocks are positioned
under a specific set of conditions, and although this is ostensibly
correct behavior (unless Firefox, Safari, and Opera are all three
simultaneously wrong about this particular quirk), I'm having a hard
time figuring out the underlying premise of this behavior.
Essentially, when a nested block has a non-zero top margin greater than
that of its containing block, the...
|
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: 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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |