473,387 Members | 1,757 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,387 software developers and data experts.

CSS = Chaos ?

I have looked at various tutorials on css and get the concept.

Then I decided to look at a real example and downloaded the vs Commerce
example and checked out its css and master pages.

My question is, did someone work this out or is it a result of an
infinite number of monkeys pounding away at keyboards until they got
something to work ?

Comments from the css

/* Critical Safari fix! */

/* Holly hack for IE \*/

/* helps IE get the child percentages right. */

/* Hides from IE-mac \*/

/* IE 3px display bug fix (in conjunction with the rule following below)
*/

In the master page

<!-- Conditional comment to give IE/5/6/Win the javascript hack that
helps them do max-width. -->

<!-- Box model fixes for IE 5.0 and 5.5 -->

<!-- IE7-specific fixes -->

<body>

<div id="sizer">

<div id="expander">

<div id="wrapper" class="clearfix">

etc

In the real world, do designers work out wquivalent things or is it
standard to just copy and paste from earlier works ?

I don't know who invented css, but it seems to be the product of a
disorganised and illogical mind.


Oct 21 '07 #1
7 1194
I would comfortably say the cheap RAM and Fast Hz and opportunities their are many monkeys. Possibly a small size infinity which is enough

Copy and past is the Rapid development method, sadly to say.

Junk code is everywhere.

I heard if it works then its is okay. Many developers can not think beyond one test. if it works that's it the boss is happy.
Do your best yourself and leave the rest.


"Ian Semmel" <an****@rocketcomp.com.auwrote in message news:2EFDFCD49817432EA66DCB1C915DBD69@DIMITY...
I have looked at various tutorials on css and get the concept.



Then I decided to look at a real example and downloaded the vs Commerce example and checked out its css and master pages.



My question is, did someone work this out or is it a result of an infinite number of monkeys pounding away at keyboards until they got something to work ?



Comments from the css



/* Critical Safari fix! */

/* Holly hack for IE \*/

/* helps IE get the child percentages right. */

/* Hides from IE-mac \*/

/* IE 3px display bug fix (in conjunction with the rule following below) */



In the master page



<!-- Conditional comment to give IE/5/6/Win the javascript hack that helps them do max-width. -->

<!-- Box model fixes for IE 5.0 and 5.5 -->

<!-- IE7-specific fixes -->



<body>

<div id="sizer">

<div id="expander">

<div id="wrapper" class="clearfix">



etc



In the real world, do designers work out wquivalent things or is it standard to just copy and paste from earlier works ?



I don't know who invented css, but it seems to be the product of a disorganised and illogical mind.



Oct 21 '07 #2
The problem isn't with CSS itself, just with how different browser
developers choose to implement all or part of it at whim.

As far as how these solutions were arrived at, there seems to be a small
group of people out there who derive great satisfaction from finding these
"bugs" and producing fixes for them. Personally, I'd rather stick pins in
my eyes.

I know one thing, if I were tempted to use CSS that required "hacks", I'd
give up. Now, even the Holly hack needs a hack to make it work with IE7. I
mean, who could be bothered?
"Ian Semmel" <an****@rocketcomp.com.auwrote in message
news:2EFDFCD49817432EA66DCB1C915DBD69@DIMITY...
I have looked at various tutorials on css and get the concept.

Then I decided to look at a real example and downloaded the vs Commerce
example and checked out its css and master pages.

My question is, did someone work this out or is it a result of an infinite
number of monkeys pounding away at keyboards until they got something to
work ?

Comments from the css

/* Critical Safari fix! */
/* Holly hack for IE \*/
/* helps IE get the child percentages right. */
/* Hides from IE-mac \*/
/* IE 3px display bug fix (in conjunction with the rule following below) */

In the master page

<!-- Conditional comment to give IE/5/6/Win the javascript hack that helps
them do max-width. -->
<!-- Box model fixes for IE 5.0 and 5.5 -->
<!-- IE7-specific fixes -->

<body>
<div id="sizer">
<div id="expander">
<div id="wrapper" class="clearfix">

etc

In the real world, do designers work out wquivalent things or is it standard
to just copy and paste from earlier works ?

I don't know who invented css, but it seems to be the product of a
disorganised and illogical mind.

Oct 21 '07 #3
CSS itself is well designed. The problem is not all browsers support the latest version of CSS and even then may not implement them correctly. The reality is, if you want your page to render properly on the largest number of browsers you have to deal with all sorts of work arounds for the bugs in each browser.
--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
"Ian Semmel" <an****@rocketcomp.com.auwrote in message news:2EFDFCD49817432EA66DCB1C915DBD69@DIMITY...
I have looked at various tutorials on css and get the concept.



Then I decided to look at a real example and downloaded the vs Commerce example and checked out its css and master pages.



My question is, did someone work this out or is it a result of an infinite number of monkeys pounding away at keyboards until they got something to work ?



Comments from the css



/* Critical Safari fix! */

/* Holly hack for IE \*/

