Hi,
I am having trouble with CSS in that I can't
get the pseudo-element 'first-line' to work.
I have some pages that contain dialog. I use
a <dlfor this, with the character's name in
a <dtfollowed by the words in a <dd>. This
is rendered as I wish with the first line not
indented, the following lines indented, and no
leading (whitespace) between the two.
However, it is bad practice to use HTML tags
for layout; layout should be in the style
sheet. So I thought I would use the CSS
pseudo-element 'first-line' to mimic the <dl>
layout. Here is a test page: http://members.tripod.com/martin_leese/Marvin/test.html
I have viewed this using Firefox 1.5,
Netscape 7.02, and IE 5.50. Only Netscape
appears to work, and only for
class="dialogma rgin".
Can somebody please explain what I am doing
wrong here.
--
Many thanks,
Martin Leese
E-mail: pl****@see.Web. for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/ 2 2438
Jonathan N. Little wrote:
Martin Leese wrote:
>Hi,
I am having trouble with CSS in that I can't get the pseudo-element 'first-line' to work.
....
>I have viewed this using Firefox 1.5, Netscape 7.02, and IE 5.50. Only Netscape appears to work, and only for class="dialogm argin".
Can somebody please explain what I am doing wrong here.
Well firstly, no way, no how IE 5.50 will work because it does not
support :first-line pseudo element, (as well as many other CSS
properties). AS I recall FF1.5 supported it but all these browsers are
*old*, Firefox is at 2.0.0.11 with 3 soon to be release and Netscape is
officially dead and buried!
Some people consider support of older
browsers to be a good thing.
Anyway there is an easier way, 2 classes.
This way it will work in these ancient browsers
....
div.orator { margin: 0 1em; }
div.dialog { margin: 0 1em 1em 3em; }
This looks good; many thanks. I finally
settled on:
p.char {margin-bottom: 0}
p.dialog {margin-top: 0; margin-left: 40px}
Follow up to: comp.infosystem s.www.authoring.html
I don't have any NG listing: alt.html.css
I do, so I have put it back :-)
--
Thanks again,
Martin Leese
E-mail: pl****@see.Web. for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/
Martin Leese wrote:
Jonathan N. Little wrote:
>> Well firstly, no way, no how IE 5.50 will work because it does not support :first-line pseudo element, (as well as many other CSS properties). AS I recall FF1.5 supported it but all these browsers are *old*, Firefox is at 2.0.0.11 with 3 soon to be release and Netscape is officially dead and buried!
Some people consider support of older
browsers to be a good thing.
1. support != look the same
2. The number of IE 5.x users has dwindled to tiny numbers, less than 1%
at sites I monitor. It's not worth the effort to try and coerce its
deficient CSS to give comparable results as more modern browsers. If it
degrades gracefully and the result is usable, good enough. The same
should hold true for any other browser, too.
3. Firefox versions prior to 2.0 are in much the same boat as IE 5.x,
especially since Fx automatically updates itself now. Graceful
degradation and usability are the keys. If you don't have them, you may
have bigger problems with the design as a whole.
>I don't have any NG listing: alt.html.css
I do, so I have put it back :-)
Never heard of alt.html.css myself. Consider the sister group to
ciwa.html: comp.info. www.authoring.stylesheets
--
Berg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James Stroud |
last post by:
Hello All,
Because of my poorly designing a database, I have recently found it necessary
to explore the wonders of the Python pseudo-switch:
do_case = { "A" : lambda x: x,
"B" : lambda x: x,
"C" : lambda x: "Ted",
"D" : lambda x: do_something(x) }
|
by: imani_technology |
last post by:
My new employer is CMM Level 3. As part of the CMM/Personal Software
Process, I am required to create pseudo code for my stored procedure
and UDF design. Has anyone done this? If so, can anyone give me some
advice?
|
by: FC |
last post by:
Hello folks,
anyone who knows if the hover pseudo class applies only to anchor (<A/>)
elements or to basic shapes as well?
In either case I could not find a way to get Adobe SVG Viewer 3.0 to behave
as described in the SVG 1.1 specification, I am wondering if I am doing
something wrong.
Bye,
Flavio
|
by: Erik Wahlstrom |
last post by:
I have an XML document that includeds a UTF-8 BOM (0xEF 0xBB 0xBF).
The document is properly encoded as UTF-8. However the XMLDecl
encoding pseudo attribute indicates 'ISO-8859-1'. So how SHOULD the
XML processor handle this? Is it a fatal error? Clearly it cannot be
processed as ISO-8859-1 because the content is scrambled. It appears
the Xerces is parsing it according to ISo-8859-1 even though the BOM
is there. Hmm. Any sugestions?...
|
by: Stephen Poley |
last post by:
The issue of the focus pseudo-class came up a few weeks ago, and I
finally got around to trying it out (better late than never ...)
The recommended order given for the pseudo-classes is link, visited,
focus, hover, active. However:
- Mozilla doesn't seem to do anything with the active rule;
- IE gets things wrong as usual: it uses the active rule for focus; it
ignores the focus rule;
- Opera ignores both focus and active rules and...
| |
by: Kerberos |
last post by:
As you might know, IE doesn't support the :hover pseudo-class on every tag
(just the "a" tag AFAIK)
Is there a simple JavaScript that would solve the problem?
I have images that have a light blue outline, and when I pass the mouse
over, the outline turns to red.
#featured img {
display: block;
border: 1px solid #DCDFE8;
padding: 1px;
|
by: Steven T. Hatton |
last post by:
ISO/IEC 14882:2003:
"5.2.4 Pseudo destructor call
The use of a pseudo-destructor-name after a dot . or arrow -> operator
represents the destructor for the non-class type named by
type-name. The result shall only be used as the operand for the
function call operator (), and the result of such a call has type
void. The only effect is the evaluation of the postfix- expression
before the dot or arrow.
|
by: Ben Pfaff |
last post by:
One issue that comes up fairly often around here is the poor
quality of the pseudo-random number generators supplied with many
C implementations. As a result, we have to recommend things like
using the high-order bits returned by rand() instead of the
low-order bits, avoiding using rand() for anything that wants
decently random numbers, not using rand() if you want more than
approx. UINT_MAX total different sequences, and so on.
So I...
|
by: yawnmoth |
last post by:
I've seen a few webpages that use the javascript pseudo-protocol with
event handlers. eg.
<input onkeyup="javascript: ..." />
Correct me if I'm wrong, but isn't onkeyup always supposed to be
javascript, anyway? As such, isn't usint hte javascript
pseudo-protocol redundant?
....or was it required on some archaic browser like Netscape 4.0 or
|
by: bytehunter |
last post by:
Hello,
I hope this is the best place to ask my question. I was wondering if there was such a thing as a pseudo terminal in Windows.
For those unfamiliar, in Linux/Unix one can create a pseudo terminal which to an application looks and acts like a regular com port (tty device in Linux-ease). The purpose of such a thing is to allow an application which communicates via a com port to remain the same (except for changing its com port...
|
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: 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: 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: 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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |