473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Explicit declaration for display property

I get different results for

div.classname { display:; }

and

div.classname { display:block; }

Bug?

Aug 8 '06 #1
6 1476
wassa wrote:
I get different results for

div.classname { display:; }
...which is an error.
and

div.classname { display:block; }

Bug?
No. Different browsers handle errors differently, so if you present an
error, well ... all bets are off.

--
-bts
-Warning: I brake for lawn deer
Aug 8 '06 #2

Beauregard T. Shagnasty wrote:
wassa wrote:
I get different results for

div.classname { display:; }

..which is an error.
and

div.classname { display:block; }

Bug?

No. Different browsers handle errors differently, so if you present an
error, well ... all bets are off.
OK then how do you explain different behaviours for

div.classname { }

and

div.classname { display:block; }

Aug 8 '06 #3
On 2006-08-08, wassa wrote:
>
Beauregard T. Shagnasty wrote:
>wassa wrote:
I get different results for

div.classname { display:; }

..which is an error.
and

div.classname { display:block; }

Bug?

No. Different browsers handle errors differently, so if you present an
error, well ... all bets are off.

OK then how do you explain different behaviours for

div.classname { }

and

div.classname { display:block; }
In what context and what browser? Please provide a URL.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Aug 8 '06 #4

wassa wrote:
OK then how do you explain different behaviours for
div.classname { }
and
div.classname { display:block; }
In the simple, general case you don't get different behaviours for
these. <divalready has display:block; as a default.

If you're seeing different behaviours, then we can only assume that you
have something weird going on ( Another rule of div { display:inline;
} would do it). So post a URL to your example, then we can all see
what's going on.

Aug 8 '06 #5
wassa wrote:
OK then how do you explain different behaviours for

div.classname { }

and

div.classname { display:block; }
Quick, tell me how many fingers I'm holding up.

Psychic ... powers ... not ... functioning ....

WHAT behaviors? WHAT does your code look like? WHAT browser?
Aug 8 '06 #6
Beauregard T. Shagnasty <a.*********@example.invalidscripsit:
Different browsers handle errors differently, so if you present an
error, well ... all bets are off.
Perhaps, but by CSS specifications, browsers are required to follow certain
rules in error processing. In particular,
div.classname { display:; }
shall be ignored as malformed.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Aug 8 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stub | last post by:
Docs says that "The compiler does not use an explicit constructor to implement an implied conversion of types. It's purpose is reserved explicitly for construction." I put up code of three cases...
1
by: ranges22 | last post by:
****************************************************************** I am compiling a librarry which has a .h file containing th following:...
1
by: John | last post by:
Hi, Maybe someone can help me with the following: "The first task by any derived class constructor is to call it’s direct or indirect base class constructor implicitly or explicitly", reads the...
6
by: John Kotuby | last post by:
Hi all, I am simply trying to include the Option Explicit declaration at the top of an ASP page and am getting an error: Error Type: Microsoft VBScript compilation (0x800A0400) Expected...
1
by: petschy | last post by:
hello, i've run into an error when qualifying a copy ctor 'explicit'. the strange thing is that i get a compiler error only if the class is a template and declare the variable as X<Zx = y....
5
by: d.adamkiewicz | last post by:
Hello Folks I was wondering if the following could be better written: var myObject = {}; /* in this case explicit declaration seems to be mandatory otherwise 'myObject.ala has no properties'...
2
by: Barry | last post by:
The following code compiles with VC8 but fails to compiles with Comeau online, I locate the standard here: An explicit specialization of any of the following:
12
by: Rahul | last post by:
Hi Everyone, I have the following code and i'm able to invoke the destructor explicitly but not the constructor. and i get a compile time error when i invoke the constructor, why is this so? ...
3
by: Jja | last post by:
Hello, I am very new to this site. before i start may i first introduce myself i am 'Jhalil, a beginner Vb6 programmer. i stumbled on this site on my quest for a code in vb that can connect me...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.