/* helps IE get the child percentages right. */

/* Hides from IE-mac \*/

/* IE 3px display bug fix (in conjunction with the rule following below) */



In the master page



<!-- Conditional comment to give IE/5/6/Win the javascript hack that helps them do max-width. -->

<!-- Box model fixes for IE 5.0 and 5.5 -->

<!-- IE7-specific fixes -->



<body>

<div id="sizer">

<div id="expander">

<div id="wrapper" class="clearfix">



etc



In the real world, do designers work out wquivalent things or is it standard to just copy and paste from earlier works ?



I don't know who invented css, but it seems to be the product of a disorganised and illogical mind.



Oct 21 '07 #4
the problem is historial. IE lead the standards for a while. then IE
developement stopped, then Firefox became popular then IE started again.

The IE team has been unwilling to break pages to make IE support html
4.0 standards (given how much of the web is coded in ie quirks mode,
there was no choice). IE mac did support html 4.0 standards, so IE hacks
must detect its IE mac and follow html standards rather than IE quirks.
with IE 7, there has been a move to better support standards (though it
can be placed in quirks mode).

there is a CSS acid test site to test browser compliance.

http://www.webstandards.org/files/acid2/test.html#top

of course, as currently only safari passes the test. this means if you
write a fully compliant css page, safari may be the only browser it
displays correctly one.

if you think css is bad, wait until you get to ajax, and start using the
dom. even though the w3c standard xmlhttprequest was based on ie 5's xml
object, it took until version 7.0 for ie to support the standard version
(basically the last browser to).

the good new is that the browsers are converging on the html 4.0
standard, and in a few years life will be better. of course xhtml 1.1 is
out now, and no browser attempts to support it yet. though the open
source browsers like firefox and safari will probably be first.

-- bruce (sqlwork.com)
Ian Semmel wrote:
I have looked at various tutorials on css and get the concept.

Then I decided to look at a real example and downloaded the vs Commerce
example and checked out its css and master pages.

My question is, did someone work this out or is it a result of an
infinite number of monkeys pounding away at keyboards until they got
something to work ?

Comments from the css

/* Critical Safari fix! */

/* Holly hack for IE \*/

/* helps IE get the child percentages right. */

/* Hides from IE-mac \*/

/* IE 3px display bug fix (in conjunction with the rule following below) */

In the master page

<!-- Conditional comment to give IE/5/6/Win the javascript hack that
helps them do max-width. -->

<!-- Box model fixes for IE 5.0 and 5.5 -->

<!-- IE7-specific fixes -->

<body>

<div id="sizer">

<div id="expander">

<div id="wrapper" class="clearfix">

etc

In the real world, do designers work out wquivalent things or is it
standard to just copy and paste from earlier works ?

I don't know who invented css, but it seems to be the product of a
disorganised and illogical mind.
Oct 22 '07 #5
Ive found personally that wirting css code which renders on Firefox will
almost certainly render properly on IE "Most of the time". Doing it the
other way around yeilds poorer results as IE is too forgiving and allows the
developer to get away with too much.

"bruce barker" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
the problem is historial. IE lead the standards for a while. then IE
developement stopped, then Firefox became popular then IE started again.

The IE team has been unwilling to break pages to make IE support html 4.0
standards (given how much of the web is coded in ie quirks mode, there was
no choice). IE mac did support html 4.0 standards, so IE hacks must detect
its IE mac and follow html standards rather than IE quirks. with IE 7,
there has been a move to better support standards (though it can be placed
in quirks mode).

there is a CSS acid test site to test browser compliance.

http://www.webstandards.org/files/acid2/test.html#top

of course, as currently only safari passes the test. this means if you
write a fully compliant css page, safari may be the only browser it
displays correctly one.

if you think css is bad, wait until you get to ajax, and start using the
dom. even though the w3c standard xmlhttprequest was based on ie 5's xml
object, it took until version 7.0 for ie to support the standard version
(basically the last browser to).

the good new is that the browsers are converging on the html 4.0 standard,
and in a few years life will be better. of course xhtml 1.1 is out now,
and no browser attempts to support it yet. though the open source browsers
like firefox and safari will probably be first.

-- bruce (sqlwork.com)
Ian Semmel wrote:
>I have looked at various tutorials on css and get the concept.

Then I decided to look at a real example and downloaded the vs Commerce
example and checked out its css and master pages.

My question is, did someone work this out or is it a result of an
infinite number of monkeys pounding away at keyboards until they got
something to work ?

Comments from the css

/* Critical Safari fix! */

/* Holly hack for IE \*/

/* helps IE get the child percentages right. */

/* Hides from IE-mac \*/

/* IE 3px display bug fix (in conjunction with the rule following below)
*/

In the master page

<!-- Conditional comment to give IE/5/6/Win the javascript hack that
helps them do max-width. -->

<!-- Box model fixes for IE 5.0 and 5.5 -->

<!-- IE7-specific fixes -->

<body>

<div id="sizer">

<div id="expander">

<div id="wrapper" class="clearfix">

etc

In the real world, do designers work out wquivalent things or is it
standard to just copy and paste from earlier works ?

I don't know who invented css, but it seems to be the product of a
disorganised and illogical mind.


Oct 22 '07 #6
Well it must be a fairly crappy standard if it allows browser writers to
produce such variances in rendered output.
>
the problem is historial. IE lead the standards for a while. then IE
developement stopped, then Firefox became popular then IE started
again.

The IE team has been unwilling to break pages to make IE support html
4.0 standards (given how much of the web is coded in ie quirks mode,
there was no choice). IE mac did support html 4.0 standards, so IE
hacks
must detect its IE mac and follow html standards rather than IE
quirks.
with IE 7, there has been a move to better support standards (though
it
can be placed in quirks mode).

there is a CSS acid test site to test browser compliance.

http://www.webstandards.org/files/acid2/test.html#top

of course, as currently only safari passes the test. this means if you
write a fully compliant css page, safari may be the only browser it
displays correctly one.

if you think css is bad, wait until you get to ajax, and start using
the
dom. even though the w3c standard xmlhttprequest was based on ie 5's
xml
object, it took until version 7.0 for ie to support the standard
version
(basically the last browser to).

the good new is that the browsers are converging on the html 4.0
standard, and in a few years life will be better. of course xhtml 1.1
is
out now, and no browser attempts to support it yet. though the open
source browsers like firefox and safari will probably be first.

-- bruce (sqlwork.com)
Ian Semmel wrote:
I have looked at various tutorials on css and get the concept.

Then I decided to look at a real example and downloaded the vs
Commerce
example and checked out its css and master pages.

My question is, did someone work this out or is it a result of an
infinite number of monkeys pounding away at keyboards until they got
something to work ?

Comments from the css

/* Critical Safari fix! */

/* Holly hack for IE \*/

/* helps IE get the child percentages right. */

/* Hides from IE-mac \*/

/* IE 3px display bug fix (in conjunction with the rule following
below) */

In the master page

<!-- Conditional comment to give IE/5/6/Win the javascript hack that
helps them do max-width. -->

<!-- Box model fixes for IE 5.0 and 5.5 -->

<!-- IE7-specific fixes -->

<body>

<div id="sizer">

<div id="expander">

<div id="wrapper" class="clearfix">

etc

In the real world, do designers work out wquivalent things or is it
standard to just copy and paste from earlier works ?

I don't know who invented css, but it seems to be the product of a
disorganised and illogical mind.

Oct 23 '07 #7
Making it work in Firefox will cover a larger range of browsers
(including Netscape), because other browsers are based on Mozilla's
same browsing engine (Gecko). I focus on Firefox and IE, and check it
in Opera and a Linux browser or two (including Konqueror) every once
in a while. I actually don't get to check it in IE so often as I
should because I spend most of my time in Linux, but when I get
Windows up in a VM I check my stuff out in Windows browsers too.

CSS has many beautiful things (advanced selectors and such) that we
can't use because not all browsers implement them. I like to be able
to do things like this:

a[target='_blank']:after
{
content: ' (_blank)';
font-size: x-small;
vertical-align: top;
}

or

a:link { text-decoration: underline !important; }

....when I'm developing something that I am /sure/ will only be
accessed in Gecko (for a specific business or in an XUL app). I find
these things useful for customizing other websites anyway, though
(using Firefox's userChrome.css).

-Michael Placentra II
On Oct 22, 6:04 am, "Just Me" <news.microsoft.comwrote:
I dont think one needs to worry about safari or netscape simply concentrate
on making your pages look the same in IE and Firefox which represent
something like 98.5% of all browser clients, then make sure that safari and
netscape look "Reasonable", and you will be 99.99% there.
Oct 23 '07 #8

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

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
1
by: rich buchanan | last post by:
Can anyone help me. I'm an absolute Access newbie and this query is stumping me. I have a linked Access to MySQL table structure on which the following Access QUERY works GREAT. SELECT...
1
by: the friendly display name | last post by:
Following problem: I have on the page one (graphic-)button (its click even is wired), some other stuff and of course the page_load function Page_Load function has the following entry: { if...
19
by: Sandy.Pittendrigh | last post by:
I got email from a customer last night, complaining that &apos; was showing up in my boat building forum. That encoding seems to get translated to a single quote in all other browsers. So I did...
2
by: pieandpeas | last post by:
Hi, I'm using a comma delimited file to show data from a database in microsoft excel, it all works fine and dandy, apart from one column. The data it is returning from this column, is for each...
3
by: Anil Gupte | last post by:
I reently made the move to Visual Studio 2005 using the express editions downloaded from Microsoft's site. In 2003, I was not able to use some DLLs in VB that were created in C# 2005. So I...
0
by: koauxbdd | last post by:
mark of chaos 1.72 patch http://cracks.12w.net F R E E
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...

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.